...

Package ent

import "github.com/yssk22/hpapp/go/service/ent"
Overview
Index
Subdirectories

Overview ▾

Index ▾

Constants
Variables
func Asc(fields ...string) func(*sql.Selector)
func Desc(fields ...string) func(*sql.Selector)
func IsConstraintError(err error) bool
func IsNotFound(err error) bool
func IsNotLoaded(err error) bool
func IsNotSingular(err error) bool
func IsValidationError(err error) bool
func MaskNotFound(err error) error
func NewContext(parent context.Context, c *Client) context.Context
func NewTxContext(parent context.Context, tx *Tx) context.Context
func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error)
type AggregateFunc
    func As(fn AggregateFunc, end string) AggregateFunc
    func Count() AggregateFunc
    func Max(field string) AggregateFunc
    func Mean(field string) AggregateFunc
    func Min(field string) AggregateFunc
    func Sum(field string) AggregateFunc
type Auth
    func (n *Auth) IsNode()
    func (a *Auth) QueryUser() *UserQuery
    func (a *Auth) String() string
    func (a *Auth) ToEdge(order *AuthOrder) *AuthEdge
    func (a *Auth) Unwrap() *Auth
    func (a *Auth) Update() *AuthUpdateOne
    func (a *Auth) Value(name string) (ent.Value, error)
type AuthClient
    func NewAuthClient(c config) *AuthClient
    func (c *AuthClient) Create() *AuthCreate
    func (c *AuthClient) CreateBulk(builders ...*AuthCreate) *AuthCreateBulk
    func (c *AuthClient) Delete() *AuthDelete
    func (c *AuthClient) DeleteOne(a *Auth) *AuthDeleteOne
    func (c *AuthClient) DeleteOneID(id int) *AuthDeleteOne
    func (c *AuthClient) Get(ctx context.Context, id int) (*Auth, error)
    func (c *AuthClient) GetX(ctx context.Context, id int) *Auth
    func (c *AuthClient) Hooks() []Hook
    func (c *AuthClient) Intercept(interceptors ...Interceptor)
    func (c *AuthClient) Interceptors() []Interceptor
    func (c *AuthClient) Query() *AuthQuery
    func (c *AuthClient) QueryUser(a *Auth) *UserQuery
    func (c *AuthClient) Update() *AuthUpdate
    func (c *AuthClient) UpdateOne(a *Auth) *AuthUpdateOne
    func (c *AuthClient) UpdateOneID(id int) *AuthUpdateOne
    func (c *AuthClient) Use(hooks ...Hook)
type AuthConnection
type AuthCreate
    func (ac *AuthCreate) Exec(ctx context.Context) error
    func (ac *AuthCreate) ExecX(ctx context.Context)
    func (ac *AuthCreate) Mutation() *AuthMutation
    func (ac *AuthCreate) OnConflict(opts ...sql.ConflictOption) *AuthUpsertOne
    func (ac *AuthCreate) OnConflictColumns(columns ...string) *AuthUpsertOne
    func (ac *AuthCreate) Save(ctx context.Context) (*Auth, error)
    func (ac *AuthCreate) SaveX(ctx context.Context) *Auth
    func (ac *AuthCreate) SetAccessToken(s string) *AuthCreate
    func (ac *AuthCreate) SetCreatedAt(t time.Time) *AuthCreate
    func (ac *AuthCreate) SetExpireAt(t time.Time) *AuthCreate
    func (ac *AuthCreate) SetNillableCreatedAt(t *time.Time) *AuthCreate
    func (ac *AuthCreate) SetNillableExpireAt(t *time.Time) *AuthCreate
    func (ac *AuthCreate) SetNillableOwnerUserID(i *int) *AuthCreate
    func (ac *AuthCreate) SetNillableRefreshToken(s *string) *AuthCreate
    func (ac *AuthCreate) SetNillableUpdatedAt(t *time.Time) *AuthCreate
    func (ac *AuthCreate) SetNillableUserID(id *int) *AuthCreate
    func (ac *AuthCreate) SetOwnerUserID(i int) *AuthCreate
    func (ac *AuthCreate) SetProviderName(s string) *AuthCreate
    func (ac *AuthCreate) SetProviderUserID(s string) *AuthCreate
    func (ac *AuthCreate) SetRefreshToken(s string) *AuthCreate
    func (ac *AuthCreate) SetScope(s []string) *AuthCreate
    func (ac *AuthCreate) SetUpdatedAt(t time.Time) *AuthCreate
    func (ac *AuthCreate) SetUser(u *User) *AuthCreate
    func (ac *AuthCreate) SetUserID(id int) *AuthCreate
type AuthCreateBulk
    func (acb *AuthCreateBulk) Exec(ctx context.Context) error
    func (acb *AuthCreateBulk) ExecX(ctx context.Context)
    func (acb *AuthCreateBulk) OnConflict(opts ...sql.ConflictOption) *AuthUpsertBulk
    func (acb *AuthCreateBulk) OnConflictColumns(columns ...string) *AuthUpsertBulk
    func (acb *AuthCreateBulk) Save(ctx context.Context) ([]*Auth, error)
    func (acb *AuthCreateBulk) SaveX(ctx context.Context) []*Auth
type AuthDelete
    func (ad *AuthDelete) Exec(ctx context.Context) (int, error)
    func (ad *AuthDelete) ExecX(ctx context.Context) int
    func (ad *AuthDelete) Where(ps ...predicate.Auth) *AuthDelete
type AuthDeleteOne
    func (ado *AuthDeleteOne) Exec(ctx context.Context) error
    func (ado *AuthDeleteOne) ExecX(ctx context.Context)
    func (ado *AuthDeleteOne) Where(ps ...predicate.Auth) *AuthDeleteOne
type AuthEdge
type AuthEdges
    func (e AuthEdges) UserOrErr() (*User, error)
type AuthFilter
    func (f *AuthFilter) Where(p entql.P)
    func (f *AuthFilter) WhereAccessToken(p entql.StringP)
    func (f *AuthFilter) WhereCreatedAt(p entql.TimeP)
    func (f *AuthFilter) WhereExpireAt(p entql.TimeP)
    func (f *AuthFilter) WhereHasUser()
    func (f *AuthFilter) WhereHasUserWith(preds ...predicate.User)
    func (f *AuthFilter) WhereID(p entql.IntP)
    func (f *AuthFilter) WhereOwnerUserID(p entql.IntP)
    func (f *AuthFilter) WhereProviderName(p entql.StringP)
    func (f *AuthFilter) WhereProviderUserID(p entql.StringP)
    func (f *AuthFilter) WhereRefreshToken(p entql.StringP)
    func (f *AuthFilter) WhereScope(p entql.BytesP)
    func (f *AuthFilter) WhereUpdatedAt(p entql.TimeP)
type AuthGroupBy
    func (agb *AuthGroupBy) Aggregate(fns ...AggregateFunc) *AuthGroupBy
    func (s *AuthGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *AuthGroupBy) BoolX(ctx context.Context) bool
    func (s *AuthGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *AuthGroupBy) BoolsX(ctx context.Context) []bool
    func (s *AuthGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *AuthGroupBy) Float64X(ctx context.Context) float64
    func (s *AuthGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *AuthGroupBy) Float64sX(ctx context.Context) []float64
    func (s *AuthGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *AuthGroupBy) IntX(ctx context.Context) int
    func (s *AuthGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *AuthGroupBy) IntsX(ctx context.Context) []int
    func (agb *AuthGroupBy) Scan(ctx context.Context, v any) error
    func (s *AuthGroupBy) ScanX(ctx context.Context, v any)
    func (s *AuthGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *AuthGroupBy) StringX(ctx context.Context) string
    func (s *AuthGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *AuthGroupBy) StringsX(ctx context.Context) []string
type AuthMutation
    func (m *AuthMutation) AccessToken() (r string, exists bool)
    func (m *AuthMutation) AddField(name string, value ent.Value) error
    func (m *AuthMutation) AddedEdges() []string
    func (m *AuthMutation) AddedField(name string) (ent.Value, bool)
    func (m *AuthMutation) AddedFields() []string
    func (m *AuthMutation) AddedIDs(name string) []ent.Value
    func (m *AuthMutation) AppendScope(s []string)
    func (m *AuthMutation) AppendedScope() ([]string, bool)
    func (m *AuthMutation) ClearCreatedAt()
    func (m *AuthMutation) ClearEdge(name string) error
    func (m *AuthMutation) ClearExpireAt()
    func (m *AuthMutation) ClearField(name string) error
    func (m *AuthMutation) ClearOwnerUserID()
    func (m *AuthMutation) ClearRefreshToken()
    func (m *AuthMutation) ClearScope()
    func (m *AuthMutation) ClearUpdatedAt()
    func (m *AuthMutation) ClearUser()
    func (m *AuthMutation) ClearedEdges() []string
    func (m *AuthMutation) ClearedFields() []string
    func (m AuthMutation) Client() *Client
    func (m *AuthMutation) CreatedAt() (r time.Time, exists bool)
    func (m *AuthMutation) CreatedAtCleared() bool
    func (m *AuthMutation) EdgeCleared(name string) bool
    func (m *AuthMutation) ExpireAt() (r time.Time, exists bool)
    func (m *AuthMutation) ExpireAtCleared() bool
    func (m *AuthMutation) Field(name string) (ent.Value, bool)
    func (m *AuthMutation) FieldCleared(name string) bool
    func (m *AuthMutation) Fields() []string
    func (m *AuthMutation) Filter() *AuthFilter
    func (m *AuthMutation) ID() (id int, exists bool)
    func (m *AuthMutation) IDs(ctx context.Context) ([]int, error)
    func (m *AuthMutation) OldAccessToken(ctx context.Context) (v string, err error)
    func (m *AuthMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *AuthMutation) OldExpireAt(ctx context.Context) (v time.Time, err error)
    func (m *AuthMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *AuthMutation) OldOwnerUserID(ctx context.Context) (v int, err error)
    func (m *AuthMutation) OldProviderName(ctx context.Context) (v string, err error)
    func (m *AuthMutation) OldProviderUserID(ctx context.Context) (v string, err error)
    func (m *AuthMutation) OldRefreshToken(ctx context.Context) (v string, err error)
    func (m *AuthMutation) OldScope(ctx context.Context) (v []string, err error)
    func (m *AuthMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *AuthMutation) Op() Op
    func (m *AuthMutation) OwnerUserID() (r int, exists bool)
    func (m *AuthMutation) OwnerUserIDCleared() bool
    func (m *AuthMutation) ProviderName() (r string, exists bool)
    func (m *AuthMutation) ProviderUserID() (r string, exists bool)
    func (m *AuthMutation) RefreshToken() (r string, exists bool)
    func (m *AuthMutation) RefreshTokenCleared() bool
    func (m *AuthMutation) RemovedEdges() []string
    func (m *AuthMutation) RemovedIDs(name string) []ent.Value
    func (m *AuthMutation) ResetAccessToken()
    func (m *AuthMutation) ResetCreatedAt()
    func (m *AuthMutation) ResetEdge(name string) error
    func (m *AuthMutation) ResetExpireAt()
    func (m *AuthMutation) ResetField(name string) error
    func (m *AuthMutation) ResetOwnerUserID()
    func (m *AuthMutation) ResetProviderName()
    func (m *AuthMutation) ResetProviderUserID()
    func (m *AuthMutation) ResetRefreshToken()
    func (m *AuthMutation) ResetScope()
    func (m *AuthMutation) ResetUpdatedAt()
    func (m *AuthMutation) ResetUser()
    func (m *AuthMutation) Scope() (r []string, exists bool)
    func (m *AuthMutation) ScopeCleared() bool
    func (m *AuthMutation) SetAccessToken(s string)
    func (m *AuthMutation) SetCreatedAt(t time.Time)
    func (m *AuthMutation) SetExpireAt(t time.Time)
    func (m *AuthMutation) SetField(name string, value ent.Value) error
    func (m *AuthMutation) SetOp(op Op)
    func (m *AuthMutation) SetOwnerUserID(i int)
    func (m *AuthMutation) SetProviderName(s string)
    func (m *AuthMutation) SetProviderUserID(s string)
    func (m *AuthMutation) SetRefreshToken(s string)
    func (m *AuthMutation) SetScope(s []string)
    func (m *AuthMutation) SetUpdatedAt(t time.Time)
    func (m *AuthMutation) SetUserID(id int)
    func (m AuthMutation) Tx() (*Tx, error)
    func (m *AuthMutation) Type() string
    func (m *AuthMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *AuthMutation) UpdatedAtCleared() bool
    func (m *AuthMutation) UserCleared() bool
    func (m *AuthMutation) UserID() (id int, exists bool)
    func (m *AuthMutation) UserIDs() (ids []int)
    func (m *AuthMutation) Where(ps ...predicate.Auth)
    func (m *AuthMutation) WhereP(ps ...func(*sql.Selector))
type AuthOrder
type AuthOrderField
type AuthPaginateOption
    func WithAuthFilter(filter func(*AuthQuery) (*AuthQuery, error)) AuthPaginateOption
    func WithAuthOrder(order *AuthOrder) AuthPaginateOption
type AuthQuery
    func (aq *AuthQuery) Aggregate(fns ...AggregateFunc) *AuthSelect
    func (aq *AuthQuery) All(ctx context.Context) ([]*Auth, error)
    func (aq *AuthQuery) AllX(ctx context.Context) []*Auth
    func (aq *AuthQuery) Clone() *AuthQuery
    func (a *AuthQuery) CollectFields(ctx context.Context, satisfies ...string) (*AuthQuery, error)
    func (aq *AuthQuery) Count(ctx context.Context) (int, error)
    func (aq *AuthQuery) CountX(ctx context.Context) int
    func (aq *AuthQuery) Exist(ctx context.Context) (bool, error)
    func (aq *AuthQuery) ExistX(ctx context.Context) bool
    func (aq *AuthQuery) Filter() *AuthFilter
    func (aq *AuthQuery) First(ctx context.Context) (*Auth, error)
    func (aq *AuthQuery) FirstID(ctx context.Context) (id int, err error)
    func (aq *AuthQuery) FirstIDX(ctx context.Context) int
    func (aq *AuthQuery) FirstX(ctx context.Context) *Auth
    func (aq *AuthQuery) GroupBy(field string, fields ...string) *AuthGroupBy
    func (aq *AuthQuery) IDs(ctx context.Context) (ids []int, err error)
    func (aq *AuthQuery) IDsX(ctx context.Context) []int
    func (aq *AuthQuery) Limit(limit int) *AuthQuery
    func (aq *AuthQuery) Offset(offset int) *AuthQuery
    func (aq *AuthQuery) Only(ctx context.Context) (*Auth, error)
    func (aq *AuthQuery) OnlyID(ctx context.Context) (id int, err error)
    func (aq *AuthQuery) OnlyIDX(ctx context.Context) int
    func (aq *AuthQuery) OnlyX(ctx context.Context) *Auth
    func (aq *AuthQuery) Order(o ...auth.Order) *AuthQuery
    func (a *AuthQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...AuthPaginateOption) (*AuthConnection, error)
    func (aq *AuthQuery) QueryUser() *UserQuery
    func (aq *AuthQuery) Select(fields ...string) *AuthSelect
    func (aq *AuthQuery) Unique(unique bool) *AuthQuery
    func (aq *AuthQuery) Where(ps ...predicate.Auth) *AuthQuery
    func (aq *AuthQuery) WithUser(opts ...func(*UserQuery)) *AuthQuery
type AuthSelect
    func (as *AuthSelect) Aggregate(fns ...AggregateFunc) *AuthSelect
    func (s *AuthSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *AuthSelect) BoolX(ctx context.Context) bool
    func (s *AuthSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *AuthSelect) BoolsX(ctx context.Context) []bool
    func (s *AuthSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *AuthSelect) Float64X(ctx context.Context) float64
    func (s *AuthSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *AuthSelect) Float64sX(ctx context.Context) []float64
    func (s *AuthSelect) Int(ctx context.Context) (_ int, err error)
    func (s *AuthSelect) IntX(ctx context.Context) int
    func (s *AuthSelect) Ints(ctx context.Context) ([]int, error)
    func (s *AuthSelect) IntsX(ctx context.Context) []int
    func (as *AuthSelect) Scan(ctx context.Context, v any) error
    func (s *AuthSelect) ScanX(ctx context.Context, v any)
    func (s *AuthSelect) String(ctx context.Context) (_ string, err error)
    func (s *AuthSelect) StringX(ctx context.Context) string
    func (s *AuthSelect) Strings(ctx context.Context) ([]string, error)
    func (s *AuthSelect) StringsX(ctx context.Context) []string
type AuthUpdate
    func (au *AuthUpdate) AppendScope(s []string) *AuthUpdate
    func (au *AuthUpdate) ClearExpireAt() *AuthUpdate
    func (au *AuthUpdate) ClearOwnerUserID() *AuthUpdate
    func (au *AuthUpdate) ClearRefreshToken() *AuthUpdate
    func (au *AuthUpdate) ClearScope() *AuthUpdate
    func (au *AuthUpdate) ClearUpdatedAt() *AuthUpdate
    func (au *AuthUpdate) ClearUser() *AuthUpdate
    func (au *AuthUpdate) Exec(ctx context.Context) error
    func (au *AuthUpdate) ExecX(ctx context.Context)
    func (au *AuthUpdate) Mutation() *AuthMutation
    func (au *AuthUpdate) Save(ctx context.Context) (int, error)
    func (au *AuthUpdate) SaveX(ctx context.Context) int
    func (au *AuthUpdate) SetAccessToken(s string) *AuthUpdate
    func (au *AuthUpdate) SetExpireAt(t time.Time) *AuthUpdate
    func (au *AuthUpdate) SetNillableExpireAt(t *time.Time) *AuthUpdate
    func (au *AuthUpdate) SetNillableOwnerUserID(i *int) *AuthUpdate
    func (au *AuthUpdate) SetNillableRefreshToken(s *string) *AuthUpdate
    func (au *AuthUpdate) SetNillableUpdatedAt(t *time.Time) *AuthUpdate
    func (au *AuthUpdate) SetNillableUserID(id *int) *AuthUpdate
    func (au *AuthUpdate) SetOwnerUserID(i int) *AuthUpdate
    func (au *AuthUpdate) SetProviderName(s string) *AuthUpdate
    func (au *AuthUpdate) SetProviderUserID(s string) *AuthUpdate
    func (au *AuthUpdate) SetRefreshToken(s string) *AuthUpdate
    func (au *AuthUpdate) SetScope(s []string) *AuthUpdate
    func (au *AuthUpdate) SetUpdatedAt(t time.Time) *AuthUpdate
    func (au *AuthUpdate) SetUser(u *User) *AuthUpdate
    func (au *AuthUpdate) SetUserID(id int) *AuthUpdate
    func (au *AuthUpdate) Where(ps ...predicate.Auth) *AuthUpdate
type AuthUpdateOne
    func (auo *AuthUpdateOne) AppendScope(s []string) *AuthUpdateOne
    func (auo *AuthUpdateOne) ClearExpireAt() *AuthUpdateOne
    func (auo *AuthUpdateOne) ClearOwnerUserID() *AuthUpdateOne
    func (auo *AuthUpdateOne) ClearRefreshToken() *AuthUpdateOne
    func (auo *AuthUpdateOne) ClearScope() *AuthUpdateOne
    func (auo *AuthUpdateOne) ClearUpdatedAt() *AuthUpdateOne
    func (auo *AuthUpdateOne) ClearUser() *AuthUpdateOne
    func (auo *AuthUpdateOne) Exec(ctx context.Context) error
    func (auo *AuthUpdateOne) ExecX(ctx context.Context)
    func (auo *AuthUpdateOne) Mutation() *AuthMutation
    func (auo *AuthUpdateOne) Save(ctx context.Context) (*Auth, error)
    func (auo *AuthUpdateOne) SaveX(ctx context.Context) *Auth
    func (auo *AuthUpdateOne) Select(field string, fields ...string) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetAccessToken(s string) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetExpireAt(t time.Time) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetNillableExpireAt(t *time.Time) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetNillableOwnerUserID(i *int) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetNillableRefreshToken(s *string) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetNillableUpdatedAt(t *time.Time) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetNillableUserID(id *int) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetOwnerUserID(i int) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetProviderName(s string) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetProviderUserID(s string) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetRefreshToken(s string) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetScope(s []string) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetUpdatedAt(t time.Time) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetUser(u *User) *AuthUpdateOne
    func (auo *AuthUpdateOne) SetUserID(id int) *AuthUpdateOne
    func (auo *AuthUpdateOne) Where(ps ...predicate.Auth) *AuthUpdateOne
type AuthUpsert
    func (u *AuthUpsert) ClearExpireAt() *AuthUpsert
    func (u *AuthUpsert) ClearOwnerUserID() *AuthUpsert
    func (u *AuthUpsert) ClearRefreshToken() *AuthUpsert
    func (u *AuthUpsert) ClearScope() *AuthUpsert
    func (u *AuthUpsert) ClearUpdatedAt() *AuthUpsert
    func (u *AuthUpsert) SetAccessToken(v string) *AuthUpsert
    func (u *AuthUpsert) SetExpireAt(v time.Time) *AuthUpsert
    func (u *AuthUpsert) SetOwnerUserID(v int) *AuthUpsert
    func (u *AuthUpsert) SetProviderName(v string) *AuthUpsert
    func (u *AuthUpsert) SetProviderUserID(v string) *AuthUpsert
    func (u *AuthUpsert) SetRefreshToken(v string) *AuthUpsert
    func (u *AuthUpsert) SetScope(v []string) *AuthUpsert
    func (u *AuthUpsert) SetUpdatedAt(v time.Time) *AuthUpsert
    func (u *AuthUpsert) UpdateAccessToken() *AuthUpsert
    func (u *AuthUpsert) UpdateExpireAt() *AuthUpsert
    func (u *AuthUpsert) UpdateOwnerUserID() *AuthUpsert
    func (u *AuthUpsert) UpdateProviderName() *AuthUpsert
    func (u *AuthUpsert) UpdateProviderUserID() *AuthUpsert
    func (u *AuthUpsert) UpdateRefreshToken() *AuthUpsert
    func (u *AuthUpsert) UpdateScope() *AuthUpsert
    func (u *AuthUpsert) UpdateUpdatedAt() *AuthUpsert
type AuthUpsertBulk
    func (u *AuthUpsertBulk) ClearExpireAt() *AuthUpsertBulk
    func (u *AuthUpsertBulk) ClearOwnerUserID() *AuthUpsertBulk
    func (u *AuthUpsertBulk) ClearRefreshToken() *AuthUpsertBulk
    func (u *AuthUpsertBulk) ClearScope() *AuthUpsertBulk
    func (u *AuthUpsertBulk) ClearUpdatedAt() *AuthUpsertBulk
    func (u *AuthUpsertBulk) DoNothing() *AuthUpsertBulk
    func (u *AuthUpsertBulk) Exec(ctx context.Context) error
    func (u *AuthUpsertBulk) ExecX(ctx context.Context)
    func (u *AuthUpsertBulk) Ignore() *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetAccessToken(v string) *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetExpireAt(v time.Time) *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetOwnerUserID(v int) *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetProviderName(v string) *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetProviderUserID(v string) *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetRefreshToken(v string) *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetScope(v []string) *AuthUpsertBulk
    func (u *AuthUpsertBulk) SetUpdatedAt(v time.Time) *AuthUpsertBulk
    func (u *AuthUpsertBulk) Update(set func(*AuthUpsert)) *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateAccessToken() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateExpireAt() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateNewValues() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateOwnerUserID() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateProviderName() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateProviderUserID() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateRefreshToken() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateScope() *AuthUpsertBulk
    func (u *AuthUpsertBulk) UpdateUpdatedAt() *AuthUpsertBulk
type AuthUpsertOne
    func (u *AuthUpsertOne) ClearExpireAt() *AuthUpsertOne
    func (u *AuthUpsertOne) ClearOwnerUserID() *AuthUpsertOne
    func (u *AuthUpsertOne) ClearRefreshToken() *AuthUpsertOne
    func (u *AuthUpsertOne) ClearScope() *AuthUpsertOne
    func (u *AuthUpsertOne) ClearUpdatedAt() *AuthUpsertOne
    func (u *AuthUpsertOne) DoNothing() *AuthUpsertOne
    func (u *AuthUpsertOne) Exec(ctx context.Context) error
    func (u *AuthUpsertOne) ExecX(ctx context.Context)
    func (u *AuthUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *AuthUpsertOne) IDX(ctx context.Context) int
    func (u *AuthUpsertOne) Ignore() *AuthUpsertOne
    func (u *AuthUpsertOne) SetAccessToken(v string) *AuthUpsertOne
    func (u *AuthUpsertOne) SetExpireAt(v time.Time) *AuthUpsertOne
    func (u *AuthUpsertOne) SetOwnerUserID(v int) *AuthUpsertOne
    func (u *AuthUpsertOne) SetProviderName(v string) *AuthUpsertOne
    func (u *AuthUpsertOne) SetProviderUserID(v string) *AuthUpsertOne
    func (u *AuthUpsertOne) SetRefreshToken(v string) *AuthUpsertOne
    func (u *AuthUpsertOne) SetScope(v []string) *AuthUpsertOne
    func (u *AuthUpsertOne) SetUpdatedAt(v time.Time) *AuthUpsertOne
    func (u *AuthUpsertOne) Update(set func(*AuthUpsert)) *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateAccessToken() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateExpireAt() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateNewValues() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateOwnerUserID() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateProviderName() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateProviderUserID() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateRefreshToken() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateScope() *AuthUpsertOne
    func (u *AuthUpsertOne) UpdateUpdatedAt() *AuthUpsertOne
type Auths
type Client
    func FromContext(ctx context.Context) *Client
    func NewClient(opts ...Option) *Client
    func Open(driverName, dataSourceName string, options ...Option) (*Client, error)
    func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
    func (c *Client) Close() error
    func (c *Client) Debug() *Client
    func (c *Client) Intercept(interceptors ...Interceptor)
    func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
    func (c *Client) Noder(ctx context.Context, id int, opts ...NodeOption) (_ Noder, err error)
    func (c *Client) Noders(ctx context.Context, ids []int, opts ...NodeOption) ([]Noder, error)
    func (c *Client) OpenTx(ctx context.Context) (context.Context, driver.Tx, error)
    func (c *Client) Tx(ctx context.Context) (*Tx, error)
    func (c *Client) Use(hooks ...Hook)
type CommitFunc
    func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error
type CommitHook
type Committer
type ConstraintError
    func (e ConstraintError) Error() string
    func (e *ConstraintError) Unwrap() error
type Cursor
type HPAmebloPost
    func (hap *HPAmebloPost) Blobs(ctx context.Context) (result []*HPBlob, err error)
    func (n *HPAmebloPost) IsNode()
    func (hap *HPAmebloPost) NamedBlobs(name string) ([]*HPBlob, error)
    func (hap *HPAmebloPost) NamedTaggedArtists(name string) ([]*HPArtist, error)
    func (hap *HPAmebloPost) NamedTaggedMembers(name string) ([]*HPMember, error)
    func (hap *HPAmebloPost) OwnerArtist(ctx context.Context) (*HPArtist, error)
    func (hap *HPAmebloPost) OwnerMember(ctx context.Context) (*HPMember, error)
    func (hap *HPAmebloPost) QueryAsset() *HPAssetQuery
    func (hap *HPAmebloPost) QueryBlobs() *HPBlobQuery
    func (hap *HPAmebloPost) QueryOwnerArtist() *HPArtistQuery
    func (hap *HPAmebloPost) QueryOwnerMember() *HPMemberQuery
    func (hap *HPAmebloPost) QueryTaggedArtists() *HPArtistQuery
    func (hap *HPAmebloPost) QueryTaggedMembers() *HPMemberQuery
    func (hap *HPAmebloPost) String() string
    func (hap *HPAmebloPost) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)
    func (hap *HPAmebloPost) TaggedMembers(ctx context.Context) (result []*HPMember, err error)
    func (hap *HPAmebloPost) ToEdge(order *HPAmebloPostOrder) *HPAmebloPostEdge
    func (hap *HPAmebloPost) Unwrap() *HPAmebloPost
    func (hap *HPAmebloPost) Update() *HPAmebloPostUpdateOne
    func (hap *HPAmebloPost) Value(name string) (ent.Value, error)
type HPAmebloPostClient
    func NewHPAmebloPostClient(c config) *HPAmebloPostClient
    func (c *HPAmebloPostClient) Create() *HPAmebloPostCreate
    func (c *HPAmebloPostClient) CreateBulk(builders ...*HPAmebloPostCreate) *HPAmebloPostCreateBulk
    func (c *HPAmebloPostClient) Delete() *HPAmebloPostDelete
    func (c *HPAmebloPostClient) DeleteOne(hap *HPAmebloPost) *HPAmebloPostDeleteOne
    func (c *HPAmebloPostClient) DeleteOneID(id int) *HPAmebloPostDeleteOne
    func (c *HPAmebloPostClient) Get(ctx context.Context, id int) (*HPAmebloPost, error)
    func (c *HPAmebloPostClient) GetX(ctx context.Context, id int) *HPAmebloPost
    func (c *HPAmebloPostClient) Hooks() []Hook
    func (c *HPAmebloPostClient) Intercept(interceptors ...Interceptor)
    func (c *HPAmebloPostClient) Interceptors() []Interceptor
    func (c *HPAmebloPostClient) Query() *HPAmebloPostQuery
    func (c *HPAmebloPostClient) QueryAsset(hap *HPAmebloPost) *HPAssetQuery
    func (c *HPAmebloPostClient) QueryBlobs(hap *HPAmebloPost) *HPBlobQuery
    func (c *HPAmebloPostClient) QueryOwnerArtist(hap *HPAmebloPost) *HPArtistQuery
    func (c *HPAmebloPostClient) QueryOwnerMember(hap *HPAmebloPost) *HPMemberQuery
    func (c *HPAmebloPostClient) QueryTaggedArtists(hap *HPAmebloPost) *HPArtistQuery
    func (c *HPAmebloPostClient) QueryTaggedMembers(hap *HPAmebloPost) *HPMemberQuery
    func (c *HPAmebloPostClient) Update() *HPAmebloPostUpdate
    func (c *HPAmebloPostClient) UpdateOne(hap *HPAmebloPost) *HPAmebloPostUpdateOne
    func (c *HPAmebloPostClient) UpdateOneID(id int) *HPAmebloPostUpdateOne
    func (c *HPAmebloPostClient) Use(hooks ...Hook)
type HPAmebloPostConnection
type HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) AddBlobIDs(ids ...int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) AddBlobs(h ...*HPBlob) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) AddTaggedArtistIDs(ids ...int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) AddTaggedArtists(h ...*HPArtist) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) AddTaggedMemberIDs(ids ...int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) AddTaggedMembers(h ...*HPMember) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) Exec(ctx context.Context) error
    func (hapc *HPAmebloPostCreate) ExecX(ctx context.Context)
    func (hapc *HPAmebloPostCreate) Mutation() *HPAmebloPostMutation
    func (hapc *HPAmebloPostCreate) OnConflict(opts ...sql.ConflictOption) *HPAmebloPostUpsertOne
    func (hapc *HPAmebloPostCreate) OnConflictColumns(columns ...string) *HPAmebloPostUpsertOne
    func (hapc *HPAmebloPostCreate) Save(ctx context.Context) (*HPAmebloPost, error)
    func (hapc *HPAmebloPostCreate) SaveX(ctx context.Context) *HPAmebloPost
    func (hapc *HPAmebloPostCreate) SetArtistKey(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetAsset(h *HPAsset) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetAssetID(id int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetComments(i int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetCrawledAt(t time.Time) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetCreatedAt(t time.Time) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetDescription(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetErrorCount(i int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetImages(j []jsonfields.Media) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetLastErrorMessage(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetLikes(i int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetMemberKey(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNextPath(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableAssetID(id *int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableComments(i *int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableCrawledAt(t *time.Time) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableCreatedAt(t *time.Time) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableErrorCount(i *int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableLastErrorMessage(s *string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableLikes(i *int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableMemberKey(s *string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableNextPath(s *string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableOwnerArtistID(i *int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableOwnerMemberID(i *int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillablePrevPath(s *string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableReblogs(i *int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableRecrawlRequired(b *bool) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableTheme(s *string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetNillableUpdatedAt(t *time.Time) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetOwnerArtist(h *HPArtist) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetOwnerArtistID(i int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetOwnerMember(h *HPMember) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetOwnerMemberID(i int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetPath(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetPostAt(t time.Time) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetPrevPath(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetReblogs(i int) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetRecrawlRequired(b bool) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetSource(h hpameblopost.Source) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetTheme(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetTitle(s string) *HPAmebloPostCreate
    func (hapc *HPAmebloPostCreate) SetUpdatedAt(t time.Time) *HPAmebloPostCreate
type HPAmebloPostCreateBulk
    func (hapcb *HPAmebloPostCreateBulk) Exec(ctx context.Context) error
    func (hapcb *HPAmebloPostCreateBulk) ExecX(ctx context.Context)
    func (hapcb *HPAmebloPostCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPAmebloPostUpsertBulk
    func (hapcb *HPAmebloPostCreateBulk) OnConflictColumns(columns ...string) *HPAmebloPostUpsertBulk
    func (hapcb *HPAmebloPostCreateBulk) Save(ctx context.Context) ([]*HPAmebloPost, error)
    func (hapcb *HPAmebloPostCreateBulk) SaveX(ctx context.Context) []*HPAmebloPost
type HPAmebloPostDelete
    func (hapd *HPAmebloPostDelete) Exec(ctx context.Context) (int, error)
    func (hapd *HPAmebloPostDelete) ExecX(ctx context.Context) int
    func (hapd *HPAmebloPostDelete) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostDelete
type HPAmebloPostDeleteOne
    func (hapdo *HPAmebloPostDeleteOne) Exec(ctx context.Context) error
    func (hapdo *HPAmebloPostDeleteOne) ExecX(ctx context.Context)
    func (hapdo *HPAmebloPostDeleteOne) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostDeleteOne
type HPAmebloPostEdge
type HPAmebloPostEdges
    func (e HPAmebloPostEdges) AssetOrErr() (*HPAsset, error)
    func (e HPAmebloPostEdges) BlobsOrErr() ([]*HPBlob, error)
    func (e HPAmebloPostEdges) OwnerArtistOrErr() (*HPArtist, error)
    func (e HPAmebloPostEdges) OwnerMemberOrErr() (*HPMember, error)
    func (e HPAmebloPostEdges) TaggedArtistsOrErr() ([]*HPArtist, error)
    func (e HPAmebloPostEdges) TaggedMembersOrErr() ([]*HPMember, error)
type HPAmebloPostFilter
    func (f *HPAmebloPostFilter) Where(p entql.P)
    func (f *HPAmebloPostFilter) WhereArtistKey(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereComments(p entql.IntP)
    func (f *HPAmebloPostFilter) WhereCrawledAt(p entql.TimeP)
    func (f *HPAmebloPostFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPAmebloPostFilter) WhereDescription(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereErrorCount(p entql.IntP)
    func (f *HPAmebloPostFilter) WhereHasAsset()
    func (f *HPAmebloPostFilter) WhereHasAssetWith(preds ...predicate.HPAsset)
    func (f *HPAmebloPostFilter) WhereHasBlobs()
    func (f *HPAmebloPostFilter) WhereHasBlobsWith(preds ...predicate.HPBlob)
    func (f *HPAmebloPostFilter) WhereHasOwnerArtist()
    func (f *HPAmebloPostFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)
    func (f *HPAmebloPostFilter) WhereHasOwnerMember()
    func (f *HPAmebloPostFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)
    func (f *HPAmebloPostFilter) WhereHasTaggedArtists()
    func (f *HPAmebloPostFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)
    func (f *HPAmebloPostFilter) WhereHasTaggedMembers()
    func (f *HPAmebloPostFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)
    func (f *HPAmebloPostFilter) WhereID(p entql.IntP)
    func (f *HPAmebloPostFilter) WhereImages(p entql.BytesP)
    func (f *HPAmebloPostFilter) WhereLastErrorMessage(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereLikes(p entql.IntP)
    func (f *HPAmebloPostFilter) WhereManuallyModified(p entql.BytesP)
    func (f *HPAmebloPostFilter) WhereMemberKey(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereNextPath(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereOwnerArtistID(p entql.IntP)
    func (f *HPAmebloPostFilter) WhereOwnerMemberID(p entql.IntP)
    func (f *HPAmebloPostFilter) WherePath(p entql.StringP)
    func (f *HPAmebloPostFilter) WherePostAt(p entql.TimeP)
    func (f *HPAmebloPostFilter) WherePrevPath(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereReblogs(p entql.IntP)
    func (f *HPAmebloPostFilter) WhereRecrawlRequired(p entql.BoolP)
    func (f *HPAmebloPostFilter) WhereSource(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereTheme(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereTitle(p entql.StringP)
    func (f *HPAmebloPostFilter) WhereUpdatedAt(p entql.TimeP)
type HPAmebloPostGroupBy
    func (hapgb *HPAmebloPostGroupBy) Aggregate(fns ...AggregateFunc) *HPAmebloPostGroupBy
    func (s *HPAmebloPostGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPAmebloPostGroupBy) BoolX(ctx context.Context) bool
    func (s *HPAmebloPostGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPAmebloPostGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPAmebloPostGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPAmebloPostGroupBy) Float64X(ctx context.Context) float64
    func (s *HPAmebloPostGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPAmebloPostGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPAmebloPostGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPAmebloPostGroupBy) IntX(ctx context.Context) int
    func (s *HPAmebloPostGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPAmebloPostGroupBy) IntsX(ctx context.Context) []int
    func (hapgb *HPAmebloPostGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPAmebloPostGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPAmebloPostGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPAmebloPostGroupBy) StringX(ctx context.Context) string
    func (s *HPAmebloPostGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPAmebloPostGroupBy) StringsX(ctx context.Context) []string
type HPAmebloPostMutation
    func (m *HPAmebloPostMutation) AddBlobIDs(ids ...int)
    func (m *HPAmebloPostMutation) AddComments(i int)
    func (m *HPAmebloPostMutation) AddErrorCount(i int)
    func (m *HPAmebloPostMutation) AddField(name string, value ent.Value) error
    func (m *HPAmebloPostMutation) AddLikes(i int)
    func (m *HPAmebloPostMutation) AddReblogs(i int)
    func (m *HPAmebloPostMutation) AddTaggedArtistIDs(ids ...int)
    func (m *HPAmebloPostMutation) AddTaggedMemberIDs(ids ...int)
    func (m *HPAmebloPostMutation) AddedComments() (r int, exists bool)
    func (m *HPAmebloPostMutation) AddedEdges() []string
    func (m *HPAmebloPostMutation) AddedErrorCount() (r int, exists bool)
    func (m *HPAmebloPostMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPAmebloPostMutation) AddedFields() []string
    func (m *HPAmebloPostMutation) AddedIDs(name string) []ent.Value
    func (m *HPAmebloPostMutation) AddedLikes() (r int, exists bool)
    func (m *HPAmebloPostMutation) AddedReblogs() (r int, exists bool)
    func (m *HPAmebloPostMutation) AppendImages(j []jsonfields.Media)
    func (m *HPAmebloPostMutation) AppendedImages() ([]jsonfields.Media, bool)
    func (m *HPAmebloPostMutation) ArtistKey() (r string, exists bool)
    func (m *HPAmebloPostMutation) AssetCleared() bool
    func (m *HPAmebloPostMutation) AssetID() (id int, exists bool)
    func (m *HPAmebloPostMutation) AssetIDs() (ids []int)
    func (m *HPAmebloPostMutation) BlobsCleared() bool
    func (m *HPAmebloPostMutation) BlobsIDs() (ids []int)
    func (m *HPAmebloPostMutation) ClearAsset()
    func (m *HPAmebloPostMutation) ClearBlobs()
    func (m *HPAmebloPostMutation) ClearComments()
    func (m *HPAmebloPostMutation) ClearCrawledAt()
    func (m *HPAmebloPostMutation) ClearCreatedAt()
    func (m *HPAmebloPostMutation) ClearEdge(name string) error
    func (m *HPAmebloPostMutation) ClearField(name string) error
    func (m *HPAmebloPostMutation) ClearImages()
    func (m *HPAmebloPostMutation) ClearLastErrorMessage()
    func (m *HPAmebloPostMutation) ClearLikes()
    func (m *HPAmebloPostMutation) ClearManuallyModified()
    func (m *HPAmebloPostMutation) ClearMemberKey()
    func (m *HPAmebloPostMutation) ClearNextPath()
    func (m *HPAmebloPostMutation) ClearOwnerArtist()
    func (m *HPAmebloPostMutation) ClearOwnerArtistID()
    func (m *HPAmebloPostMutation) ClearOwnerMember()
    func (m *HPAmebloPostMutation) ClearOwnerMemberID()
    func (m *HPAmebloPostMutation) ClearPrevPath()
    func (m *HPAmebloPostMutation) ClearReblogs()
    func (m *HPAmebloPostMutation) ClearRecrawlRequired()
    func (m *HPAmebloPostMutation) ClearTaggedArtists()
    func (m *HPAmebloPostMutation) ClearTaggedMembers()
    func (m *HPAmebloPostMutation) ClearTheme()
    func (m *HPAmebloPostMutation) ClearUpdatedAt()
    func (m *HPAmebloPostMutation) ClearedEdges() []string
    func (m *HPAmebloPostMutation) ClearedFields() []string
    func (m HPAmebloPostMutation) Client() *Client
    func (m *HPAmebloPostMutation) Comments() (r int, exists bool)
    func (m *HPAmebloPostMutation) CommentsCleared() bool
    func (m *HPAmebloPostMutation) CrawledAt() (r time.Time, exists bool)
    func (m *HPAmebloPostMutation) CrawledAtCleared() bool
    func (m *HPAmebloPostMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPAmebloPostMutation) CreatedAtCleared() bool
    func (m *HPAmebloPostMutation) Description() (r string, exists bool)
    func (m *HPAmebloPostMutation) EdgeCleared(name string) bool
    func (m *HPAmebloPostMutation) ErrorCount() (r int, exists bool)
    func (m *HPAmebloPostMutation) Field(name string) (ent.Value, bool)
    func (m *HPAmebloPostMutation) FieldCleared(name string) bool
    func (m *HPAmebloPostMutation) Fields() []string
    func (m *HPAmebloPostMutation) Filter() *HPAmebloPostFilter
    func (m *HPAmebloPostMutation) ID() (id int, exists bool)
    func (m *HPAmebloPostMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPAmebloPostMutation) Images() (r []jsonfields.Media, exists bool)
    func (m *HPAmebloPostMutation) ImagesCleared() bool
    func (m *HPAmebloPostMutation) LastErrorMessage() (r string, exists bool)
    func (m *HPAmebloPostMutation) LastErrorMessageCleared() bool
    func (m *HPAmebloPostMutation) Likes() (r int, exists bool)
    func (m *HPAmebloPostMutation) LikesCleared() bool
    func (m *HPAmebloPostMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)
    func (m *HPAmebloPostMutation) ManuallyModifiedCleared() bool
    func (m *HPAmebloPostMutation) MemberKey() (r string, exists bool)
    func (m *HPAmebloPostMutation) MemberKeyCleared() bool
    func (m *HPAmebloPostMutation) NextPath() (r string, exists bool)
    func (m *HPAmebloPostMutation) NextPathCleared() bool
    func (m *HPAmebloPostMutation) OldArtistKey(ctx context.Context) (v string, err error)
    func (m *HPAmebloPostMutation) OldComments(ctx context.Context) (v *int, err error)
    func (m *HPAmebloPostMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPAmebloPostMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPAmebloPostMutation) OldDescription(ctx context.Context) (v string, err error)
    func (m *HPAmebloPostMutation) OldErrorCount(ctx context.Context) (v int, err error)
    func (m *HPAmebloPostMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPAmebloPostMutation) OldImages(ctx context.Context) (v []jsonfields.Media, err error)
    func (m *HPAmebloPostMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)
    func (m *HPAmebloPostMutation) OldLikes(ctx context.Context) (v *int, err error)
    func (m *HPAmebloPostMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)
    func (m *HPAmebloPostMutation) OldMemberKey(ctx context.Context) (v *string, err error)
    func (m *HPAmebloPostMutation) OldNextPath(ctx context.Context) (v *string, err error)
    func (m *HPAmebloPostMutation) OldOwnerArtistID(ctx context.Context) (v *int, err error)
    func (m *HPAmebloPostMutation) OldOwnerMemberID(ctx context.Context) (v *int, err error)
    func (m *HPAmebloPostMutation) OldPath(ctx context.Context) (v string, err error)
    func (m *HPAmebloPostMutation) OldPostAt(ctx context.Context) (v time.Time, err error)
    func (m *HPAmebloPostMutation) OldPrevPath(ctx context.Context) (v *string, err error)
    func (m *HPAmebloPostMutation) OldReblogs(ctx context.Context) (v *int, err error)
    func (m *HPAmebloPostMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)
    func (m *HPAmebloPostMutation) OldSource(ctx context.Context) (v hpameblopost.Source, err error)
    func (m *HPAmebloPostMutation) OldTheme(ctx context.Context) (v *string, err error)
    func (m *HPAmebloPostMutation) OldTitle(ctx context.Context) (v string, err error)
    func (m *HPAmebloPostMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPAmebloPostMutation) Op() Op
    func (m *HPAmebloPostMutation) OwnerArtistCleared() bool
    func (m *HPAmebloPostMutation) OwnerArtistID() (r int, exists bool)
    func (m *HPAmebloPostMutation) OwnerArtistIDCleared() bool
    func (m *HPAmebloPostMutation) OwnerArtistIDs() (ids []int)
    func (m *HPAmebloPostMutation) OwnerMemberCleared() bool
    func (m *HPAmebloPostMutation) OwnerMemberID() (r int, exists bool)
    func (m *HPAmebloPostMutation) OwnerMemberIDCleared() bool
    func (m *HPAmebloPostMutation) OwnerMemberIDs() (ids []int)
    func (m *HPAmebloPostMutation) Path() (r string, exists bool)
    func (m *HPAmebloPostMutation) PostAt() (r time.Time, exists bool)
    func (m *HPAmebloPostMutation) PrevPath() (r string, exists bool)
    func (m *HPAmebloPostMutation) PrevPathCleared() bool
    func (m *HPAmebloPostMutation) Reblogs() (r int, exists bool)
    func (m *HPAmebloPostMutation) ReblogsCleared() bool
    func (m *HPAmebloPostMutation) RecrawlRequired() (r bool, exists bool)
    func (m *HPAmebloPostMutation) RecrawlRequiredCleared() bool
    func (m *HPAmebloPostMutation) RemoveBlobIDs(ids ...int)
    func (m *HPAmebloPostMutation) RemoveTaggedArtistIDs(ids ...int)
    func (m *HPAmebloPostMutation) RemoveTaggedMemberIDs(ids ...int)
    func (m *HPAmebloPostMutation) RemovedBlobsIDs() (ids []int)
    func (m *HPAmebloPostMutation) RemovedEdges() []string
    func (m *HPAmebloPostMutation) RemovedIDs(name string) []ent.Value
    func (m *HPAmebloPostMutation) RemovedTaggedArtistsIDs() (ids []int)
    func (m *HPAmebloPostMutation) RemovedTaggedMembersIDs() (ids []int)
    func (m *HPAmebloPostMutation) ResetArtistKey()
    func (m *HPAmebloPostMutation) ResetAsset()
    func (m *HPAmebloPostMutation) ResetBlobs()
    func (m *HPAmebloPostMutation) ResetComments()
    func (m *HPAmebloPostMutation) ResetCrawledAt()
    func (m *HPAmebloPostMutation) ResetCreatedAt()
    func (m *HPAmebloPostMutation) ResetDescription()
    func (m *HPAmebloPostMutation) ResetEdge(name string) error
    func (m *HPAmebloPostMutation) ResetErrorCount()
    func (m *HPAmebloPostMutation) ResetField(name string) error
    func (m *HPAmebloPostMutation) ResetImages()
    func (m *HPAmebloPostMutation) ResetLastErrorMessage()
    func (m *HPAmebloPostMutation) ResetLikes()
    func (m *HPAmebloPostMutation) ResetManuallyModified()
    func (m *HPAmebloPostMutation) ResetMemberKey()
    func (m *HPAmebloPostMutation) ResetNextPath()
    func (m *HPAmebloPostMutation) ResetOwnerArtist()
    func (m *HPAmebloPostMutation) ResetOwnerArtistID()
    func (m *HPAmebloPostMutation) ResetOwnerMember()
    func (m *HPAmebloPostMutation) ResetOwnerMemberID()
    func (m *HPAmebloPostMutation) ResetPath()
    func (m *HPAmebloPostMutation) ResetPostAt()
    func (m *HPAmebloPostMutation) ResetPrevPath()
    func (m *HPAmebloPostMutation) ResetReblogs()
    func (m *HPAmebloPostMutation) ResetRecrawlRequired()
    func (m *HPAmebloPostMutation) ResetSource()
    func (m *HPAmebloPostMutation) ResetTaggedArtists()
    func (m *HPAmebloPostMutation) ResetTaggedMembers()
    func (m *HPAmebloPostMutation) ResetTheme()
    func (m *HPAmebloPostMutation) ResetTitle()
    func (m *HPAmebloPostMutation) ResetUpdatedAt()
    func (m *HPAmebloPostMutation) SetArtistKey(s string)
    func (m *HPAmebloPostMutation) SetAssetID(id int)
    func (m *HPAmebloPostMutation) SetComments(i int)
    func (m *HPAmebloPostMutation) SetCrawledAt(t time.Time)
    func (m *HPAmebloPostMutation) SetCreatedAt(t time.Time)
    func (m *HPAmebloPostMutation) SetDescription(s string)
    func (m *HPAmebloPostMutation) SetErrorCount(i int)
    func (m *HPAmebloPostMutation) SetField(name string, value ent.Value) error
    func (m *HPAmebloPostMutation) SetImages(j []jsonfields.Media)
    func (m *HPAmebloPostMutation) SetLastErrorMessage(s string)
    func (m *HPAmebloPostMutation) SetLikes(i int)
    func (m *HPAmebloPostMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)
    func (m *HPAmebloPostMutation) SetMemberKey(s string)
    func (m *HPAmebloPostMutation) SetNextPath(s string)
    func (m *HPAmebloPostMutation) SetOp(op Op)
    func (m *HPAmebloPostMutation) SetOwnerArtistID(i int)
    func (m *HPAmebloPostMutation) SetOwnerMemberID(i int)
    func (m *HPAmebloPostMutation) SetPath(s string)
    func (m *HPAmebloPostMutation) SetPostAt(t time.Time)
    func (m *HPAmebloPostMutation) SetPrevPath(s string)
    func (m *HPAmebloPostMutation) SetReblogs(i int)
    func (m *HPAmebloPostMutation) SetRecrawlRequired(b bool)
    func (m *HPAmebloPostMutation) SetSource(h hpameblopost.Source)
    func (m *HPAmebloPostMutation) SetTheme(s string)
    func (m *HPAmebloPostMutation) SetTitle(s string)
    func (m *HPAmebloPostMutation) SetUpdatedAt(t time.Time)
    func (m *HPAmebloPostMutation) Source() (r hpameblopost.Source, exists bool)
    func (m *HPAmebloPostMutation) TaggedArtistsCleared() bool
    func (m *HPAmebloPostMutation) TaggedArtistsIDs() (ids []int)
    func (m *HPAmebloPostMutation) TaggedMembersCleared() bool
    func (m *HPAmebloPostMutation) TaggedMembersIDs() (ids []int)
    func (m *HPAmebloPostMutation) Theme() (r string, exists bool)
    func (m *HPAmebloPostMutation) ThemeCleared() bool
    func (m *HPAmebloPostMutation) Title() (r string, exists bool)
    func (m HPAmebloPostMutation) Tx() (*Tx, error)
    func (m *HPAmebloPostMutation) Type() string
    func (m *HPAmebloPostMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPAmebloPostMutation) UpdatedAtCleared() bool
    func (m *HPAmebloPostMutation) Where(ps ...predicate.HPAmebloPost)
    func (m *HPAmebloPostMutation) WhereP(ps ...func(*sql.Selector))
type HPAmebloPostOrder
type HPAmebloPostOrderField
type HPAmebloPostPaginateOption
    func WithHPAmebloPostFilter(filter func(*HPAmebloPostQuery) (*HPAmebloPostQuery, error)) HPAmebloPostPaginateOption
    func WithHPAmebloPostOrder(order *HPAmebloPostOrder) HPAmebloPostPaginateOption
type HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) Aggregate(fns ...AggregateFunc) *HPAmebloPostSelect
    func (hapq *HPAmebloPostQuery) All(ctx context.Context) ([]*HPAmebloPost, error)
    func (hapq *HPAmebloPostQuery) AllX(ctx context.Context) []*HPAmebloPost
    func (hapq *HPAmebloPostQuery) Clone() *HPAmebloPostQuery
    func (hap *HPAmebloPostQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPAmebloPostQuery, error)
    func (hapq *HPAmebloPostQuery) Count(ctx context.Context) (int, error)
    func (hapq *HPAmebloPostQuery) CountX(ctx context.Context) int
    func (hapq *HPAmebloPostQuery) Exist(ctx context.Context) (bool, error)
    func (hapq *HPAmebloPostQuery) ExistX(ctx context.Context) bool
    func (hapq *HPAmebloPostQuery) Filter() *HPAmebloPostFilter
    func (hapq *HPAmebloPostQuery) First(ctx context.Context) (*HPAmebloPost, error)
    func (hapq *HPAmebloPostQuery) FirstID(ctx context.Context) (id int, err error)
    func (hapq *HPAmebloPostQuery) FirstIDX(ctx context.Context) int
    func (hapq *HPAmebloPostQuery) FirstX(ctx context.Context) *HPAmebloPost
    func (hapq *HPAmebloPostQuery) GroupBy(field string, fields ...string) *HPAmebloPostGroupBy
    func (hapq *HPAmebloPostQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hapq *HPAmebloPostQuery) IDsX(ctx context.Context) []int
    func (hapq *HPAmebloPostQuery) Limit(limit int) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) Offset(offset int) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) Only(ctx context.Context) (*HPAmebloPost, error)
    func (hapq *HPAmebloPostQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hapq *HPAmebloPostQuery) OnlyIDX(ctx context.Context) int
    func (hapq *HPAmebloPostQuery) OnlyX(ctx context.Context) *HPAmebloPost
    func (hapq *HPAmebloPostQuery) Order(o ...hpameblopost.Order) *HPAmebloPostQuery
    func (hap *HPAmebloPostQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPAmebloPostPaginateOption) (*HPAmebloPostConnection, error)
    func (hapq *HPAmebloPostQuery) QueryAsset() *HPAssetQuery
    func (hapq *HPAmebloPostQuery) QueryBlobs() *HPBlobQuery
    func (hapq *HPAmebloPostQuery) QueryOwnerArtist() *HPArtistQuery
    func (hapq *HPAmebloPostQuery) QueryOwnerMember() *HPMemberQuery
    func (hapq *HPAmebloPostQuery) QueryTaggedArtists() *HPArtistQuery
    func (hapq *HPAmebloPostQuery) QueryTaggedMembers() *HPMemberQuery
    func (hapq *HPAmebloPostQuery) Select(fields ...string) *HPAmebloPostSelect
    func (hapq *HPAmebloPostQuery) Unique(unique bool) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithAsset(opts ...func(*HPAssetQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithBlobs(opts ...func(*HPBlobQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithNamedBlobs(name string, opts ...func(*HPBlobQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPAmebloPostQuery
    func (hapq *HPAmebloPostQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPAmebloPostQuery
type HPAmebloPostSelect
    func (haps *HPAmebloPostSelect) Aggregate(fns ...AggregateFunc) *HPAmebloPostSelect
    func (s *HPAmebloPostSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPAmebloPostSelect) BoolX(ctx context.Context) bool
    func (s *HPAmebloPostSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPAmebloPostSelect) BoolsX(ctx context.Context) []bool
    func (s *HPAmebloPostSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPAmebloPostSelect) Float64X(ctx context.Context) float64
    func (s *HPAmebloPostSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPAmebloPostSelect) Float64sX(ctx context.Context) []float64
    func (s *HPAmebloPostSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPAmebloPostSelect) IntX(ctx context.Context) int
    func (s *HPAmebloPostSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPAmebloPostSelect) IntsX(ctx context.Context) []int
    func (haps *HPAmebloPostSelect) Scan(ctx context.Context, v any) error
    func (s *HPAmebloPostSelect) ScanX(ctx context.Context, v any)
    func (s *HPAmebloPostSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPAmebloPostSelect) StringX(ctx context.Context) string
    func (s *HPAmebloPostSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPAmebloPostSelect) StringsX(ctx context.Context) []string
type HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddBlobIDs(ids ...int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddBlobs(h ...*HPBlob) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddComments(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddErrorCount(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddLikes(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddReblogs(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddTaggedArtistIDs(ids ...int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddTaggedMemberIDs(ids ...int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AddTaggedMembers(h ...*HPMember) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) AppendImages(j []jsonfields.Media) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearAsset() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearBlobs() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearComments() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearCrawledAt() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearImages() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearLastErrorMessage() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearLikes() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearManuallyModified() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearMemberKey() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearNextPath() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearOwnerArtist() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearOwnerArtistID() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearOwnerMember() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearOwnerMemberID() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearPrevPath() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearReblogs() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearRecrawlRequired() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearTaggedArtists() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearTaggedMembers() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearTheme() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) ClearUpdatedAt() *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) Exec(ctx context.Context) error
    func (hapu *HPAmebloPostUpdate) ExecX(ctx context.Context)
    func (hapu *HPAmebloPostUpdate) Mutation() *HPAmebloPostMutation
    func (hapu *HPAmebloPostUpdate) RemoveBlobIDs(ids ...int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) RemoveBlobs(h ...*HPBlob) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) RemoveTaggedArtistIDs(ids ...int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) RemoveTaggedMemberIDs(ids ...int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) RemoveTaggedMembers(h ...*HPMember) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) Save(ctx context.Context) (int, error)
    func (hapu *HPAmebloPostUpdate) SaveX(ctx context.Context) int
    func (hapu *HPAmebloPostUpdate) SetArtistKey(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetAsset(h *HPAsset) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetAssetID(id int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetComments(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetCrawledAt(t time.Time) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetDescription(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetErrorCount(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetImages(j []jsonfields.Media) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetLastErrorMessage(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetLikes(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetMemberKey(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNextPath(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableAssetID(id *int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableComments(i *int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableCrawledAt(t *time.Time) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableErrorCount(i *int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableLastErrorMessage(s *string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableLikes(i *int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableMemberKey(s *string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableNextPath(s *string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableOwnerArtistID(i *int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableOwnerMemberID(i *int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillablePrevPath(s *string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableReblogs(i *int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableRecrawlRequired(b *bool) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableTheme(s *string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetNillableUpdatedAt(t *time.Time) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetOwnerArtist(h *HPArtist) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetOwnerArtistID(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetOwnerMember(h *HPMember) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetOwnerMemberID(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetPath(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetPostAt(t time.Time) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetPrevPath(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetReblogs(i int) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetRecrawlRequired(b bool) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetSource(h hpameblopost.Source) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetTheme(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetTitle(s string) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) SetUpdatedAt(t time.Time) *HPAmebloPostUpdate
    func (hapu *HPAmebloPostUpdate) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostUpdate
type HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddBlobIDs(ids ...int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddBlobs(h ...*HPBlob) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddComments(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddErrorCount(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddLikes(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddReblogs(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddTaggedArtistIDs(ids ...int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddTaggedMemberIDs(ids ...int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AddTaggedMembers(h ...*HPMember) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) AppendImages(j []jsonfields.Media) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearAsset() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearBlobs() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearComments() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearCrawledAt() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearImages() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearLastErrorMessage() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearLikes() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearManuallyModified() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearMemberKey() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearNextPath() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearOwnerArtist() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearOwnerArtistID() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearOwnerMember() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearOwnerMemberID() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearPrevPath() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearReblogs() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearRecrawlRequired() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearTaggedArtists() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearTaggedMembers() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearTheme() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) ClearUpdatedAt() *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) Exec(ctx context.Context) error
    func (hapuo *HPAmebloPostUpdateOne) ExecX(ctx context.Context)
    func (hapuo *HPAmebloPostUpdateOne) Mutation() *HPAmebloPostMutation
    func (hapuo *HPAmebloPostUpdateOne) RemoveBlobIDs(ids ...int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) RemoveBlobs(h ...*HPBlob) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) Save(ctx context.Context) (*HPAmebloPost, error)
    func (hapuo *HPAmebloPostUpdateOne) SaveX(ctx context.Context) *HPAmebloPost
    func (hapuo *HPAmebloPostUpdateOne) Select(field string, fields ...string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetArtistKey(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetAsset(h *HPAsset) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetAssetID(id int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetComments(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetCrawledAt(t time.Time) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetDescription(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetErrorCount(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetImages(j []jsonfields.Media) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetLastErrorMessage(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetLikes(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetMemberKey(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNextPath(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableAssetID(id *int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableComments(i *int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableCrawledAt(t *time.Time) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableErrorCount(i *int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableLastErrorMessage(s *string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableLikes(i *int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableMemberKey(s *string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableNextPath(s *string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableOwnerArtistID(i *int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableOwnerMemberID(i *int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillablePrevPath(s *string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableReblogs(i *int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableRecrawlRequired(b *bool) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableTheme(s *string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetOwnerArtist(h *HPArtist) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetOwnerArtistID(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetOwnerMember(h *HPMember) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetOwnerMemberID(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetPath(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetPostAt(t time.Time) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetPrevPath(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetReblogs(i int) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetRecrawlRequired(b bool) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetSource(h hpameblopost.Source) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetTheme(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetTitle(s string) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) SetUpdatedAt(t time.Time) *HPAmebloPostUpdateOne
    func (hapuo *HPAmebloPostUpdateOne) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostUpdateOne
type HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) AddComments(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) AddErrorCount(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) AddLikes(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) AddReblogs(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearComments() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearCrawledAt() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearImages() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearLastErrorMessage() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearLikes() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearManuallyModified() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearMemberKey() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearNextPath() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearOwnerArtistID() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearOwnerMemberID() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearPrevPath() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearReblogs() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearRecrawlRequired() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearTheme() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) ClearUpdatedAt() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetArtistKey(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetComments(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetCrawledAt(v time.Time) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetDescription(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetErrorCount(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetImages(v []jsonfields.Media) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetLastErrorMessage(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetLikes(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetMemberKey(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetNextPath(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetOwnerArtistID(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetOwnerMemberID(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetPath(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetPostAt(v time.Time) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetPrevPath(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetReblogs(v int) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetRecrawlRequired(v bool) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetSource(v hpameblopost.Source) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetTheme(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetTitle(v string) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) SetUpdatedAt(v time.Time) *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateArtistKey() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateComments() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateCrawledAt() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateDescription() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateErrorCount() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateImages() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateLastErrorMessage() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateLikes() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateManuallyModified() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateMemberKey() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateNextPath() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateOwnerArtistID() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateOwnerMemberID() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdatePath() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdatePostAt() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdatePrevPath() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateReblogs() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateRecrawlRequired() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateSource() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateTheme() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateTitle() *HPAmebloPostUpsert
    func (u *HPAmebloPostUpsert) UpdateUpdatedAt() *HPAmebloPostUpsert
type HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) AddComments(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) AddErrorCount(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) AddLikes(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) AddReblogs(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearComments() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearCrawledAt() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearImages() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearLastErrorMessage() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearLikes() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearManuallyModified() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearMemberKey() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearNextPath() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearOwnerArtistID() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearOwnerMemberID() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearPrevPath() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearReblogs() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearRecrawlRequired() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearTheme() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) ClearUpdatedAt() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) DoNothing() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) Exec(ctx context.Context) error
    func (u *HPAmebloPostUpsertBulk) ExecX(ctx context.Context)
    func (u *HPAmebloPostUpsertBulk) Ignore() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetArtistKey(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetComments(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetCrawledAt(v time.Time) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetDescription(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetErrorCount(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetImages(v []jsonfields.Media) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetLastErrorMessage(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetLikes(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetMemberKey(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetNextPath(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetOwnerArtistID(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetOwnerMemberID(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetPath(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetPostAt(v time.Time) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetPrevPath(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetReblogs(v int) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetRecrawlRequired(v bool) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetSource(v hpameblopost.Source) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetTheme(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetTitle(v string) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) SetUpdatedAt(v time.Time) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) Update(set func(*HPAmebloPostUpsert)) *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateArtistKey() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateComments() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateCrawledAt() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateDescription() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateErrorCount() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateImages() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateLastErrorMessage() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateLikes() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateManuallyModified() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateMemberKey() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateNewValues() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateNextPath() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateOwnerArtistID() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateOwnerMemberID() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdatePath() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdatePostAt() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdatePrevPath() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateReblogs() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateRecrawlRequired() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateSource() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateTheme() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateTitle() *HPAmebloPostUpsertBulk
    func (u *HPAmebloPostUpsertBulk) UpdateUpdatedAt() *HPAmebloPostUpsertBulk
type HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) AddComments(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) AddErrorCount(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) AddLikes(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) AddReblogs(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearComments() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearCrawledAt() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearImages() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearLastErrorMessage() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearLikes() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearManuallyModified() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearMemberKey() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearNextPath() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearOwnerArtistID() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearOwnerMemberID() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearPrevPath() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearReblogs() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearRecrawlRequired() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearTheme() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) ClearUpdatedAt() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) DoNothing() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) Exec(ctx context.Context) error
    func (u *HPAmebloPostUpsertOne) ExecX(ctx context.Context)
    func (u *HPAmebloPostUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPAmebloPostUpsertOne) IDX(ctx context.Context) int
    func (u *HPAmebloPostUpsertOne) Ignore() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetArtistKey(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetComments(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetCrawledAt(v time.Time) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetDescription(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetErrorCount(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetImages(v []jsonfields.Media) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetLastErrorMessage(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetLikes(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetMemberKey(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetNextPath(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetOwnerArtistID(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetOwnerMemberID(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetPath(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetPostAt(v time.Time) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetPrevPath(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetReblogs(v int) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetRecrawlRequired(v bool) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetSource(v hpameblopost.Source) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetTheme(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetTitle(v string) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) SetUpdatedAt(v time.Time) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) Update(set func(*HPAmebloPostUpsert)) *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateArtistKey() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateComments() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateCrawledAt() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateDescription() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateErrorCount() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateImages() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateLastErrorMessage() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateLikes() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateManuallyModified() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateMemberKey() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateNewValues() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateNextPath() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateOwnerArtistID() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateOwnerMemberID() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdatePath() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdatePostAt() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdatePrevPath() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateReblogs() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateRecrawlRequired() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateSource() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateTheme() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateTitle() *HPAmebloPostUpsertOne
    func (u *HPAmebloPostUpsertOne) UpdateUpdatedAt() *HPAmebloPostUpsertOne
type HPAmebloPosts
type HPArtist
    func (n *HPArtist) IsNode()
    func (ha *HPArtist) Members(ctx context.Context) (result []*HPMember, err error)
    func (ha *HPArtist) NamedAssets(name string) ([]*HPAsset, error)
    func (ha *HPArtist) NamedMembers(name string) ([]*HPMember, error)
    func (ha *HPArtist) NamedOwningAmebloPosts(name string) ([]*HPAmebloPost, error)
    func (ha *HPArtist) NamedOwningFeed(name string) ([]*HPFeedItem, error)
    func (ha *HPArtist) NamedOwningIgPosts(name string) ([]*HPIgPost, error)
    func (ha *HPArtist) NamedTaggedAmebloPosts(name string) ([]*HPAmebloPost, error)
    func (ha *HPArtist) NamedTaggedElineupMallItems(name string) ([]*HPElineupMallItem, error)
    func (ha *HPArtist) NamedTaggedFeed(name string) ([]*HPFeedItem, error)
    func (ha *HPArtist) NamedTaggedIgPosts(name string) ([]*HPIgPost, error)
    func (ha *HPArtist) QueryAssets() *HPAssetQuery
    func (ha *HPArtist) QueryMembers() *HPMemberQuery
    func (ha *HPArtist) QueryOwningAmebloPosts() *HPAmebloPostQuery
    func (ha *HPArtist) QueryOwningFeed() *HPFeedItemQuery
    func (ha *HPArtist) QueryOwningIgPosts() *HPIgPostQuery
    func (ha *HPArtist) QueryTaggedAmebloPosts() *HPAmebloPostQuery
    func (ha *HPArtist) QueryTaggedElineupMallItems() *HPElineupMallItemQuery
    func (ha *HPArtist) QueryTaggedFeed() *HPFeedItemQuery
    func (ha *HPArtist) QueryTaggedIgPosts() *HPIgPostQuery
    func (ha *HPArtist) String() string
    func (ha *HPArtist) ToEdge(order *HPArtistOrder) *HPArtistEdge
    func (ha *HPArtist) Unwrap() *HPArtist
    func (ha *HPArtist) Update() *HPArtistUpdateOne
    func (ha *HPArtist) Value(name string) (ent.Value, error)
type HPArtistClient
    func NewHPArtistClient(c config) *HPArtistClient
    func (c *HPArtistClient) Create() *HPArtistCreate
    func (c *HPArtistClient) CreateBulk(builders ...*HPArtistCreate) *HPArtistCreateBulk
    func (c *HPArtistClient) Delete() *HPArtistDelete
    func (c *HPArtistClient) DeleteOne(ha *HPArtist) *HPArtistDeleteOne
    func (c *HPArtistClient) DeleteOneID(id int) *HPArtistDeleteOne
    func (c *HPArtistClient) Get(ctx context.Context, id int) (*HPArtist, error)
    func (c *HPArtistClient) GetX(ctx context.Context, id int) *HPArtist
    func (c *HPArtistClient) Hooks() []Hook
    func (c *HPArtistClient) Intercept(interceptors ...Interceptor)
    func (c *HPArtistClient) Interceptors() []Interceptor
    func (c *HPArtistClient) Query() *HPArtistQuery
    func (c *HPArtistClient) QueryAssets(ha *HPArtist) *HPAssetQuery
    func (c *HPArtistClient) QueryMembers(ha *HPArtist) *HPMemberQuery
    func (c *HPArtistClient) QueryOwningAmebloPosts(ha *HPArtist) *HPAmebloPostQuery
    func (c *HPArtistClient) QueryOwningFeed(ha *HPArtist) *HPFeedItemQuery
    func (c *HPArtistClient) QueryOwningIgPosts(ha *HPArtist) *HPIgPostQuery
    func (c *HPArtistClient) QueryTaggedAmebloPosts(ha *HPArtist) *HPAmebloPostQuery
    func (c *HPArtistClient) QueryTaggedElineupMallItems(ha *HPArtist) *HPElineupMallItemQuery
    func (c *HPArtistClient) QueryTaggedFeed(ha *HPArtist) *HPFeedItemQuery
    func (c *HPArtistClient) QueryTaggedIgPosts(ha *HPArtist) *HPIgPostQuery
    func (c *HPArtistClient) Update() *HPArtistUpdate
    func (c *HPArtistClient) UpdateOne(ha *HPArtist) *HPArtistUpdateOne
    func (c *HPArtistClient) UpdateOneID(id int) *HPArtistUpdateOne
    func (c *HPArtistClient) Use(hooks ...Hook)
type HPArtistConnection
type HPArtistCreate
    func (hac *HPArtistCreate) AddAssetIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddAssets(h ...*HPAsset) *HPArtistCreate
    func (hac *HPArtistCreate) AddMemberIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddMembers(h ...*HPMember) *HPArtistCreate
    func (hac *HPArtistCreate) AddOwningAmebloPostIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistCreate
    func (hac *HPArtistCreate) AddOwningFeed(h ...*HPFeedItem) *HPArtistCreate
    func (hac *HPArtistCreate) AddOwningFeedIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddOwningIgPostIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddOwningIgPosts(h ...*HPIgPost) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedAmebloPostIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedElineupMallItemIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedFeed(h ...*HPFeedItem) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedFeedIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedIgPostIDs(ids ...int) *HPArtistCreate
    func (hac *HPArtistCreate) AddTaggedIgPosts(h ...*HPIgPost) *HPArtistCreate
    func (hac *HPArtistCreate) Exec(ctx context.Context) error
    func (hac *HPArtistCreate) ExecX(ctx context.Context)
    func (hac *HPArtistCreate) Mutation() *HPArtistMutation
    func (hac *HPArtistCreate) OnConflict(opts ...sql.ConflictOption) *HPArtistUpsertOne
    func (hac *HPArtistCreate) OnConflictColumns(columns ...string) *HPArtistUpsertOne
    func (hac *HPArtistCreate) Save(ctx context.Context) (*HPArtist, error)
    func (hac *HPArtistCreate) SaveX(ctx context.Context) *HPArtist
    func (hac *HPArtistCreate) SetCrawledAt(t time.Time) *HPArtistCreate
    func (hac *HPArtistCreate) SetCreatedAt(t time.Time) *HPArtistCreate
    func (hac *HPArtistCreate) SetErrorCount(i int) *HPArtistCreate
    func (hac *HPArtistCreate) SetIndex(i int) *HPArtistCreate
    func (hac *HPArtistCreate) SetKey(s string) *HPArtistCreate
    func (hac *HPArtistCreate) SetLastErrorMessage(s string) *HPArtistCreate
    func (hac *HPArtistCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPArtistCreate
    func (hac *HPArtistCreate) SetName(s string) *HPArtistCreate
    func (hac *HPArtistCreate) SetNillableCrawledAt(t *time.Time) *HPArtistCreate
    func (hac *HPArtistCreate) SetNillableCreatedAt(t *time.Time) *HPArtistCreate
    func (hac *HPArtistCreate) SetNillableErrorCount(i *int) *HPArtistCreate
    func (hac *HPArtistCreate) SetNillableLastErrorMessage(s *string) *HPArtistCreate
    func (hac *HPArtistCreate) SetNillableRecrawlRequired(b *bool) *HPArtistCreate
    func (hac *HPArtistCreate) SetNillableUpdatedAt(t *time.Time) *HPArtistCreate
    func (hac *HPArtistCreate) SetRecrawlRequired(b bool) *HPArtistCreate
    func (hac *HPArtistCreate) SetThumbnailURL(s string) *HPArtistCreate
    func (hac *HPArtistCreate) SetUpdatedAt(t time.Time) *HPArtistCreate
type HPArtistCreateBulk
    func (hacb *HPArtistCreateBulk) Exec(ctx context.Context) error
    func (hacb *HPArtistCreateBulk) ExecX(ctx context.Context)
    func (hacb *HPArtistCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPArtistUpsertBulk
    func (hacb *HPArtistCreateBulk) OnConflictColumns(columns ...string) *HPArtistUpsertBulk
    func (hacb *HPArtistCreateBulk) Save(ctx context.Context) ([]*HPArtist, error)
    func (hacb *HPArtistCreateBulk) SaveX(ctx context.Context) []*HPArtist
type HPArtistDelete
    func (had *HPArtistDelete) Exec(ctx context.Context) (int, error)
    func (had *HPArtistDelete) ExecX(ctx context.Context) int
    func (had *HPArtistDelete) Where(ps ...predicate.HPArtist) *HPArtistDelete
type HPArtistDeleteOne
    func (hado *HPArtistDeleteOne) Exec(ctx context.Context) error
    func (hado *HPArtistDeleteOne) ExecX(ctx context.Context)
    func (hado *HPArtistDeleteOne) Where(ps ...predicate.HPArtist) *HPArtistDeleteOne
type HPArtistEdge
type HPArtistEdges
    func (e HPArtistEdges) AssetsOrErr() ([]*HPAsset, error)
    func (e HPArtistEdges) MembersOrErr() ([]*HPMember, error)
    func (e HPArtistEdges) OwningAmebloPostsOrErr() ([]*HPAmebloPost, error)
    func (e HPArtistEdges) OwningFeedOrErr() ([]*HPFeedItem, error)
    func (e HPArtistEdges) OwningIgPostsOrErr() ([]*HPIgPost, error)
    func (e HPArtistEdges) TaggedAmebloPostsOrErr() ([]*HPAmebloPost, error)
    func (e HPArtistEdges) TaggedElineupMallItemsOrErr() ([]*HPElineupMallItem, error)
    func (e HPArtistEdges) TaggedFeedOrErr() ([]*HPFeedItem, error)
    func (e HPArtistEdges) TaggedIgPostsOrErr() ([]*HPIgPost, error)
type HPArtistFilter
    func (f *HPArtistFilter) Where(p entql.P)
    func (f *HPArtistFilter) WhereCrawledAt(p entql.TimeP)
    func (f *HPArtistFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPArtistFilter) WhereErrorCount(p entql.IntP)
    func (f *HPArtistFilter) WhereHasAssets()
    func (f *HPArtistFilter) WhereHasAssetsWith(preds ...predicate.HPAsset)
    func (f *HPArtistFilter) WhereHasMembers()
    func (f *HPArtistFilter) WhereHasMembersWith(preds ...predicate.HPMember)
    func (f *HPArtistFilter) WhereHasOwningAmebloPosts()
    func (f *HPArtistFilter) WhereHasOwningAmebloPostsWith(preds ...predicate.HPAmebloPost)
    func (f *HPArtistFilter) WhereHasOwningFeed()
    func (f *HPArtistFilter) WhereHasOwningFeedWith(preds ...predicate.HPFeedItem)
    func (f *HPArtistFilter) WhereHasOwningIgPosts()
    func (f *HPArtistFilter) WhereHasOwningIgPostsWith(preds ...predicate.HPIgPost)
    func (f *HPArtistFilter) WhereHasTaggedAmebloPosts()
    func (f *HPArtistFilter) WhereHasTaggedAmebloPostsWith(preds ...predicate.HPAmebloPost)
    func (f *HPArtistFilter) WhereHasTaggedElineupMallItems()
    func (f *HPArtistFilter) WhereHasTaggedElineupMallItemsWith(preds ...predicate.HPElineupMallItem)
    func (f *HPArtistFilter) WhereHasTaggedFeed()
    func (f *HPArtistFilter) WhereHasTaggedFeedWith(preds ...predicate.HPFeedItem)
    func (f *HPArtistFilter) WhereHasTaggedIgPosts()
    func (f *HPArtistFilter) WhereHasTaggedIgPostsWith(preds ...predicate.HPIgPost)
    func (f *HPArtistFilter) WhereID(p entql.IntP)
    func (f *HPArtistFilter) WhereIndex(p entql.IntP)
    func (f *HPArtistFilter) WhereKey(p entql.StringP)
    func (f *HPArtistFilter) WhereLastErrorMessage(p entql.StringP)
    func (f *HPArtistFilter) WhereManuallyModified(p entql.BytesP)
    func (f *HPArtistFilter) WhereName(p entql.StringP)
    func (f *HPArtistFilter) WhereRecrawlRequired(p entql.BoolP)
    func (f *HPArtistFilter) WhereThumbnailURL(p entql.StringP)
    func (f *HPArtistFilter) WhereUpdatedAt(p entql.TimeP)
type HPArtistGroupBy
    func (hagb *HPArtistGroupBy) Aggregate(fns ...AggregateFunc) *HPArtistGroupBy
    func (s *HPArtistGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPArtistGroupBy) BoolX(ctx context.Context) bool
    func (s *HPArtistGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPArtistGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPArtistGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPArtistGroupBy) Float64X(ctx context.Context) float64
    func (s *HPArtistGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPArtistGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPArtistGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPArtistGroupBy) IntX(ctx context.Context) int
    func (s *HPArtistGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPArtistGroupBy) IntsX(ctx context.Context) []int
    func (hagb *HPArtistGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPArtistGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPArtistGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPArtistGroupBy) StringX(ctx context.Context) string
    func (s *HPArtistGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPArtistGroupBy) StringsX(ctx context.Context) []string
type HPArtistMutation
    func (m *HPArtistMutation) AddAssetIDs(ids ...int)
    func (m *HPArtistMutation) AddErrorCount(i int)
    func (m *HPArtistMutation) AddField(name string, value ent.Value) error
    func (m *HPArtistMutation) AddIndex(i int)
    func (m *HPArtistMutation) AddMemberIDs(ids ...int)
    func (m *HPArtistMutation) AddOwningAmebloPostIDs(ids ...int)
    func (m *HPArtistMutation) AddOwningFeedIDs(ids ...int)
    func (m *HPArtistMutation) AddOwningIgPostIDs(ids ...int)
    func (m *HPArtistMutation) AddTaggedAmebloPostIDs(ids ...int)
    func (m *HPArtistMutation) AddTaggedElineupMallItemIDs(ids ...int)
    func (m *HPArtistMutation) AddTaggedFeedIDs(ids ...int)
    func (m *HPArtistMutation) AddTaggedIgPostIDs(ids ...int)
    func (m *HPArtistMutation) AddedEdges() []string
    func (m *HPArtistMutation) AddedErrorCount() (r int, exists bool)
    func (m *HPArtistMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPArtistMutation) AddedFields() []string
    func (m *HPArtistMutation) AddedIDs(name string) []ent.Value
    func (m *HPArtistMutation) AddedIndex() (r int, exists bool)
    func (m *HPArtistMutation) AssetsCleared() bool
    func (m *HPArtistMutation) AssetsIDs() (ids []int)
    func (m *HPArtistMutation) ClearAssets()
    func (m *HPArtistMutation) ClearCrawledAt()
    func (m *HPArtistMutation) ClearCreatedAt()
    func (m *HPArtistMutation) ClearEdge(name string) error
    func (m *HPArtistMutation) ClearField(name string) error
    func (m *HPArtistMutation) ClearLastErrorMessage()
    func (m *HPArtistMutation) ClearManuallyModified()
    func (m *HPArtistMutation) ClearMembers()
    func (m *HPArtistMutation) ClearOwningAmebloPosts()
    func (m *HPArtistMutation) ClearOwningFeed()
    func (m *HPArtistMutation) ClearOwningIgPosts()
    func (m *HPArtistMutation) ClearRecrawlRequired()
    func (m *HPArtistMutation) ClearTaggedAmebloPosts()
    func (m *HPArtistMutation) ClearTaggedElineupMallItems()
    func (m *HPArtistMutation) ClearTaggedFeed()
    func (m *HPArtistMutation) ClearTaggedIgPosts()
    func (m *HPArtistMutation) ClearUpdatedAt()
    func (m *HPArtistMutation) ClearedEdges() []string
    func (m *HPArtistMutation) ClearedFields() []string
    func (m HPArtistMutation) Client() *Client
    func (m *HPArtistMutation) CrawledAt() (r time.Time, exists bool)
    func (m *HPArtistMutation) CrawledAtCleared() bool
    func (m *HPArtistMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPArtistMutation) CreatedAtCleared() bool
    func (m *HPArtistMutation) EdgeCleared(name string) bool
    func (m *HPArtistMutation) ErrorCount() (r int, exists bool)
    func (m *HPArtistMutation) Field(name string) (ent.Value, bool)
    func (m *HPArtistMutation) FieldCleared(name string) bool
    func (m *HPArtistMutation) Fields() []string
    func (m *HPArtistMutation) Filter() *HPArtistFilter
    func (m *HPArtistMutation) ID() (id int, exists bool)
    func (m *HPArtistMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPArtistMutation) Index() (r int, exists bool)
    func (m *HPArtistMutation) Key() (r string, exists bool)
    func (m *HPArtistMutation) LastErrorMessage() (r string, exists bool)
    func (m *HPArtistMutation) LastErrorMessageCleared() bool
    func (m *HPArtistMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)
    func (m *HPArtistMutation) ManuallyModifiedCleared() bool
    func (m *HPArtistMutation) MembersCleared() bool
    func (m *HPArtistMutation) MembersIDs() (ids []int)
    func (m *HPArtistMutation) Name() (r string, exists bool)
    func (m *HPArtistMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPArtistMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPArtistMutation) OldErrorCount(ctx context.Context) (v int, err error)
    func (m *HPArtistMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPArtistMutation) OldIndex(ctx context.Context) (v int, err error)
    func (m *HPArtistMutation) OldKey(ctx context.Context) (v string, err error)
    func (m *HPArtistMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)
    func (m *HPArtistMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)
    func (m *HPArtistMutation) OldName(ctx context.Context) (v string, err error)
    func (m *HPArtistMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)
    func (m *HPArtistMutation) OldThumbnailURL(ctx context.Context) (v string, err error)
    func (m *HPArtistMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPArtistMutation) Op() Op
    func (m *HPArtistMutation) OwningAmebloPostsCleared() bool
    func (m *HPArtistMutation) OwningAmebloPostsIDs() (ids []int)
    func (m *HPArtistMutation) OwningFeedCleared() bool
    func (m *HPArtistMutation) OwningFeedIDs() (ids []int)
    func (m *HPArtistMutation) OwningIgPostsCleared() bool
    func (m *HPArtistMutation) OwningIgPostsIDs() (ids []int)
    func (m *HPArtistMutation) RecrawlRequired() (r bool, exists bool)
    func (m *HPArtistMutation) RecrawlRequiredCleared() bool
    func (m *HPArtistMutation) RemoveAssetIDs(ids ...int)
    func (m *HPArtistMutation) RemoveMemberIDs(ids ...int)
    func (m *HPArtistMutation) RemoveOwningAmebloPostIDs(ids ...int)
    func (m *HPArtistMutation) RemoveOwningFeedIDs(ids ...int)
    func (m *HPArtistMutation) RemoveOwningIgPostIDs(ids ...int)
    func (m *HPArtistMutation) RemoveTaggedAmebloPostIDs(ids ...int)
    func (m *HPArtistMutation) RemoveTaggedElineupMallItemIDs(ids ...int)
    func (m *HPArtistMutation) RemoveTaggedFeedIDs(ids ...int)
    func (m *HPArtistMutation) RemoveTaggedIgPostIDs(ids ...int)
    func (m *HPArtistMutation) RemovedAssetsIDs() (ids []int)
    func (m *HPArtistMutation) RemovedEdges() []string
    func (m *HPArtistMutation) RemovedIDs(name string) []ent.Value
    func (m *HPArtistMutation) RemovedMembersIDs() (ids []int)
    func (m *HPArtistMutation) RemovedOwningAmebloPostsIDs() (ids []int)
    func (m *HPArtistMutation) RemovedOwningFeedIDs() (ids []int)
    func (m *HPArtistMutation) RemovedOwningIgPostsIDs() (ids []int)
    func (m *HPArtistMutation) RemovedTaggedAmebloPostsIDs() (ids []int)
    func (m *HPArtistMutation) RemovedTaggedElineupMallItemsIDs() (ids []int)
    func (m *HPArtistMutation) RemovedTaggedFeedIDs() (ids []int)
    func (m *HPArtistMutation) RemovedTaggedIgPostsIDs() (ids []int)
    func (m *HPArtistMutation) ResetAssets()
    func (m *HPArtistMutation) ResetCrawledAt()
    func (m *HPArtistMutation) ResetCreatedAt()
    func (m *HPArtistMutation) ResetEdge(name string) error
    func (m *HPArtistMutation) ResetErrorCount()
    func (m *HPArtistMutation) ResetField(name string) error
    func (m *HPArtistMutation) ResetIndex()
    func (m *HPArtistMutation) ResetKey()
    func (m *HPArtistMutation) ResetLastErrorMessage()
    func (m *HPArtistMutation) ResetManuallyModified()
    func (m *HPArtistMutation) ResetMembers()
    func (m *HPArtistMutation) ResetName()
    func (m *HPArtistMutation) ResetOwningAmebloPosts()
    func (m *HPArtistMutation) ResetOwningFeed()
    func (m *HPArtistMutation) ResetOwningIgPosts()
    func (m *HPArtistMutation) ResetRecrawlRequired()
    func (m *HPArtistMutation) ResetTaggedAmebloPosts()
    func (m *HPArtistMutation) ResetTaggedElineupMallItems()
    func (m *HPArtistMutation) ResetTaggedFeed()
    func (m *HPArtistMutation) ResetTaggedIgPosts()
    func (m *HPArtistMutation) ResetThumbnailURL()
    func (m *HPArtistMutation) ResetUpdatedAt()
    func (m *HPArtistMutation) SetCrawledAt(t time.Time)
    func (m *HPArtistMutation) SetCreatedAt(t time.Time)
    func (m *HPArtistMutation) SetErrorCount(i int)
    func (m *HPArtistMutation) SetField(name string, value ent.Value) error
    func (m *HPArtistMutation) SetIndex(i int)
    func (m *HPArtistMutation) SetKey(s string)
    func (m *HPArtistMutation) SetLastErrorMessage(s string)
    func (m *HPArtistMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)
    func (m *HPArtistMutation) SetName(s string)
    func (m *HPArtistMutation) SetOp(op Op)
    func (m *HPArtistMutation) SetRecrawlRequired(b bool)
    func (m *HPArtistMutation) SetThumbnailURL(s string)
    func (m *HPArtistMutation) SetUpdatedAt(t time.Time)
    func (m *HPArtistMutation) TaggedAmebloPostsCleared() bool
    func (m *HPArtistMutation) TaggedAmebloPostsIDs() (ids []int)
    func (m *HPArtistMutation) TaggedElineupMallItemsCleared() bool
    func (m *HPArtistMutation) TaggedElineupMallItemsIDs() (ids []int)
    func (m *HPArtistMutation) TaggedFeedCleared() bool
    func (m *HPArtistMutation) TaggedFeedIDs() (ids []int)
    func (m *HPArtistMutation) TaggedIgPostsCleared() bool
    func (m *HPArtistMutation) TaggedIgPostsIDs() (ids []int)
    func (m *HPArtistMutation) ThumbnailURL() (r string, exists bool)
    func (m HPArtistMutation) Tx() (*Tx, error)
    func (m *HPArtistMutation) Type() string
    func (m *HPArtistMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPArtistMutation) UpdatedAtCleared() bool
    func (m *HPArtistMutation) Where(ps ...predicate.HPArtist)
    func (m *HPArtistMutation) WhereP(ps ...func(*sql.Selector))
type HPArtistOrder
type HPArtistOrderField
type HPArtistPaginateOption
    func WithHPArtistFilter(filter func(*HPArtistQuery) (*HPArtistQuery, error)) HPArtistPaginateOption
    func WithHPArtistOrder(order *HPArtistOrder) HPArtistPaginateOption
type HPArtistQuery
    func (haq *HPArtistQuery) Aggregate(fns ...AggregateFunc) *HPArtistSelect
    func (haq *HPArtistQuery) All(ctx context.Context) ([]*HPArtist, error)
    func (haq *HPArtistQuery) AllX(ctx context.Context) []*HPArtist
    func (haq *HPArtistQuery) Clone() *HPArtistQuery
    func (ha *HPArtistQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPArtistQuery, error)
    func (haq *HPArtistQuery) Count(ctx context.Context) (int, error)
    func (haq *HPArtistQuery) CountX(ctx context.Context) int
    func (haq *HPArtistQuery) Exist(ctx context.Context) (bool, error)
    func (haq *HPArtistQuery) ExistX(ctx context.Context) bool
    func (haq *HPArtistQuery) Filter() *HPArtistFilter
    func (haq *HPArtistQuery) First(ctx context.Context) (*HPArtist, error)
    func (haq *HPArtistQuery) FirstID(ctx context.Context) (id int, err error)
    func (haq *HPArtistQuery) FirstIDX(ctx context.Context) int
    func (haq *HPArtistQuery) FirstX(ctx context.Context) *HPArtist
    func (haq *HPArtistQuery) GroupBy(field string, fields ...string) *HPArtistGroupBy
    func (haq *HPArtistQuery) IDs(ctx context.Context) (ids []int, err error)
    func (haq *HPArtistQuery) IDsX(ctx context.Context) []int
    func (haq *HPArtistQuery) Limit(limit int) *HPArtistQuery
    func (haq *HPArtistQuery) Offset(offset int) *HPArtistQuery
    func (haq *HPArtistQuery) Only(ctx context.Context) (*HPArtist, error)
    func (haq *HPArtistQuery) OnlyID(ctx context.Context) (id int, err error)
    func (haq *HPArtistQuery) OnlyIDX(ctx context.Context) int
    func (haq *HPArtistQuery) OnlyX(ctx context.Context) *HPArtist
    func (haq *HPArtistQuery) Order(o ...hpartist.Order) *HPArtistQuery
    func (ha *HPArtistQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPArtistPaginateOption) (*HPArtistConnection, error)
    func (haq *HPArtistQuery) QueryAssets() *HPAssetQuery
    func (haq *HPArtistQuery) QueryMembers() *HPMemberQuery
    func (haq *HPArtistQuery) QueryOwningAmebloPosts() *HPAmebloPostQuery
    func (haq *HPArtistQuery) QueryOwningFeed() *HPFeedItemQuery
    func (haq *HPArtistQuery) QueryOwningIgPosts() *HPIgPostQuery
    func (haq *HPArtistQuery) QueryTaggedAmebloPosts() *HPAmebloPostQuery
    func (haq *HPArtistQuery) QueryTaggedElineupMallItems() *HPElineupMallItemQuery
    func (haq *HPArtistQuery) QueryTaggedFeed() *HPFeedItemQuery
    func (haq *HPArtistQuery) QueryTaggedIgPosts() *HPIgPostQuery
    func (haq *HPArtistQuery) Select(fields ...string) *HPArtistSelect
    func (haq *HPArtistQuery) Unique(unique bool) *HPArtistQuery
    func (haq *HPArtistQuery) Where(ps ...predicate.HPArtist) *HPArtistQuery
    func (haq *HPArtistQuery) WithAssets(opts ...func(*HPAssetQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithMembers(opts ...func(*HPMemberQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedAssets(name string, opts ...func(*HPAssetQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedMembers(name string, opts ...func(*HPMemberQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedOwningAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedOwningFeed(name string, opts ...func(*HPFeedItemQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedOwningIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedTaggedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedTaggedElineupMallItems(name string, opts ...func(*HPElineupMallItemQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedTaggedFeed(name string, opts ...func(*HPFeedItemQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithNamedTaggedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithOwningAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithOwningFeed(opts ...func(*HPFeedItemQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithOwningIgPosts(opts ...func(*HPIgPostQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithTaggedAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithTaggedElineupMallItems(opts ...func(*HPElineupMallItemQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithTaggedFeed(opts ...func(*HPFeedItemQuery)) *HPArtistQuery
    func (haq *HPArtistQuery) WithTaggedIgPosts(opts ...func(*HPIgPostQuery)) *HPArtistQuery
type HPArtistSelect
    func (has *HPArtistSelect) Aggregate(fns ...AggregateFunc) *HPArtistSelect
    func (s *HPArtistSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPArtistSelect) BoolX(ctx context.Context) bool
    func (s *HPArtistSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPArtistSelect) BoolsX(ctx context.Context) []bool
    func (s *HPArtistSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPArtistSelect) Float64X(ctx context.Context) float64
    func (s *HPArtistSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPArtistSelect) Float64sX(ctx context.Context) []float64
    func (s *HPArtistSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPArtistSelect) IntX(ctx context.Context) int
    func (s *HPArtistSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPArtistSelect) IntsX(ctx context.Context) []int
    func (has *HPArtistSelect) Scan(ctx context.Context, v any) error
    func (s *HPArtistSelect) ScanX(ctx context.Context, v any)
    func (s *HPArtistSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPArtistSelect) StringX(ctx context.Context) string
    func (s *HPArtistSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPArtistSelect) StringsX(ctx context.Context) []string
type HPArtistUpdate
    func (hau *HPArtistUpdate) AddAssetIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddAssets(h ...*HPAsset) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddErrorCount(i int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddIndex(i int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddMemberIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddMembers(h ...*HPMember) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddOwningAmebloPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddOwningFeed(h ...*HPFeedItem) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddOwningFeedIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddOwningIgPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddOwningIgPosts(h ...*HPIgPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedAmebloPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedFeed(h ...*HPFeedItem) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedFeedIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedIgPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) AddTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearAssets() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearCrawledAt() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearLastErrorMessage() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearManuallyModified() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearMembers() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearOwningAmebloPosts() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearOwningFeed() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearOwningIgPosts() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearRecrawlRequired() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearTaggedAmebloPosts() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearTaggedElineupMallItems() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearTaggedFeed() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearTaggedIgPosts() *HPArtistUpdate
    func (hau *HPArtistUpdate) ClearUpdatedAt() *HPArtistUpdate
    func (hau *HPArtistUpdate) Exec(ctx context.Context) error
    func (hau *HPArtistUpdate) ExecX(ctx context.Context)
    func (hau *HPArtistUpdate) Mutation() *HPArtistMutation
    func (hau *HPArtistUpdate) RemoveAssetIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveAssets(h ...*HPAsset) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveMemberIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveMembers(h ...*HPMember) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveOwningAmebloPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveOwningFeed(h ...*HPFeedItem) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveOwningFeedIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveOwningIgPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveOwningIgPosts(h ...*HPIgPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedAmebloPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedFeed(h ...*HPFeedItem) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedFeedIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedIgPostIDs(ids ...int) *HPArtistUpdate
    func (hau *HPArtistUpdate) RemoveTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdate
    func (hau *HPArtistUpdate) Save(ctx context.Context) (int, error)
    func (hau *HPArtistUpdate) SaveX(ctx context.Context) int
    func (hau *HPArtistUpdate) SetCrawledAt(t time.Time) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetErrorCount(i int) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetIndex(i int) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetKey(s string) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetLastErrorMessage(s string) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetName(s string) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetNillableCrawledAt(t *time.Time) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetNillableErrorCount(i *int) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetNillableLastErrorMessage(s *string) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetNillableRecrawlRequired(b *bool) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetNillableUpdatedAt(t *time.Time) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetRecrawlRequired(b bool) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetThumbnailURL(s string) *HPArtistUpdate
    func (hau *HPArtistUpdate) SetUpdatedAt(t time.Time) *HPArtistUpdate
    func (hau *HPArtistUpdate) Where(ps ...predicate.HPArtist) *HPArtistUpdate
type HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddAssetIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddAssets(h ...*HPAsset) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddErrorCount(i int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddIndex(i int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddMemberIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddMembers(h ...*HPMember) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddOwningAmebloPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddOwningFeed(h ...*HPFeedItem) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddOwningFeedIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddOwningIgPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddOwningIgPosts(h ...*HPIgPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedAmebloPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedFeed(h ...*HPFeedItem) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedFeedIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedIgPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) AddTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearAssets() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearCrawledAt() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearLastErrorMessage() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearManuallyModified() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearMembers() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearOwningAmebloPosts() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearOwningFeed() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearOwningIgPosts() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearRecrawlRequired() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearTaggedAmebloPosts() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearTaggedElineupMallItems() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearTaggedFeed() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearTaggedIgPosts() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) ClearUpdatedAt() *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) Exec(ctx context.Context) error
    func (hauo *HPArtistUpdateOne) ExecX(ctx context.Context)
    func (hauo *HPArtistUpdateOne) Mutation() *HPArtistMutation
    func (hauo *HPArtistUpdateOne) RemoveAssetIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveAssets(h ...*HPAsset) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveMemberIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveMembers(h ...*HPMember) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveOwningAmebloPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveOwningFeed(h ...*HPFeedItem) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveOwningFeedIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveOwningIgPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveOwningIgPosts(h ...*HPIgPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedAmebloPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedFeed(h ...*HPFeedItem) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedFeedIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedIgPostIDs(ids ...int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) RemoveTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) Save(ctx context.Context) (*HPArtist, error)
    func (hauo *HPArtistUpdateOne) SaveX(ctx context.Context) *HPArtist
    func (hauo *HPArtistUpdateOne) Select(field string, fields ...string) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetCrawledAt(t time.Time) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetErrorCount(i int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetIndex(i int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetKey(s string) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetLastErrorMessage(s string) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetName(s string) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetNillableCrawledAt(t *time.Time) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetNillableErrorCount(i *int) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetNillableLastErrorMessage(s *string) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetNillableRecrawlRequired(b *bool) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetRecrawlRequired(b bool) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetThumbnailURL(s string) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) SetUpdatedAt(t time.Time) *HPArtistUpdateOne
    func (hauo *HPArtistUpdateOne) Where(ps ...predicate.HPArtist) *HPArtistUpdateOne
type HPArtistUpsert
    func (u *HPArtistUpsert) AddErrorCount(v int) *HPArtistUpsert
    func (u *HPArtistUpsert) AddIndex(v int) *HPArtistUpsert
    func (u *HPArtistUpsert) ClearCrawledAt() *HPArtistUpsert
    func (u *HPArtistUpsert) ClearLastErrorMessage() *HPArtistUpsert
    func (u *HPArtistUpsert) ClearManuallyModified() *HPArtistUpsert
    func (u *HPArtistUpsert) ClearRecrawlRequired() *HPArtistUpsert
    func (u *HPArtistUpsert) ClearUpdatedAt() *HPArtistUpsert
    func (u *HPArtistUpsert) SetCrawledAt(v time.Time) *HPArtistUpsert
    func (u *HPArtistUpsert) SetErrorCount(v int) *HPArtistUpsert
    func (u *HPArtistUpsert) SetIndex(v int) *HPArtistUpsert
    func (u *HPArtistUpsert) SetKey(v string) *HPArtistUpsert
    func (u *HPArtistUpsert) SetLastErrorMessage(v string) *HPArtistUpsert
    func (u *HPArtistUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPArtistUpsert
    func (u *HPArtistUpsert) SetName(v string) *HPArtistUpsert
    func (u *HPArtistUpsert) SetRecrawlRequired(v bool) *HPArtistUpsert
    func (u *HPArtistUpsert) SetThumbnailURL(v string) *HPArtistUpsert
    func (u *HPArtistUpsert) SetUpdatedAt(v time.Time) *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateCrawledAt() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateErrorCount() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateIndex() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateKey() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateLastErrorMessage() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateManuallyModified() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateName() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateRecrawlRequired() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateThumbnailURL() *HPArtistUpsert
    func (u *HPArtistUpsert) UpdateUpdatedAt() *HPArtistUpsert
type HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) AddErrorCount(v int) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) AddIndex(v int) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) ClearCrawledAt() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) ClearLastErrorMessage() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) ClearManuallyModified() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) ClearRecrawlRequired() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) ClearUpdatedAt() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) DoNothing() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) Exec(ctx context.Context) error
    func (u *HPArtistUpsertBulk) ExecX(ctx context.Context)
    func (u *HPArtistUpsertBulk) Ignore() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetCrawledAt(v time.Time) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetErrorCount(v int) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetIndex(v int) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetKey(v string) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetLastErrorMessage(v string) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetName(v string) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetRecrawlRequired(v bool) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetThumbnailURL(v string) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) SetUpdatedAt(v time.Time) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) Update(set func(*HPArtistUpsert)) *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateCrawledAt() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateErrorCount() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateIndex() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateKey() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateLastErrorMessage() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateManuallyModified() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateName() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateNewValues() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateRecrawlRequired() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateThumbnailURL() *HPArtistUpsertBulk
    func (u *HPArtistUpsertBulk) UpdateUpdatedAt() *HPArtistUpsertBulk
type HPArtistUpsertOne
    func (u *HPArtistUpsertOne) AddErrorCount(v int) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) AddIndex(v int) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) ClearCrawledAt() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) ClearLastErrorMessage() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) ClearManuallyModified() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) ClearRecrawlRequired() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) ClearUpdatedAt() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) DoNothing() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) Exec(ctx context.Context) error
    func (u *HPArtistUpsertOne) ExecX(ctx context.Context)
    func (u *HPArtistUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPArtistUpsertOne) IDX(ctx context.Context) int
    func (u *HPArtistUpsertOne) Ignore() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetCrawledAt(v time.Time) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetErrorCount(v int) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetIndex(v int) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetKey(v string) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetLastErrorMessage(v string) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetName(v string) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetRecrawlRequired(v bool) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetThumbnailURL(v string) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) SetUpdatedAt(v time.Time) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) Update(set func(*HPArtistUpsert)) *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateCrawledAt() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateErrorCount() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateIndex() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateKey() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateLastErrorMessage() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateManuallyModified() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateName() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateNewValues() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateRecrawlRequired() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateThumbnailURL() *HPArtistUpsertOne
    func (u *HPArtistUpsertOne) UpdateUpdatedAt() *HPArtistUpsertOne
type HPArtists
type HPAsset
    func (ha *HPAsset) NamedAmebloPosts(name string) ([]*HPAmebloPost, error)
    func (ha *HPAsset) NamedIgPosts(name string) ([]*HPIgPost, error)
    func (ha *HPAsset) NamedMembers(name string) ([]*HPMember, error)
    func (ha *HPAsset) QueryAmebloPosts() *HPAmebloPostQuery
    func (ha *HPAsset) QueryArtist() *HPArtistQuery
    func (ha *HPAsset) QueryIgPosts() *HPIgPostQuery
    func (ha *HPAsset) QueryMembers() *HPMemberQuery
    func (ha *HPAsset) String() string
    func (ha *HPAsset) Unwrap() *HPAsset
    func (ha *HPAsset) Update() *HPAssetUpdateOne
    func (ha *HPAsset) Value(name string) (ent.Value, error)
type HPAssetClient
    func NewHPAssetClient(c config) *HPAssetClient
    func (c *HPAssetClient) Create() *HPAssetCreate
    func (c *HPAssetClient) CreateBulk(builders ...*HPAssetCreate) *HPAssetCreateBulk
    func (c *HPAssetClient) Delete() *HPAssetDelete
    func (c *HPAssetClient) DeleteOne(ha *HPAsset) *HPAssetDeleteOne
    func (c *HPAssetClient) DeleteOneID(id int) *HPAssetDeleteOne
    func (c *HPAssetClient) Get(ctx context.Context, id int) (*HPAsset, error)
    func (c *HPAssetClient) GetX(ctx context.Context, id int) *HPAsset
    func (c *HPAssetClient) Hooks() []Hook
    func (c *HPAssetClient) Intercept(interceptors ...Interceptor)
    func (c *HPAssetClient) Interceptors() []Interceptor
    func (c *HPAssetClient) Query() *HPAssetQuery
    func (c *HPAssetClient) QueryAmebloPosts(ha *HPAsset) *HPAmebloPostQuery
    func (c *HPAssetClient) QueryArtist(ha *HPAsset) *HPArtistQuery
    func (c *HPAssetClient) QueryIgPosts(ha *HPAsset) *HPIgPostQuery
    func (c *HPAssetClient) QueryMembers(ha *HPAsset) *HPMemberQuery
    func (c *HPAssetClient) Update() *HPAssetUpdate
    func (c *HPAssetClient) UpdateOne(ha *HPAsset) *HPAssetUpdateOne
    func (c *HPAssetClient) UpdateOneID(id int) *HPAssetUpdateOne
    func (c *HPAssetClient) Use(hooks ...Hook)
type HPAssetCreate
    func (hac *HPAssetCreate) AddAmebloPostIDs(ids ...int) *HPAssetCreate
    func (hac *HPAssetCreate) AddAmebloPosts(h ...*HPAmebloPost) *HPAssetCreate
    func (hac *HPAssetCreate) AddIgPostIDs(ids ...int) *HPAssetCreate
    func (hac *HPAssetCreate) AddIgPosts(h ...*HPIgPost) *HPAssetCreate
    func (hac *HPAssetCreate) AddMemberIDs(ids ...int) *HPAssetCreate
    func (hac *HPAssetCreate) AddMembers(h ...*HPMember) *HPAssetCreate
    func (hac *HPAssetCreate) Exec(ctx context.Context) error
    func (hac *HPAssetCreate) ExecX(ctx context.Context)
    func (hac *HPAssetCreate) Mutation() *HPAssetMutation
    func (hac *HPAssetCreate) OnConflict(opts ...sql.ConflictOption) *HPAssetUpsertOne
    func (hac *HPAssetCreate) OnConflictColumns(columns ...string) *HPAssetUpsertOne
    func (hac *HPAssetCreate) Save(ctx context.Context) (*HPAsset, error)
    func (hac *HPAssetCreate) SaveX(ctx context.Context) *HPAsset
    func (hac *HPAssetCreate) SetArtist(h *HPArtist) *HPAssetCreate
    func (hac *HPAssetCreate) SetArtistID(id int) *HPAssetCreate
    func (hac *HPAssetCreate) SetAssetType(eat enums.HPAssetType) *HPAssetCreate
    func (hac *HPAssetCreate) SetKey(s string) *HPAssetCreate
    func (hac *HPAssetCreate) SetNillableArtistID(id *int) *HPAssetCreate
type HPAssetCreateBulk
    func (hacb *HPAssetCreateBulk) Exec(ctx context.Context) error
    func (hacb *HPAssetCreateBulk) ExecX(ctx context.Context)
    func (hacb *HPAssetCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPAssetUpsertBulk
    func (hacb *HPAssetCreateBulk) OnConflictColumns(columns ...string) *HPAssetUpsertBulk
    func (hacb *HPAssetCreateBulk) Save(ctx context.Context) ([]*HPAsset, error)
    func (hacb *HPAssetCreateBulk) SaveX(ctx context.Context) []*HPAsset
type HPAssetDelete
    func (had *HPAssetDelete) Exec(ctx context.Context) (int, error)
    func (had *HPAssetDelete) ExecX(ctx context.Context) int
    func (had *HPAssetDelete) Where(ps ...predicate.HPAsset) *HPAssetDelete
type HPAssetDeleteOne
    func (hado *HPAssetDeleteOne) Exec(ctx context.Context) error
    func (hado *HPAssetDeleteOne) ExecX(ctx context.Context)
    func (hado *HPAssetDeleteOne) Where(ps ...predicate.HPAsset) *HPAssetDeleteOne
type HPAssetEdges
    func (e HPAssetEdges) AmebloPostsOrErr() ([]*HPAmebloPost, error)
    func (e HPAssetEdges) ArtistOrErr() (*HPArtist, error)
    func (e HPAssetEdges) IgPostsOrErr() ([]*HPIgPost, error)
    func (e HPAssetEdges) MembersOrErr() ([]*HPMember, error)
type HPAssetFilter
    func (f *HPAssetFilter) Where(p entql.P)
    func (f *HPAssetFilter) WhereAssetType(p entql.StringP)
    func (f *HPAssetFilter) WhereHasAmebloPosts()
    func (f *HPAssetFilter) WhereHasAmebloPostsWith(preds ...predicate.HPAmebloPost)
    func (f *HPAssetFilter) WhereHasArtist()
    func (f *HPAssetFilter) WhereHasArtistWith(preds ...predicate.HPArtist)
    func (f *HPAssetFilter) WhereHasIgPosts()
    func (f *HPAssetFilter) WhereHasIgPostsWith(preds ...predicate.HPIgPost)
    func (f *HPAssetFilter) WhereHasMembers()
    func (f *HPAssetFilter) WhereHasMembersWith(preds ...predicate.HPMember)
    func (f *HPAssetFilter) WhereID(p entql.IntP)
    func (f *HPAssetFilter) WhereKey(p entql.StringP)
type HPAssetGroupBy
    func (hagb *HPAssetGroupBy) Aggregate(fns ...AggregateFunc) *HPAssetGroupBy
    func (s *HPAssetGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPAssetGroupBy) BoolX(ctx context.Context) bool
    func (s *HPAssetGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPAssetGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPAssetGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPAssetGroupBy) Float64X(ctx context.Context) float64
    func (s *HPAssetGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPAssetGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPAssetGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPAssetGroupBy) IntX(ctx context.Context) int
    func (s *HPAssetGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPAssetGroupBy) IntsX(ctx context.Context) []int
    func (hagb *HPAssetGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPAssetGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPAssetGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPAssetGroupBy) StringX(ctx context.Context) string
    func (s *HPAssetGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPAssetGroupBy) StringsX(ctx context.Context) []string
type HPAssetMutation
    func (m *HPAssetMutation) AddAmebloPostIDs(ids ...int)
    func (m *HPAssetMutation) AddField(name string, value ent.Value) error
    func (m *HPAssetMutation) AddIgPostIDs(ids ...int)
    func (m *HPAssetMutation) AddMemberIDs(ids ...int)
    func (m *HPAssetMutation) AddedEdges() []string
    func (m *HPAssetMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPAssetMutation) AddedFields() []string
    func (m *HPAssetMutation) AddedIDs(name string) []ent.Value
    func (m *HPAssetMutation) AmebloPostsCleared() bool
    func (m *HPAssetMutation) AmebloPostsIDs() (ids []int)
    func (m *HPAssetMutation) ArtistCleared() bool
    func (m *HPAssetMutation) ArtistID() (id int, exists bool)
    func (m *HPAssetMutation) ArtistIDs() (ids []int)
    func (m *HPAssetMutation) AssetType() (r enums.HPAssetType, exists bool)
    func (m *HPAssetMutation) ClearAmebloPosts()
    func (m *HPAssetMutation) ClearArtist()
    func (m *HPAssetMutation) ClearEdge(name string) error
    func (m *HPAssetMutation) ClearField(name string) error
    func (m *HPAssetMutation) ClearIgPosts()
    func (m *HPAssetMutation) ClearMembers()
    func (m *HPAssetMutation) ClearedEdges() []string
    func (m *HPAssetMutation) ClearedFields() []string
    func (m HPAssetMutation) Client() *Client
    func (m *HPAssetMutation) EdgeCleared(name string) bool
    func (m *HPAssetMutation) Field(name string) (ent.Value, bool)
    func (m *HPAssetMutation) FieldCleared(name string) bool
    func (m *HPAssetMutation) Fields() []string
    func (m *HPAssetMutation) Filter() *HPAssetFilter
    func (m *HPAssetMutation) ID() (id int, exists bool)
    func (m *HPAssetMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPAssetMutation) IgPostsCleared() bool
    func (m *HPAssetMutation) IgPostsIDs() (ids []int)
    func (m *HPAssetMutation) Key() (r string, exists bool)
    func (m *HPAssetMutation) MembersCleared() bool
    func (m *HPAssetMutation) MembersIDs() (ids []int)
    func (m *HPAssetMutation) OldAssetType(ctx context.Context) (v enums.HPAssetType, err error)
    func (m *HPAssetMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPAssetMutation) OldKey(ctx context.Context) (v string, err error)
    func (m *HPAssetMutation) Op() Op
    func (m *HPAssetMutation) RemoveAmebloPostIDs(ids ...int)
    func (m *HPAssetMutation) RemoveIgPostIDs(ids ...int)
    func (m *HPAssetMutation) RemoveMemberIDs(ids ...int)
    func (m *HPAssetMutation) RemovedAmebloPostsIDs() (ids []int)
    func (m *HPAssetMutation) RemovedEdges() []string
    func (m *HPAssetMutation) RemovedIDs(name string) []ent.Value
    func (m *HPAssetMutation) RemovedIgPostsIDs() (ids []int)
    func (m *HPAssetMutation) RemovedMembersIDs() (ids []int)
    func (m *HPAssetMutation) ResetAmebloPosts()
    func (m *HPAssetMutation) ResetArtist()
    func (m *HPAssetMutation) ResetAssetType()
    func (m *HPAssetMutation) ResetEdge(name string) error
    func (m *HPAssetMutation) ResetField(name string) error
    func (m *HPAssetMutation) ResetIgPosts()
    func (m *HPAssetMutation) ResetKey()
    func (m *HPAssetMutation) ResetMembers()
    func (m *HPAssetMutation) SetArtistID(id int)
    func (m *HPAssetMutation) SetAssetType(eat enums.HPAssetType)
    func (m *HPAssetMutation) SetField(name string, value ent.Value) error
    func (m *HPAssetMutation) SetKey(s string)
    func (m *HPAssetMutation) SetOp(op Op)
    func (m HPAssetMutation) Tx() (*Tx, error)
    func (m *HPAssetMutation) Type() string
    func (m *HPAssetMutation) Where(ps ...predicate.HPAsset)
    func (m *HPAssetMutation) WhereP(ps ...func(*sql.Selector))
type HPAssetQuery
    func (haq *HPAssetQuery) Aggregate(fns ...AggregateFunc) *HPAssetSelect
    func (haq *HPAssetQuery) All(ctx context.Context) ([]*HPAsset, error)
    func (haq *HPAssetQuery) AllX(ctx context.Context) []*HPAsset
    func (haq *HPAssetQuery) Clone() *HPAssetQuery
    func (haq *HPAssetQuery) Count(ctx context.Context) (int, error)
    func (haq *HPAssetQuery) CountX(ctx context.Context) int
    func (haq *HPAssetQuery) Exist(ctx context.Context) (bool, error)
    func (haq *HPAssetQuery) ExistX(ctx context.Context) bool
    func (haq *HPAssetQuery) Filter() *HPAssetFilter
    func (haq *HPAssetQuery) First(ctx context.Context) (*HPAsset, error)
    func (haq *HPAssetQuery) FirstID(ctx context.Context) (id int, err error)
    func (haq *HPAssetQuery) FirstIDX(ctx context.Context) int
    func (haq *HPAssetQuery) FirstX(ctx context.Context) *HPAsset
    func (haq *HPAssetQuery) GroupBy(field string, fields ...string) *HPAssetGroupBy
    func (haq *HPAssetQuery) IDs(ctx context.Context) (ids []int, err error)
    func (haq *HPAssetQuery) IDsX(ctx context.Context) []int
    func (haq *HPAssetQuery) Limit(limit int) *HPAssetQuery
    func (haq *HPAssetQuery) Offset(offset int) *HPAssetQuery
    func (haq *HPAssetQuery) Only(ctx context.Context) (*HPAsset, error)
    func (haq *HPAssetQuery) OnlyID(ctx context.Context) (id int, err error)
    func (haq *HPAssetQuery) OnlyIDX(ctx context.Context) int
    func (haq *HPAssetQuery) OnlyX(ctx context.Context) *HPAsset
    func (haq *HPAssetQuery) Order(o ...hpasset.Order) *HPAssetQuery
    func (haq *HPAssetQuery) QueryAmebloPosts() *HPAmebloPostQuery
    func (haq *HPAssetQuery) QueryArtist() *HPArtistQuery
    func (haq *HPAssetQuery) QueryIgPosts() *HPIgPostQuery
    func (haq *HPAssetQuery) QueryMembers() *HPMemberQuery
    func (haq *HPAssetQuery) Select(fields ...string) *HPAssetSelect
    func (haq *HPAssetQuery) Unique(unique bool) *HPAssetQuery
    func (haq *HPAssetQuery) Where(ps ...predicate.HPAsset) *HPAssetQuery
    func (haq *HPAssetQuery) WithAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPAssetQuery
    func (haq *HPAssetQuery) WithArtist(opts ...func(*HPArtistQuery)) *HPAssetQuery
    func (haq *HPAssetQuery) WithIgPosts(opts ...func(*HPIgPostQuery)) *HPAssetQuery
    func (haq *HPAssetQuery) WithMembers(opts ...func(*HPMemberQuery)) *HPAssetQuery
    func (haq *HPAssetQuery) WithNamedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPAssetQuery
    func (haq *HPAssetQuery) WithNamedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPAssetQuery
    func (haq *HPAssetQuery) WithNamedMembers(name string, opts ...func(*HPMemberQuery)) *HPAssetQuery
type HPAssetSelect
    func (has *HPAssetSelect) Aggregate(fns ...AggregateFunc) *HPAssetSelect
    func (s *HPAssetSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPAssetSelect) BoolX(ctx context.Context) bool
    func (s *HPAssetSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPAssetSelect) BoolsX(ctx context.Context) []bool
    func (s *HPAssetSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPAssetSelect) Float64X(ctx context.Context) float64
    func (s *HPAssetSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPAssetSelect) Float64sX(ctx context.Context) []float64
    func (s *HPAssetSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPAssetSelect) IntX(ctx context.Context) int
    func (s *HPAssetSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPAssetSelect) IntsX(ctx context.Context) []int
    func (has *HPAssetSelect) Scan(ctx context.Context, v any) error
    func (s *HPAssetSelect) ScanX(ctx context.Context, v any)
    func (s *HPAssetSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPAssetSelect) StringX(ctx context.Context) string
    func (s *HPAssetSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPAssetSelect) StringsX(ctx context.Context) []string
type HPAssetUpdate
    func (hau *HPAssetUpdate) AddAmebloPostIDs(ids ...int) *HPAssetUpdate
    func (hau *HPAssetUpdate) AddAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdate
    func (hau *HPAssetUpdate) AddIgPostIDs(ids ...int) *HPAssetUpdate
    func (hau *HPAssetUpdate) AddIgPosts(h ...*HPIgPost) *HPAssetUpdate
    func (hau *HPAssetUpdate) AddMemberIDs(ids ...int) *HPAssetUpdate
    func (hau *HPAssetUpdate) AddMembers(h ...*HPMember) *HPAssetUpdate
    func (hau *HPAssetUpdate) ClearAmebloPosts() *HPAssetUpdate
    func (hau *HPAssetUpdate) ClearArtist() *HPAssetUpdate
    func (hau *HPAssetUpdate) ClearIgPosts() *HPAssetUpdate
    func (hau *HPAssetUpdate) ClearMembers() *HPAssetUpdate
    func (hau *HPAssetUpdate) Exec(ctx context.Context) error
    func (hau *HPAssetUpdate) ExecX(ctx context.Context)
    func (hau *HPAssetUpdate) Mutation() *HPAssetMutation
    func (hau *HPAssetUpdate) RemoveAmebloPostIDs(ids ...int) *HPAssetUpdate
    func (hau *HPAssetUpdate) RemoveAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdate
    func (hau *HPAssetUpdate) RemoveIgPostIDs(ids ...int) *HPAssetUpdate
    func (hau *HPAssetUpdate) RemoveIgPosts(h ...*HPIgPost) *HPAssetUpdate
    func (hau *HPAssetUpdate) RemoveMemberIDs(ids ...int) *HPAssetUpdate
    func (hau *HPAssetUpdate) RemoveMembers(h ...*HPMember) *HPAssetUpdate
    func (hau *HPAssetUpdate) Save(ctx context.Context) (int, error)
    func (hau *HPAssetUpdate) SaveX(ctx context.Context) int
    func (hau *HPAssetUpdate) SetArtist(h *HPArtist) *HPAssetUpdate
    func (hau *HPAssetUpdate) SetArtistID(id int) *HPAssetUpdate
    func (hau *HPAssetUpdate) SetAssetType(eat enums.HPAssetType) *HPAssetUpdate
    func (hau *HPAssetUpdate) SetKey(s string) *HPAssetUpdate
    func (hau *HPAssetUpdate) SetNillableArtistID(id *int) *HPAssetUpdate
    func (hau *HPAssetUpdate) Where(ps ...predicate.HPAsset) *HPAssetUpdate
type HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) AddAmebloPostIDs(ids ...int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) AddAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) AddIgPostIDs(ids ...int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) AddIgPosts(h ...*HPIgPost) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) AddMemberIDs(ids ...int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) AddMembers(h ...*HPMember) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) ClearAmebloPosts() *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) ClearArtist() *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) ClearIgPosts() *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) ClearMembers() *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) Exec(ctx context.Context) error
    func (hauo *HPAssetUpdateOne) ExecX(ctx context.Context)
    func (hauo *HPAssetUpdateOne) Mutation() *HPAssetMutation
    func (hauo *HPAssetUpdateOne) RemoveAmebloPostIDs(ids ...int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) RemoveAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) RemoveIgPostIDs(ids ...int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) RemoveIgPosts(h ...*HPIgPost) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) RemoveMemberIDs(ids ...int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) RemoveMembers(h ...*HPMember) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) Save(ctx context.Context) (*HPAsset, error)
    func (hauo *HPAssetUpdateOne) SaveX(ctx context.Context) *HPAsset
    func (hauo *HPAssetUpdateOne) Select(field string, fields ...string) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) SetArtist(h *HPArtist) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) SetArtistID(id int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) SetAssetType(eat enums.HPAssetType) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) SetKey(s string) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) SetNillableArtistID(id *int) *HPAssetUpdateOne
    func (hauo *HPAssetUpdateOne) Where(ps ...predicate.HPAsset) *HPAssetUpdateOne
type HPAssetUpsert
    func (u *HPAssetUpsert) SetAssetType(v enums.HPAssetType) *HPAssetUpsert
    func (u *HPAssetUpsert) SetKey(v string) *HPAssetUpsert
    func (u *HPAssetUpsert) UpdateAssetType() *HPAssetUpsert
    func (u *HPAssetUpsert) UpdateKey() *HPAssetUpsert
type HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) DoNothing() *HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) Exec(ctx context.Context) error
    func (u *HPAssetUpsertBulk) ExecX(ctx context.Context)
    func (u *HPAssetUpsertBulk) Ignore() *HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) SetAssetType(v enums.HPAssetType) *HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) SetKey(v string) *HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) Update(set func(*HPAssetUpsert)) *HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) UpdateAssetType() *HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) UpdateKey() *HPAssetUpsertBulk
    func (u *HPAssetUpsertBulk) UpdateNewValues() *HPAssetUpsertBulk
type HPAssetUpsertOne
    func (u *HPAssetUpsertOne) DoNothing() *HPAssetUpsertOne
    func (u *HPAssetUpsertOne) Exec(ctx context.Context) error
    func (u *HPAssetUpsertOne) ExecX(ctx context.Context)
    func (u *HPAssetUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPAssetUpsertOne) IDX(ctx context.Context) int
    func (u *HPAssetUpsertOne) Ignore() *HPAssetUpsertOne
    func (u *HPAssetUpsertOne) SetAssetType(v enums.HPAssetType) *HPAssetUpsertOne
    func (u *HPAssetUpsertOne) SetKey(v string) *HPAssetUpsertOne
    func (u *HPAssetUpsertOne) Update(set func(*HPAssetUpsert)) *HPAssetUpsertOne
    func (u *HPAssetUpsertOne) UpdateAssetType() *HPAssetUpsertOne
    func (u *HPAssetUpsertOne) UpdateKey() *HPAssetUpsertOne
    func (u *HPAssetUpsertOne) UpdateNewValues() *HPAssetUpsertOne
type HPAssets
type HPBlob
    func (hb *HPBlob) AmebloPosts(ctx context.Context) (result []*HPAmebloPost, err error)
    func (hb *HPBlob) IgPosts(ctx context.Context) (result []*HPIgPost, err error)
    func (n *HPBlob) IsNode()
    func (hb *HPBlob) NamedAmebloPosts(name string) ([]*HPAmebloPost, error)
    func (hb *HPBlob) NamedIgPosts(name string) ([]*HPIgPost, error)
    func (hb *HPBlob) OwnerArtist(ctx context.Context) (*HPArtist, error)
    func (hb *HPBlob) OwnerMember(ctx context.Context) (*HPMember, error)
    func (hb *HPBlob) QueryAmebloPosts() *HPAmebloPostQuery
    func (hb *HPBlob) QueryIgPosts() *HPIgPostQuery
    func (hb *HPBlob) QueryOwnerArtist() *HPArtistQuery
    func (hb *HPBlob) QueryOwnerMember() *HPMemberQuery
    func (hb *HPBlob) String() string
    func (hb *HPBlob) ToEdge(order *HPBlobOrder) *HPBlobEdge
    func (hb *HPBlob) Unwrap() *HPBlob
    func (hb *HPBlob) Update() *HPBlobUpdateOne
    func (hb *HPBlob) Value(name string) (ent.Value, error)
type HPBlobClient
    func NewHPBlobClient(c config) *HPBlobClient
    func (c *HPBlobClient) Create() *HPBlobCreate
    func (c *HPBlobClient) CreateBulk(builders ...*HPBlobCreate) *HPBlobCreateBulk
    func (c *HPBlobClient) Delete() *HPBlobDelete
    func (c *HPBlobClient) DeleteOne(hb *HPBlob) *HPBlobDeleteOne
    func (c *HPBlobClient) DeleteOneID(id int) *HPBlobDeleteOne
    func (c *HPBlobClient) Get(ctx context.Context, id int) (*HPBlob, error)
    func (c *HPBlobClient) GetX(ctx context.Context, id int) *HPBlob
    func (c *HPBlobClient) Hooks() []Hook
    func (c *HPBlobClient) Intercept(interceptors ...Interceptor)
    func (c *HPBlobClient) Interceptors() []Interceptor
    func (c *HPBlobClient) Query() *HPBlobQuery
    func (c *HPBlobClient) QueryAmebloPosts(hb *HPBlob) *HPAmebloPostQuery
    func (c *HPBlobClient) QueryIgPosts(hb *HPBlob) *HPIgPostQuery
    func (c *HPBlobClient) QueryOwnerArtist(hb *HPBlob) *HPArtistQuery
    func (c *HPBlobClient) QueryOwnerMember(hb *HPBlob) *HPMemberQuery
    func (c *HPBlobClient) Update() *HPBlobUpdate
    func (c *HPBlobClient) UpdateOne(hb *HPBlob) *HPBlobUpdateOne
    func (c *HPBlobClient) UpdateOneID(id int) *HPBlobUpdateOne
    func (c *HPBlobClient) Use(hooks ...Hook)
type HPBlobConnection
type HPBlobCreate
    func (hbc *HPBlobCreate) AddAmebloPostIDs(ids ...int) *HPBlobCreate
    func (hbc *HPBlobCreate) AddAmebloPosts(h ...*HPAmebloPost) *HPBlobCreate
    func (hbc *HPBlobCreate) AddIgPostIDs(ids ...int) *HPBlobCreate
    func (hbc *HPBlobCreate) AddIgPosts(h ...*HPIgPost) *HPBlobCreate
    func (hbc *HPBlobCreate) Exec(ctx context.Context) error
    func (hbc *HPBlobCreate) ExecX(ctx context.Context)
    func (hbc *HPBlobCreate) Mutation() *HPBlobMutation
    func (hbc *HPBlobCreate) OnConflict(opts ...sql.ConflictOption) *HPBlobUpsertOne
    func (hbc *HPBlobCreate) OnConflictColumns(columns ...string) *HPBlobUpsertOne
    func (hbc *HPBlobCreate) Save(ctx context.Context) (*HPBlob, error)
    func (hbc *HPBlobCreate) SaveX(ctx context.Context) *HPBlob
    func (hbc *HPBlobCreate) SetCreatedAt(t time.Time) *HPBlobCreate
    func (hbc *HPBlobCreate) SetDurationSeconds(f float64) *HPBlobCreate
    func (hbc *HPBlobCreate) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus) *HPBlobCreate
    func (hbc *HPBlobCreate) SetFaces(jbif jsonfields.HPBlobImageFace) *HPBlobCreate
    func (hbc *HPBlobCreate) SetHeight(i int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableCreatedAt(t *time.Time) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableDurationSeconds(f *float64) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableFaceRecognitionStatus(ebfrs *enums.HPBlobFaceRecognitionStatus) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableFaces(jbif *jsonfields.HPBlobImageFace) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableHeight(i *int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableNumFaces(i *int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableOwnerArtistID(i *int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableOwnerMemberID(i *int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableSize(i *int64) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableStatusErrorCount(i *int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableStatusMessage(s *string) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableUpdatedAt(t *time.Time) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNillableWidth(i *int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetNumFaces(i int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetOwnerArtist(h *HPArtist) *HPBlobCreate
    func (hbc *HPBlobCreate) SetOwnerArtistID(i int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetOwnerMember(h *HPMember) *HPBlobCreate
    func (hbc *HPBlobCreate) SetOwnerMemberID(i int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetSize(i int64) *HPBlobCreate
    func (hbc *HPBlobCreate) SetSourceHTMLURL(s string) *HPBlobCreate
    func (hbc *HPBlobCreate) SetSourceURL(s string) *HPBlobCreate
    func (hbc *HPBlobCreate) SetStatus(ebs enums.HPBlobStatus) *HPBlobCreate
    func (hbc *HPBlobCreate) SetStatusErrorCount(i int) *HPBlobCreate
    func (hbc *HPBlobCreate) SetStatusMessage(s string) *HPBlobCreate
    func (hbc *HPBlobCreate) SetStoragePath(s string) *HPBlobCreate
    func (hbc *HPBlobCreate) SetSubType(ebst enums.HPBlobSubType) *HPBlobCreate
    func (hbc *HPBlobCreate) SetThumbnail(jbt *jsonfields.HPBlobThumbnail) *HPBlobCreate
    func (hbc *HPBlobCreate) SetType(ebt enums.HPBlobType) *HPBlobCreate
    func (hbc *HPBlobCreate) SetUpdatedAt(t time.Time) *HPBlobCreate
    func (hbc *HPBlobCreate) SetWidth(i int) *HPBlobCreate
type HPBlobCreateBulk
    func (hbcb *HPBlobCreateBulk) Exec(ctx context.Context) error
    func (hbcb *HPBlobCreateBulk) ExecX(ctx context.Context)
    func (hbcb *HPBlobCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPBlobUpsertBulk
    func (hbcb *HPBlobCreateBulk) OnConflictColumns(columns ...string) *HPBlobUpsertBulk
    func (hbcb *HPBlobCreateBulk) Save(ctx context.Context) ([]*HPBlob, error)
    func (hbcb *HPBlobCreateBulk) SaveX(ctx context.Context) []*HPBlob
type HPBlobDelete
    func (hbd *HPBlobDelete) Exec(ctx context.Context) (int, error)
    func (hbd *HPBlobDelete) ExecX(ctx context.Context) int
    func (hbd *HPBlobDelete) Where(ps ...predicate.HPBlob) *HPBlobDelete
type HPBlobDeleteOne
    func (hbdo *HPBlobDeleteOne) Exec(ctx context.Context) error
    func (hbdo *HPBlobDeleteOne) ExecX(ctx context.Context)
    func (hbdo *HPBlobDeleteOne) Where(ps ...predicate.HPBlob) *HPBlobDeleteOne
type HPBlobEdge
type HPBlobEdges
    func (e HPBlobEdges) AmebloPostsOrErr() ([]*HPAmebloPost, error)
    func (e HPBlobEdges) IgPostsOrErr() ([]*HPIgPost, error)
    func (e HPBlobEdges) OwnerArtistOrErr() (*HPArtist, error)
    func (e HPBlobEdges) OwnerMemberOrErr() (*HPMember, error)
type HPBlobFilter
    func (f *HPBlobFilter) Where(p entql.P)
    func (f *HPBlobFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPBlobFilter) WhereDurationSeconds(p entql.Float64P)
    func (f *HPBlobFilter) WhereFaceRecognitionStatus(p entql.StringP)
    func (f *HPBlobFilter) WhereFaces(p entql.BytesP)
    func (f *HPBlobFilter) WhereHasAmebloPosts()
    func (f *HPBlobFilter) WhereHasAmebloPostsWith(preds ...predicate.HPAmebloPost)
    func (f *HPBlobFilter) WhereHasIgPosts()
    func (f *HPBlobFilter) WhereHasIgPostsWith(preds ...predicate.HPIgPost)
    func (f *HPBlobFilter) WhereHasOwnerArtist()
    func (f *HPBlobFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)
    func (f *HPBlobFilter) WhereHasOwnerMember()
    func (f *HPBlobFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)
    func (f *HPBlobFilter) WhereHeight(p entql.IntP)
    func (f *HPBlobFilter) WhereID(p entql.IntP)
    func (f *HPBlobFilter) WhereNumFaces(p entql.IntP)
    func (f *HPBlobFilter) WhereOwnerArtistID(p entql.IntP)
    func (f *HPBlobFilter) WhereOwnerMemberID(p entql.IntP)
    func (f *HPBlobFilter) WhereSize(p entql.Int64P)
    func (f *HPBlobFilter) WhereSourceHTMLURL(p entql.StringP)
    func (f *HPBlobFilter) WhereSourceURL(p entql.StringP)
    func (f *HPBlobFilter) WhereStatus(p entql.StringP)
    func (f *HPBlobFilter) WhereStatusErrorCount(p entql.IntP)
    func (f *HPBlobFilter) WhereStatusMessage(p entql.StringP)
    func (f *HPBlobFilter) WhereStoragePath(p entql.StringP)
    func (f *HPBlobFilter) WhereSubType(p entql.StringP)
    func (f *HPBlobFilter) WhereThumbnail(p entql.BytesP)
    func (f *HPBlobFilter) WhereType(p entql.StringP)
    func (f *HPBlobFilter) WhereUpdatedAt(p entql.TimeP)
    func (f *HPBlobFilter) WhereWidth(p entql.IntP)
type HPBlobGroupBy
    func (hbgb *HPBlobGroupBy) Aggregate(fns ...AggregateFunc) *HPBlobGroupBy
    func (s *HPBlobGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPBlobGroupBy) BoolX(ctx context.Context) bool
    func (s *HPBlobGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPBlobGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPBlobGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPBlobGroupBy) Float64X(ctx context.Context) float64
    func (s *HPBlobGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPBlobGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPBlobGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPBlobGroupBy) IntX(ctx context.Context) int
    func (s *HPBlobGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPBlobGroupBy) IntsX(ctx context.Context) []int
    func (hbgb *HPBlobGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPBlobGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPBlobGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPBlobGroupBy) StringX(ctx context.Context) string
    func (s *HPBlobGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPBlobGroupBy) StringsX(ctx context.Context) []string
type HPBlobMutation
    func (m *HPBlobMutation) AddAmebloPostIDs(ids ...int)
    func (m *HPBlobMutation) AddDurationSeconds(f float64)
    func (m *HPBlobMutation) AddField(name string, value ent.Value) error
    func (m *HPBlobMutation) AddHeight(i int)
    func (m *HPBlobMutation) AddIgPostIDs(ids ...int)
    func (m *HPBlobMutation) AddNumFaces(i int)
    func (m *HPBlobMutation) AddSize(i int64)
    func (m *HPBlobMutation) AddStatusErrorCount(i int)
    func (m *HPBlobMutation) AddWidth(i int)
    func (m *HPBlobMutation) AddedDurationSeconds() (r float64, exists bool)
    func (m *HPBlobMutation) AddedEdges() []string
    func (m *HPBlobMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPBlobMutation) AddedFields() []string
    func (m *HPBlobMutation) AddedHeight() (r int, exists bool)
    func (m *HPBlobMutation) AddedIDs(name string) []ent.Value
    func (m *HPBlobMutation) AddedNumFaces() (r int, exists bool)
    func (m *HPBlobMutation) AddedSize() (r int64, exists bool)
    func (m *HPBlobMutation) AddedStatusErrorCount() (r int, exists bool)
    func (m *HPBlobMutation) AddedWidth() (r int, exists bool)
    func (m *HPBlobMutation) AmebloPostsCleared() bool
    func (m *HPBlobMutation) AmebloPostsIDs() (ids []int)
    func (m *HPBlobMutation) ClearAmebloPosts()
    func (m *HPBlobMutation) ClearCreatedAt()
    func (m *HPBlobMutation) ClearDurationSeconds()
    func (m *HPBlobMutation) ClearEdge(name string) error
    func (m *HPBlobMutation) ClearFaceRecognitionStatus()
    func (m *HPBlobMutation) ClearFaces()
    func (m *HPBlobMutation) ClearField(name string) error
    func (m *HPBlobMutation) ClearHeight()
    func (m *HPBlobMutation) ClearIgPosts()
    func (m *HPBlobMutation) ClearNumFaces()
    func (m *HPBlobMutation) ClearOwnerArtist()
    func (m *HPBlobMutation) ClearOwnerArtistID()
    func (m *HPBlobMutation) ClearOwnerMember()
    func (m *HPBlobMutation) ClearOwnerMemberID()
    func (m *HPBlobMutation) ClearSize()
    func (m *HPBlobMutation) ClearStatusErrorCount()
    func (m *HPBlobMutation) ClearStatusMessage()
    func (m *HPBlobMutation) ClearThumbnail()
    func (m *HPBlobMutation) ClearUpdatedAt()
    func (m *HPBlobMutation) ClearWidth()
    func (m *HPBlobMutation) ClearedEdges() []string
    func (m *HPBlobMutation) ClearedFields() []string
    func (m HPBlobMutation) Client() *Client
    func (m *HPBlobMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPBlobMutation) CreatedAtCleared() bool
    func (m *HPBlobMutation) DurationSeconds() (r float64, exists bool)
    func (m *HPBlobMutation) DurationSecondsCleared() bool
    func (m *HPBlobMutation) EdgeCleared(name string) bool
    func (m *HPBlobMutation) FaceRecognitionStatus() (r enums.HPBlobFaceRecognitionStatus, exists bool)
    func (m *HPBlobMutation) FaceRecognitionStatusCleared() bool
    func (m *HPBlobMutation) Faces() (r jsonfields.HPBlobImageFace, exists bool)
    func (m *HPBlobMutation) FacesCleared() bool
    func (m *HPBlobMutation) Field(name string) (ent.Value, bool)
    func (m *HPBlobMutation) FieldCleared(name string) bool
    func (m *HPBlobMutation) Fields() []string
    func (m *HPBlobMutation) Filter() *HPBlobFilter
    func (m *HPBlobMutation) GetType() (r enums.HPBlobType, exists bool)
    func (m *HPBlobMutation) Height() (r int, exists bool)
    func (m *HPBlobMutation) HeightCleared() bool
    func (m *HPBlobMutation) ID() (id int, exists bool)
    func (m *HPBlobMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPBlobMutation) IgPostsCleared() bool
    func (m *HPBlobMutation) IgPostsIDs() (ids []int)
    func (m *HPBlobMutation) NumFaces() (r int, exists bool)
    func (m *HPBlobMutation) NumFacesCleared() bool
    func (m *HPBlobMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPBlobMutation) OldDurationSeconds(ctx context.Context) (v float64, err error)
    func (m *HPBlobMutation) OldFaceRecognitionStatus(ctx context.Context) (v enums.HPBlobFaceRecognitionStatus, err error)
    func (m *HPBlobMutation) OldFaces(ctx context.Context) (v jsonfields.HPBlobImageFace, err error)
    func (m *HPBlobMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPBlobMutation) OldHeight(ctx context.Context) (v int, err error)
    func (m *HPBlobMutation) OldNumFaces(ctx context.Context) (v int, err error)
    func (m *HPBlobMutation) OldOwnerArtistID(ctx context.Context) (v int, err error)
    func (m *HPBlobMutation) OldOwnerMemberID(ctx context.Context) (v int, err error)
    func (m *HPBlobMutation) OldSize(ctx context.Context) (v int64, err error)
    func (m *HPBlobMutation) OldSourceHTMLURL(ctx context.Context) (v string, err error)
    func (m *HPBlobMutation) OldSourceURL(ctx context.Context) (v string, err error)
    func (m *HPBlobMutation) OldStatus(ctx context.Context) (v enums.HPBlobStatus, err error)
    func (m *HPBlobMutation) OldStatusErrorCount(ctx context.Context) (v int, err error)
    func (m *HPBlobMutation) OldStatusMessage(ctx context.Context) (v string, err error)
    func (m *HPBlobMutation) OldStoragePath(ctx context.Context) (v string, err error)
    func (m *HPBlobMutation) OldSubType(ctx context.Context) (v enums.HPBlobSubType, err error)
    func (m *HPBlobMutation) OldThumbnail(ctx context.Context) (v *jsonfields.HPBlobThumbnail, err error)
    func (m *HPBlobMutation) OldType(ctx context.Context) (v enums.HPBlobType, err error)
    func (m *HPBlobMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPBlobMutation) OldWidth(ctx context.Context) (v int, err error)
    func (m *HPBlobMutation) Op() Op
    func (m *HPBlobMutation) OwnerArtistCleared() bool
    func (m *HPBlobMutation) OwnerArtistID() (r int, exists bool)
    func (m *HPBlobMutation) OwnerArtistIDCleared() bool
    func (m *HPBlobMutation) OwnerArtistIDs() (ids []int)
    func (m *HPBlobMutation) OwnerMemberCleared() bool
    func (m *HPBlobMutation) OwnerMemberID() (r int, exists bool)
    func (m *HPBlobMutation) OwnerMemberIDCleared() bool
    func (m *HPBlobMutation) OwnerMemberIDs() (ids []int)
    func (m *HPBlobMutation) RemoveAmebloPostIDs(ids ...int)
    func (m *HPBlobMutation) RemoveIgPostIDs(ids ...int)
    func (m *HPBlobMutation) RemovedAmebloPostsIDs() (ids []int)
    func (m *HPBlobMutation) RemovedEdges() []string
    func (m *HPBlobMutation) RemovedIDs(name string) []ent.Value
    func (m *HPBlobMutation) RemovedIgPostsIDs() (ids []int)
    func (m *HPBlobMutation) ResetAmebloPosts()
    func (m *HPBlobMutation) ResetCreatedAt()
    func (m *HPBlobMutation) ResetDurationSeconds()
    func (m *HPBlobMutation) ResetEdge(name string) error
    func (m *HPBlobMutation) ResetFaceRecognitionStatus()
    func (m *HPBlobMutation) ResetFaces()
    func (m *HPBlobMutation) ResetField(name string) error
    func (m *HPBlobMutation) ResetHeight()
    func (m *HPBlobMutation) ResetIgPosts()
    func (m *HPBlobMutation) ResetNumFaces()
    func (m *HPBlobMutation) ResetOwnerArtist()
    func (m *HPBlobMutation) ResetOwnerArtistID()
    func (m *HPBlobMutation) ResetOwnerMember()
    func (m *HPBlobMutation) ResetOwnerMemberID()
    func (m *HPBlobMutation) ResetSize()
    func (m *HPBlobMutation) ResetSourceHTMLURL()
    func (m *HPBlobMutation) ResetSourceURL()
    func (m *HPBlobMutation) ResetStatus()
    func (m *HPBlobMutation) ResetStatusErrorCount()
    func (m *HPBlobMutation) ResetStatusMessage()
    func (m *HPBlobMutation) ResetStoragePath()
    func (m *HPBlobMutation) ResetSubType()
    func (m *HPBlobMutation) ResetThumbnail()
    func (m *HPBlobMutation) ResetType()
    func (m *HPBlobMutation) ResetUpdatedAt()
    func (m *HPBlobMutation) ResetWidth()
    func (m *HPBlobMutation) SetCreatedAt(t time.Time)
    func (m *HPBlobMutation) SetDurationSeconds(f float64)
    func (m *HPBlobMutation) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus)
    func (m *HPBlobMutation) SetFaces(jbif jsonfields.HPBlobImageFace)
    func (m *HPBlobMutation) SetField(name string, value ent.Value) error
    func (m *HPBlobMutation) SetHeight(i int)
    func (m *HPBlobMutation) SetNumFaces(i int)
    func (m *HPBlobMutation) SetOp(op Op)
    func (m *HPBlobMutation) SetOwnerArtistID(i int)
    func (m *HPBlobMutation) SetOwnerMemberID(i int)
    func (m *HPBlobMutation) SetSize(i int64)
    func (m *HPBlobMutation) SetSourceHTMLURL(s string)
    func (m *HPBlobMutation) SetSourceURL(s string)
    func (m *HPBlobMutation) SetStatus(ebs enums.HPBlobStatus)
    func (m *HPBlobMutation) SetStatusErrorCount(i int)
    func (m *HPBlobMutation) SetStatusMessage(s string)
    func (m *HPBlobMutation) SetStoragePath(s string)
    func (m *HPBlobMutation) SetSubType(ebst enums.HPBlobSubType)
    func (m *HPBlobMutation) SetThumbnail(jbt *jsonfields.HPBlobThumbnail)
    func (m *HPBlobMutation) SetType(ebt enums.HPBlobType)
    func (m *HPBlobMutation) SetUpdatedAt(t time.Time)
    func (m *HPBlobMutation) SetWidth(i int)
    func (m *HPBlobMutation) Size() (r int64, exists bool)
    func (m *HPBlobMutation) SizeCleared() bool
    func (m *HPBlobMutation) SourceHTMLURL() (r string, exists bool)
    func (m *HPBlobMutation) SourceURL() (r string, exists bool)
    func (m *HPBlobMutation) Status() (r enums.HPBlobStatus, exists bool)
    func (m *HPBlobMutation) StatusErrorCount() (r int, exists bool)
    func (m *HPBlobMutation) StatusErrorCountCleared() bool
    func (m *HPBlobMutation) StatusMessage() (r string, exists bool)
    func (m *HPBlobMutation) StatusMessageCleared() bool
    func (m *HPBlobMutation) StoragePath() (r string, exists bool)
    func (m *HPBlobMutation) SubType() (r enums.HPBlobSubType, exists bool)
    func (m *HPBlobMutation) Thumbnail() (r *jsonfields.HPBlobThumbnail, exists bool)
    func (m *HPBlobMutation) ThumbnailCleared() bool
    func (m HPBlobMutation) Tx() (*Tx, error)
    func (m *HPBlobMutation) Type() string
    func (m *HPBlobMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPBlobMutation) UpdatedAtCleared() bool
    func (m *HPBlobMutation) Where(ps ...predicate.HPBlob)
    func (m *HPBlobMutation) WhereP(ps ...func(*sql.Selector))
    func (m *HPBlobMutation) Width() (r int, exists bool)
    func (m *HPBlobMutation) WidthCleared() bool
type HPBlobOrder
type HPBlobOrderField
type HPBlobPaginateOption
    func WithHPBlobFilter(filter func(*HPBlobQuery) (*HPBlobQuery, error)) HPBlobPaginateOption
    func WithHPBlobOrder(order *HPBlobOrder) HPBlobPaginateOption
type HPBlobQuery
    func (hbq *HPBlobQuery) Aggregate(fns ...AggregateFunc) *HPBlobSelect
    func (hbq *HPBlobQuery) All(ctx context.Context) ([]*HPBlob, error)
    func (hbq *HPBlobQuery) AllX(ctx context.Context) []*HPBlob
    func (hbq *HPBlobQuery) Clone() *HPBlobQuery
    func (hb *HPBlobQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPBlobQuery, error)
    func (hbq *HPBlobQuery) Count(ctx context.Context) (int, error)
    func (hbq *HPBlobQuery) CountX(ctx context.Context) int
    func (hbq *HPBlobQuery) Exist(ctx context.Context) (bool, error)
    func (hbq *HPBlobQuery) ExistX(ctx context.Context) bool
    func (hbq *HPBlobQuery) Filter() *HPBlobFilter
    func (hbq *HPBlobQuery) First(ctx context.Context) (*HPBlob, error)
    func (hbq *HPBlobQuery) FirstID(ctx context.Context) (id int, err error)
    func (hbq *HPBlobQuery) FirstIDX(ctx context.Context) int
    func (hbq *HPBlobQuery) FirstX(ctx context.Context) *HPBlob
    func (hbq *HPBlobQuery) GroupBy(field string, fields ...string) *HPBlobGroupBy
    func (hbq *HPBlobQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hbq *HPBlobQuery) IDsX(ctx context.Context) []int
    func (hbq *HPBlobQuery) Limit(limit int) *HPBlobQuery
    func (hbq *HPBlobQuery) Offset(offset int) *HPBlobQuery
    func (hbq *HPBlobQuery) Only(ctx context.Context) (*HPBlob, error)
    func (hbq *HPBlobQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hbq *HPBlobQuery) OnlyIDX(ctx context.Context) int
    func (hbq *HPBlobQuery) OnlyX(ctx context.Context) *HPBlob
    func (hbq *HPBlobQuery) Order(o ...hpblob.Order) *HPBlobQuery
    func (hb *HPBlobQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPBlobPaginateOption) (*HPBlobConnection, error)
    func (hbq *HPBlobQuery) QueryAmebloPosts() *HPAmebloPostQuery
    func (hbq *HPBlobQuery) QueryIgPosts() *HPIgPostQuery
    func (hbq *HPBlobQuery) QueryOwnerArtist() *HPArtistQuery
    func (hbq *HPBlobQuery) QueryOwnerMember() *HPMemberQuery
    func (hbq *HPBlobQuery) Select(fields ...string) *HPBlobSelect
    func (hbq *HPBlobQuery) Unique(unique bool) *HPBlobQuery
    func (hbq *HPBlobQuery) Where(ps ...predicate.HPBlob) *HPBlobQuery
    func (hbq *HPBlobQuery) WithAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPBlobQuery
    func (hbq *HPBlobQuery) WithIgPosts(opts ...func(*HPIgPostQuery)) *HPBlobQuery
    func (hbq *HPBlobQuery) WithNamedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPBlobQuery
    func (hbq *HPBlobQuery) WithNamedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPBlobQuery
    func (hbq *HPBlobQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPBlobQuery
    func (hbq *HPBlobQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPBlobQuery
type HPBlobSelect
    func (hbs *HPBlobSelect) Aggregate(fns ...AggregateFunc) *HPBlobSelect
    func (s *HPBlobSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPBlobSelect) BoolX(ctx context.Context) bool
    func (s *HPBlobSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPBlobSelect) BoolsX(ctx context.Context) []bool
    func (s *HPBlobSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPBlobSelect) Float64X(ctx context.Context) float64
    func (s *HPBlobSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPBlobSelect) Float64sX(ctx context.Context) []float64
    func (s *HPBlobSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPBlobSelect) IntX(ctx context.Context) int
    func (s *HPBlobSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPBlobSelect) IntsX(ctx context.Context) []int
    func (hbs *HPBlobSelect) Scan(ctx context.Context, v any) error
    func (s *HPBlobSelect) ScanX(ctx context.Context, v any)
    func (s *HPBlobSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPBlobSelect) StringX(ctx context.Context) string
    func (s *HPBlobSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPBlobSelect) StringsX(ctx context.Context) []string
type HPBlobUpdate
    func (hbu *HPBlobUpdate) AddAmebloPostIDs(ids ...int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddDurationSeconds(f float64) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddHeight(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddIgPostIDs(ids ...int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddIgPosts(h ...*HPIgPost) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddNumFaces(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddSize(i int64) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddStatusErrorCount(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) AddWidth(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearAmebloPosts() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearDurationSeconds() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearFaceRecognitionStatus() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearFaces() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearHeight() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearIgPosts() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearNumFaces() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearOwnerArtist() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearOwnerArtistID() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearOwnerMember() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearOwnerMemberID() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearSize() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearStatusErrorCount() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearStatusMessage() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearThumbnail() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearUpdatedAt() *HPBlobUpdate
    func (hbu *HPBlobUpdate) ClearWidth() *HPBlobUpdate
    func (hbu *HPBlobUpdate) Exec(ctx context.Context) error
    func (hbu *HPBlobUpdate) ExecX(ctx context.Context)
    func (hbu *HPBlobUpdate) Mutation() *HPBlobMutation
    func (hbu *HPBlobUpdate) RemoveAmebloPostIDs(ids ...int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) RemoveAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdate
    func (hbu *HPBlobUpdate) RemoveIgPostIDs(ids ...int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) RemoveIgPosts(h ...*HPIgPost) *HPBlobUpdate
    func (hbu *HPBlobUpdate) Save(ctx context.Context) (int, error)
    func (hbu *HPBlobUpdate) SaveX(ctx context.Context) int
    func (hbu *HPBlobUpdate) SetDurationSeconds(f float64) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetFaces(jbif jsonfields.HPBlobImageFace) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetHeight(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableDurationSeconds(f *float64) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableFaceRecognitionStatus(ebfrs *enums.HPBlobFaceRecognitionStatus) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableFaces(jbif *jsonfields.HPBlobImageFace) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableHeight(i *int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableNumFaces(i *int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableOwnerArtistID(i *int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableOwnerMemberID(i *int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableSize(i *int64) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableStatusErrorCount(i *int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableStatusMessage(s *string) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableUpdatedAt(t *time.Time) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNillableWidth(i *int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetNumFaces(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetOwnerArtist(h *HPArtist) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetOwnerArtistID(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetOwnerMember(h *HPMember) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetOwnerMemberID(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetSize(i int64) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetSourceHTMLURL(s string) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetSourceURL(s string) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetStatus(ebs enums.HPBlobStatus) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetStatusErrorCount(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetStatusMessage(s string) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetStoragePath(s string) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetSubType(ebst enums.HPBlobSubType) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetThumbnail(jbt *jsonfields.HPBlobThumbnail) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetType(ebt enums.HPBlobType) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetUpdatedAt(t time.Time) *HPBlobUpdate
    func (hbu *HPBlobUpdate) SetWidth(i int) *HPBlobUpdate
    func (hbu *HPBlobUpdate) Where(ps ...predicate.HPBlob) *HPBlobUpdate
type HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddAmebloPostIDs(ids ...int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddDurationSeconds(f float64) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddHeight(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddIgPostIDs(ids ...int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddIgPosts(h ...*HPIgPost) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddNumFaces(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddSize(i int64) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddStatusErrorCount(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) AddWidth(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearAmebloPosts() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearDurationSeconds() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearFaceRecognitionStatus() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearFaces() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearHeight() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearIgPosts() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearNumFaces() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearOwnerArtist() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearOwnerArtistID() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearOwnerMember() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearOwnerMemberID() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearSize() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearStatusErrorCount() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearStatusMessage() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearThumbnail() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearUpdatedAt() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) ClearWidth() *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) Exec(ctx context.Context) error
    func (hbuo *HPBlobUpdateOne) ExecX(ctx context.Context)
    func (hbuo *HPBlobUpdateOne) Mutation() *HPBlobMutation
    func (hbuo *HPBlobUpdateOne) RemoveAmebloPostIDs(ids ...int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) RemoveAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) RemoveIgPostIDs(ids ...int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) RemoveIgPosts(h ...*HPIgPost) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) Save(ctx context.Context) (*HPBlob, error)
    func (hbuo *HPBlobUpdateOne) SaveX(ctx context.Context) *HPBlob
    func (hbuo *HPBlobUpdateOne) Select(field string, fields ...string) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetDurationSeconds(f float64) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetFaces(jbif jsonfields.HPBlobImageFace) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetHeight(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableDurationSeconds(f *float64) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableFaceRecognitionStatus(ebfrs *enums.HPBlobFaceRecognitionStatus) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableFaces(jbif *jsonfields.HPBlobImageFace) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableHeight(i *int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableNumFaces(i *int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableOwnerArtistID(i *int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableOwnerMemberID(i *int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableSize(i *int64) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableStatusErrorCount(i *int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableStatusMessage(s *string) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNillableWidth(i *int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetNumFaces(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetOwnerArtist(h *HPArtist) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetOwnerArtistID(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetOwnerMember(h *HPMember) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetOwnerMemberID(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetSize(i int64) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetSourceHTMLURL(s string) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetSourceURL(s string) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetStatus(ebs enums.HPBlobStatus) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetStatusErrorCount(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetStatusMessage(s string) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetStoragePath(s string) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetSubType(ebst enums.HPBlobSubType) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetThumbnail(jbt *jsonfields.HPBlobThumbnail) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetType(ebt enums.HPBlobType) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetUpdatedAt(t time.Time) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) SetWidth(i int) *HPBlobUpdateOne
    func (hbuo *HPBlobUpdateOne) Where(ps ...predicate.HPBlob) *HPBlobUpdateOne
type HPBlobUpsert
    func (u *HPBlobUpsert) AddDurationSeconds(v float64) *HPBlobUpsert
    func (u *HPBlobUpsert) AddHeight(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) AddNumFaces(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) AddSize(v int64) *HPBlobUpsert
    func (u *HPBlobUpsert) AddStatusErrorCount(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) AddWidth(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) ClearDurationSeconds() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearFaceRecognitionStatus() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearFaces() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearHeight() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearNumFaces() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearOwnerArtistID() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearOwnerMemberID() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearSize() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearStatusErrorCount() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearStatusMessage() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearThumbnail() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearUpdatedAt() *HPBlobUpsert
    func (u *HPBlobUpsert) ClearWidth() *HPBlobUpsert
    func (u *HPBlobUpsert) SetDurationSeconds(v float64) *HPBlobUpsert
    func (u *HPBlobUpsert) SetFaceRecognitionStatus(v enums.HPBlobFaceRecognitionStatus) *HPBlobUpsert
    func (u *HPBlobUpsert) SetFaces(v jsonfields.HPBlobImageFace) *HPBlobUpsert
    func (u *HPBlobUpsert) SetHeight(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) SetNumFaces(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) SetOwnerArtistID(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) SetOwnerMemberID(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) SetSize(v int64) *HPBlobUpsert
    func (u *HPBlobUpsert) SetSourceHTMLURL(v string) *HPBlobUpsert
    func (u *HPBlobUpsert) SetSourceURL(v string) *HPBlobUpsert
    func (u *HPBlobUpsert) SetStatus(v enums.HPBlobStatus) *HPBlobUpsert
    func (u *HPBlobUpsert) SetStatusErrorCount(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) SetStatusMessage(v string) *HPBlobUpsert
    func (u *HPBlobUpsert) SetStoragePath(v string) *HPBlobUpsert
    func (u *HPBlobUpsert) SetSubType(v enums.HPBlobSubType) *HPBlobUpsert
    func (u *HPBlobUpsert) SetThumbnail(v *jsonfields.HPBlobThumbnail) *HPBlobUpsert
    func (u *HPBlobUpsert) SetType(v enums.HPBlobType) *HPBlobUpsert
    func (u *HPBlobUpsert) SetUpdatedAt(v time.Time) *HPBlobUpsert
    func (u *HPBlobUpsert) SetWidth(v int) *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateDurationSeconds() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateFaceRecognitionStatus() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateFaces() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateHeight() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateNumFaces() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateOwnerArtistID() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateOwnerMemberID() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateSize() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateSourceHTMLURL() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateSourceURL() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateStatus() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateStatusErrorCount() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateStatusMessage() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateStoragePath() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateSubType() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateThumbnail() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateType() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateUpdatedAt() *HPBlobUpsert
    func (u *HPBlobUpsert) UpdateWidth() *HPBlobUpsert
type HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) AddDurationSeconds(v float64) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) AddHeight(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) AddNumFaces(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) AddSize(v int64) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) AddStatusErrorCount(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) AddWidth(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearDurationSeconds() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearFaceRecognitionStatus() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearFaces() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearHeight() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearNumFaces() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearOwnerArtistID() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearOwnerMemberID() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearSize() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearStatusErrorCount() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearStatusMessage() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearThumbnail() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearUpdatedAt() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) ClearWidth() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) DoNothing() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) Exec(ctx context.Context) error
    func (u *HPBlobUpsertBulk) ExecX(ctx context.Context)
    func (u *HPBlobUpsertBulk) Ignore() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetDurationSeconds(v float64) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetFaceRecognitionStatus(v enums.HPBlobFaceRecognitionStatus) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetFaces(v jsonfields.HPBlobImageFace) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetHeight(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetNumFaces(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetOwnerArtistID(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetOwnerMemberID(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetSize(v int64) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetSourceHTMLURL(v string) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetSourceURL(v string) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetStatus(v enums.HPBlobStatus) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetStatusErrorCount(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetStatusMessage(v string) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetStoragePath(v string) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetSubType(v enums.HPBlobSubType) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetThumbnail(v *jsonfields.HPBlobThumbnail) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetType(v enums.HPBlobType) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetUpdatedAt(v time.Time) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) SetWidth(v int) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) Update(set func(*HPBlobUpsert)) *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateDurationSeconds() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateFaceRecognitionStatus() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateFaces() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateHeight() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateNewValues() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateNumFaces() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateOwnerArtistID() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateOwnerMemberID() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateSize() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateSourceHTMLURL() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateSourceURL() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateStatus() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateStatusErrorCount() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateStatusMessage() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateStoragePath() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateSubType() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateThumbnail() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateType() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateUpdatedAt() *HPBlobUpsertBulk
    func (u *HPBlobUpsertBulk) UpdateWidth() *HPBlobUpsertBulk
type HPBlobUpsertOne
    func (u *HPBlobUpsertOne) AddDurationSeconds(v float64) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) AddHeight(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) AddNumFaces(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) AddSize(v int64) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) AddStatusErrorCount(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) AddWidth(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearDurationSeconds() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearFaceRecognitionStatus() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearFaces() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearHeight() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearNumFaces() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearOwnerArtistID() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearOwnerMemberID() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearSize() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearStatusErrorCount() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearStatusMessage() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearThumbnail() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearUpdatedAt() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) ClearWidth() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) DoNothing() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) Exec(ctx context.Context) error
    func (u *HPBlobUpsertOne) ExecX(ctx context.Context)
    func (u *HPBlobUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPBlobUpsertOne) IDX(ctx context.Context) int
    func (u *HPBlobUpsertOne) Ignore() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetDurationSeconds(v float64) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetFaceRecognitionStatus(v enums.HPBlobFaceRecognitionStatus) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetFaces(v jsonfields.HPBlobImageFace) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetHeight(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetNumFaces(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetOwnerArtistID(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetOwnerMemberID(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetSize(v int64) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetSourceHTMLURL(v string) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetSourceURL(v string) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetStatus(v enums.HPBlobStatus) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetStatusErrorCount(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetStatusMessage(v string) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetStoragePath(v string) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetSubType(v enums.HPBlobSubType) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetThumbnail(v *jsonfields.HPBlobThumbnail) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetType(v enums.HPBlobType) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetUpdatedAt(v time.Time) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) SetWidth(v int) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) Update(set func(*HPBlobUpsert)) *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateDurationSeconds() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateFaceRecognitionStatus() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateFaces() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateHeight() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateNewValues() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateNumFaces() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateOwnerArtistID() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateOwnerMemberID() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateSize() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateSourceHTMLURL() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateSourceURL() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateStatus() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateStatusErrorCount() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateStatusMessage() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateStoragePath() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateSubType() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateThumbnail() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateType() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateUpdatedAt() *HPBlobUpsertOne
    func (u *HPBlobUpsertOne) UpdateWidth() *HPBlobUpsertOne
type HPBlobs
type HPElineupMallItem
    func (n *HPElineupMallItem) IsNode()
    func (hemi *HPElineupMallItem) NamedTaggedArtists(name string) ([]*HPArtist, error)
    func (hemi *HPElineupMallItem) NamedTaggedMembers(name string) ([]*HPMember, error)
    func (hemi *HPElineupMallItem) QueryTaggedArtists() *HPArtistQuery
    func (hemi *HPElineupMallItem) QueryTaggedMembers() *HPMemberQuery
    func (hemi *HPElineupMallItem) String() string
    func (hemi *HPElineupMallItem) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)
    func (hemi *HPElineupMallItem) TaggedMembers(ctx context.Context) (result []*HPMember, err error)
    func (hemi *HPElineupMallItem) ToEdge(order *HPElineupMallItemOrder) *HPElineupMallItemEdge
    func (hemi *HPElineupMallItem) Unwrap() *HPElineupMallItem
    func (hemi *HPElineupMallItem) Update() *HPElineupMallItemUpdateOne
    func (hemi *HPElineupMallItem) Value(name string) (ent.Value, error)
type HPElineupMallItemClient
    func NewHPElineupMallItemClient(c config) *HPElineupMallItemClient
    func (c *HPElineupMallItemClient) Create() *HPElineupMallItemCreate
    func (c *HPElineupMallItemClient) CreateBulk(builders ...*HPElineupMallItemCreate) *HPElineupMallItemCreateBulk
    func (c *HPElineupMallItemClient) Delete() *HPElineupMallItemDelete
    func (c *HPElineupMallItemClient) DeleteOne(hemi *HPElineupMallItem) *HPElineupMallItemDeleteOne
    func (c *HPElineupMallItemClient) DeleteOneID(id int) *HPElineupMallItemDeleteOne
    func (c *HPElineupMallItemClient) Get(ctx context.Context, id int) (*HPElineupMallItem, error)
    func (c *HPElineupMallItemClient) GetX(ctx context.Context, id int) *HPElineupMallItem
    func (c *HPElineupMallItemClient) Hooks() []Hook
    func (c *HPElineupMallItemClient) Intercept(interceptors ...Interceptor)
    func (c *HPElineupMallItemClient) Interceptors() []Interceptor
    func (c *HPElineupMallItemClient) Query() *HPElineupMallItemQuery
    func (c *HPElineupMallItemClient) QueryTaggedArtists(hemi *HPElineupMallItem) *HPArtistQuery
    func (c *HPElineupMallItemClient) QueryTaggedMembers(hemi *HPElineupMallItem) *HPMemberQuery
    func (c *HPElineupMallItemClient) Update() *HPElineupMallItemUpdate
    func (c *HPElineupMallItemClient) UpdateOne(hemi *HPElineupMallItem) *HPElineupMallItemUpdateOne
    func (c *HPElineupMallItemClient) UpdateOneID(id int) *HPElineupMallItemUpdateOne
    func (c *HPElineupMallItemClient) Use(hooks ...Hook)
type HPElineupMallItemConnection
type HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) AddTaggedArtistIDs(ids ...int) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) AddTaggedArtists(h ...*HPArtist) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) AddTaggedMemberIDs(ids ...int) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) AddTaggedMembers(h ...*HPMember) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) Exec(ctx context.Context) error
    func (hemic *HPElineupMallItemCreate) ExecX(ctx context.Context)
    func (hemic *HPElineupMallItemCreate) Mutation() *HPElineupMallItemMutation
    func (hemic *HPElineupMallItemCreate) OnConflict(opts ...sql.ConflictOption) *HPElineupMallItemUpsertOne
    func (hemic *HPElineupMallItemCreate) OnConflictColumns(columns ...string) *HPElineupMallItemUpsertOne
    func (hemic *HPElineupMallItemCreate) Save(ctx context.Context) (*HPElineupMallItem, error)
    func (hemic *HPElineupMallItemCreate) SaveX(ctx context.Context) *HPElineupMallItem
    func (hemic *HPElineupMallItemCreate) SetCategory(eemic enums.HPElineupMallItemCategory) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetCrawledAt(t time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetCreatedAt(t time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetDescription(s string) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetErrorCount(i int) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetImages(j []jsonfields.Media) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetIsLimitedToFc(b bool) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetIsOutOfStock(b bool) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetLastErrorMessage(s string) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetName(s string) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableCategory(eemic *enums.HPElineupMallItemCategory) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableCrawledAt(t *time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableCreatedAt(t *time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableDescription(s *string) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableErrorCount(i *int) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableLastErrorMessage(s *string) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableOrderEndAt(t *time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableOrderStartAt(t *time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableRecrawlRequired(b *bool) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetNillableUpdatedAt(t *time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetOrderEndAt(t time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetOrderStartAt(t time.Time) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetPermalink(s string) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetPrice(i int) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetRecrawlRequired(b bool) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetSupplier(s string) *HPElineupMallItemCreate
    func (hemic *HPElineupMallItemCreate) SetUpdatedAt(t time.Time) *HPElineupMallItemCreate
type HPElineupMallItemCreateBulk
    func (hemicb *HPElineupMallItemCreateBulk) Exec(ctx context.Context) error
    func (hemicb *HPElineupMallItemCreateBulk) ExecX(ctx context.Context)
    func (hemicb *HPElineupMallItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPElineupMallItemUpsertBulk
    func (hemicb *HPElineupMallItemCreateBulk) OnConflictColumns(columns ...string) *HPElineupMallItemUpsertBulk
    func (hemicb *HPElineupMallItemCreateBulk) Save(ctx context.Context) ([]*HPElineupMallItem, error)
    func (hemicb *HPElineupMallItemCreateBulk) SaveX(ctx context.Context) []*HPElineupMallItem
type HPElineupMallItemDelete
    func (hemid *HPElineupMallItemDelete) Exec(ctx context.Context) (int, error)
    func (hemid *HPElineupMallItemDelete) ExecX(ctx context.Context) int
    func (hemid *HPElineupMallItemDelete) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemDelete
type HPElineupMallItemDeleteOne
    func (hemido *HPElineupMallItemDeleteOne) Exec(ctx context.Context) error
    func (hemido *HPElineupMallItemDeleteOne) ExecX(ctx context.Context)
    func (hemido *HPElineupMallItemDeleteOne) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemDeleteOne
type HPElineupMallItemEdge
type HPElineupMallItemEdges
    func (e HPElineupMallItemEdges) TaggedArtistsOrErr() ([]*HPArtist, error)
    func (e HPElineupMallItemEdges) TaggedMembersOrErr() ([]*HPMember, error)
type HPElineupMallItemFilter
    func (f *HPElineupMallItemFilter) Where(p entql.P)
    func (f *HPElineupMallItemFilter) WhereCategory(p entql.StringP)
    func (f *HPElineupMallItemFilter) WhereCrawledAt(p entql.TimeP)
    func (f *HPElineupMallItemFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPElineupMallItemFilter) WhereDescription(p entql.StringP)
    func (f *HPElineupMallItemFilter) WhereErrorCount(p entql.IntP)
    func (f *HPElineupMallItemFilter) WhereHasTaggedArtists()
    func (f *HPElineupMallItemFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)
    func (f *HPElineupMallItemFilter) WhereHasTaggedMembers()
    func (f *HPElineupMallItemFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)
    func (f *HPElineupMallItemFilter) WhereID(p entql.IntP)
    func (f *HPElineupMallItemFilter) WhereImages(p entql.BytesP)
    func (f *HPElineupMallItemFilter) WhereIsLimitedToFc(p entql.BoolP)
    func (f *HPElineupMallItemFilter) WhereIsOutOfStock(p entql.BoolP)
    func (f *HPElineupMallItemFilter) WhereLastErrorMessage(p entql.StringP)
    func (f *HPElineupMallItemFilter) WhereManuallyModified(p entql.BytesP)
    func (f *HPElineupMallItemFilter) WhereName(p entql.StringP)
    func (f *HPElineupMallItemFilter) WhereOrderEndAt(p entql.TimeP)
    func (f *HPElineupMallItemFilter) WhereOrderStartAt(p entql.TimeP)
    func (f *HPElineupMallItemFilter) WherePermalink(p entql.StringP)
    func (f *HPElineupMallItemFilter) WherePrice(p entql.IntP)
    func (f *HPElineupMallItemFilter) WhereRecrawlRequired(p entql.BoolP)
    func (f *HPElineupMallItemFilter) WhereSupplier(p entql.StringP)
    func (f *HPElineupMallItemFilter) WhereUpdatedAt(p entql.TimeP)
type HPElineupMallItemGroupBy
    func (hemigb *HPElineupMallItemGroupBy) Aggregate(fns ...AggregateFunc) *HPElineupMallItemGroupBy
    func (s *HPElineupMallItemGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPElineupMallItemGroupBy) BoolX(ctx context.Context) bool
    func (s *HPElineupMallItemGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPElineupMallItemGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPElineupMallItemGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPElineupMallItemGroupBy) Float64X(ctx context.Context) float64
    func (s *HPElineupMallItemGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPElineupMallItemGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPElineupMallItemGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPElineupMallItemGroupBy) IntX(ctx context.Context) int
    func (s *HPElineupMallItemGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPElineupMallItemGroupBy) IntsX(ctx context.Context) []int
    func (hemigb *HPElineupMallItemGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPElineupMallItemGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPElineupMallItemGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPElineupMallItemGroupBy) StringX(ctx context.Context) string
    func (s *HPElineupMallItemGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPElineupMallItemGroupBy) StringsX(ctx context.Context) []string
type HPElineupMallItemMutation
    func (m *HPElineupMallItemMutation) AddErrorCount(i int)
    func (m *HPElineupMallItemMutation) AddField(name string, value ent.Value) error
    func (m *HPElineupMallItemMutation) AddPrice(i int)
    func (m *HPElineupMallItemMutation) AddTaggedArtistIDs(ids ...int)
    func (m *HPElineupMallItemMutation) AddTaggedMemberIDs(ids ...int)
    func (m *HPElineupMallItemMutation) AddedEdges() []string
    func (m *HPElineupMallItemMutation) AddedErrorCount() (r int, exists bool)
    func (m *HPElineupMallItemMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPElineupMallItemMutation) AddedFields() []string
    func (m *HPElineupMallItemMutation) AddedIDs(name string) []ent.Value
    func (m *HPElineupMallItemMutation) AddedPrice() (r int, exists bool)
    func (m *HPElineupMallItemMutation) AppendImages(j []jsonfields.Media)
    func (m *HPElineupMallItemMutation) AppendedImages() ([]jsonfields.Media, bool)
    func (m *HPElineupMallItemMutation) Category() (r enums.HPElineupMallItemCategory, exists bool)
    func (m *HPElineupMallItemMutation) ClearCrawledAt()
    func (m *HPElineupMallItemMutation) ClearCreatedAt()
    func (m *HPElineupMallItemMutation) ClearEdge(name string) error
    func (m *HPElineupMallItemMutation) ClearField(name string) error
    func (m *HPElineupMallItemMutation) ClearLastErrorMessage()
    func (m *HPElineupMallItemMutation) ClearManuallyModified()
    func (m *HPElineupMallItemMutation) ClearOrderEndAt()
    func (m *HPElineupMallItemMutation) ClearOrderStartAt()
    func (m *HPElineupMallItemMutation) ClearRecrawlRequired()
    func (m *HPElineupMallItemMutation) ClearTaggedArtists()
    func (m *HPElineupMallItemMutation) ClearTaggedMembers()
    func (m *HPElineupMallItemMutation) ClearUpdatedAt()
    func (m *HPElineupMallItemMutation) ClearedEdges() []string
    func (m *HPElineupMallItemMutation) ClearedFields() []string
    func (m HPElineupMallItemMutation) Client() *Client
    func (m *HPElineupMallItemMutation) CrawledAt() (r time.Time, exists bool)
    func (m *HPElineupMallItemMutation) CrawledAtCleared() bool
    func (m *HPElineupMallItemMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPElineupMallItemMutation) CreatedAtCleared() bool
    func (m *HPElineupMallItemMutation) Description() (r string, exists bool)
    func (m *HPElineupMallItemMutation) EdgeCleared(name string) bool
    func (m *HPElineupMallItemMutation) ErrorCount() (r int, exists bool)
    func (m *HPElineupMallItemMutation) Field(name string) (ent.Value, bool)
    func (m *HPElineupMallItemMutation) FieldCleared(name string) bool
    func (m *HPElineupMallItemMutation) Fields() []string
    func (m *HPElineupMallItemMutation) Filter() *HPElineupMallItemFilter
    func (m *HPElineupMallItemMutation) ID() (id int, exists bool)
    func (m *HPElineupMallItemMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPElineupMallItemMutation) Images() (r []jsonfields.Media, exists bool)
    func (m *HPElineupMallItemMutation) IsLimitedToFc() (r bool, exists bool)
    func (m *HPElineupMallItemMutation) IsOutOfStock() (r bool, exists bool)
    func (m *HPElineupMallItemMutation) LastErrorMessage() (r string, exists bool)
    func (m *HPElineupMallItemMutation) LastErrorMessageCleared() bool
    func (m *HPElineupMallItemMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)
    func (m *HPElineupMallItemMutation) ManuallyModifiedCleared() bool
    func (m *HPElineupMallItemMutation) Name() (r string, exists bool)
    func (m *HPElineupMallItemMutation) OldCategory(ctx context.Context) (v enums.HPElineupMallItemCategory, err error)
    func (m *HPElineupMallItemMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPElineupMallItemMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPElineupMallItemMutation) OldDescription(ctx context.Context) (v string, err error)
    func (m *HPElineupMallItemMutation) OldErrorCount(ctx context.Context) (v int, err error)
    func (m *HPElineupMallItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPElineupMallItemMutation) OldImages(ctx context.Context) (v []jsonfields.Media, err error)
    func (m *HPElineupMallItemMutation) OldIsLimitedToFc(ctx context.Context) (v bool, err error)
    func (m *HPElineupMallItemMutation) OldIsOutOfStock(ctx context.Context) (v bool, err error)
    func (m *HPElineupMallItemMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)
    func (m *HPElineupMallItemMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)
    func (m *HPElineupMallItemMutation) OldName(ctx context.Context) (v string, err error)
    func (m *HPElineupMallItemMutation) OldOrderEndAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPElineupMallItemMutation) OldOrderStartAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPElineupMallItemMutation) OldPermalink(ctx context.Context) (v string, err error)
    func (m *HPElineupMallItemMutation) OldPrice(ctx context.Context) (v int, err error)
    func (m *HPElineupMallItemMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)
    func (m *HPElineupMallItemMutation) OldSupplier(ctx context.Context) (v string, err error)
    func (m *HPElineupMallItemMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPElineupMallItemMutation) Op() Op
    func (m *HPElineupMallItemMutation) OrderEndAt() (r time.Time, exists bool)
    func (m *HPElineupMallItemMutation) OrderEndAtCleared() bool
    func (m *HPElineupMallItemMutation) OrderStartAt() (r time.Time, exists bool)
    func (m *HPElineupMallItemMutation) OrderStartAtCleared() bool
    func (m *HPElineupMallItemMutation) Permalink() (r string, exists bool)
    func (m *HPElineupMallItemMutation) Price() (r int, exists bool)
    func (m *HPElineupMallItemMutation) RecrawlRequired() (r bool, exists bool)
    func (m *HPElineupMallItemMutation) RecrawlRequiredCleared() bool
    func (m *HPElineupMallItemMutation) RemoveTaggedArtistIDs(ids ...int)
    func (m *HPElineupMallItemMutation) RemoveTaggedMemberIDs(ids ...int)
    func (m *HPElineupMallItemMutation) RemovedEdges() []string
    func (m *HPElineupMallItemMutation) RemovedIDs(name string) []ent.Value
    func (m *HPElineupMallItemMutation) RemovedTaggedArtistsIDs() (ids []int)
    func (m *HPElineupMallItemMutation) RemovedTaggedMembersIDs() (ids []int)
    func (m *HPElineupMallItemMutation) ResetCategory()
    func (m *HPElineupMallItemMutation) ResetCrawledAt()
    func (m *HPElineupMallItemMutation) ResetCreatedAt()
    func (m *HPElineupMallItemMutation) ResetDescription()
    func (m *HPElineupMallItemMutation) ResetEdge(name string) error
    func (m *HPElineupMallItemMutation) ResetErrorCount()
    func (m *HPElineupMallItemMutation) ResetField(name string) error
    func (m *HPElineupMallItemMutation) ResetImages()
    func (m *HPElineupMallItemMutation) ResetIsLimitedToFc()
    func (m *HPElineupMallItemMutation) ResetIsOutOfStock()
    func (m *HPElineupMallItemMutation) ResetLastErrorMessage()
    func (m *HPElineupMallItemMutation) ResetManuallyModified()
    func (m *HPElineupMallItemMutation) ResetName()
    func (m *HPElineupMallItemMutation) ResetOrderEndAt()
    func (m *HPElineupMallItemMutation) ResetOrderStartAt()
    func (m *HPElineupMallItemMutation) ResetPermalink()
    func (m *HPElineupMallItemMutation) ResetPrice()
    func (m *HPElineupMallItemMutation) ResetRecrawlRequired()
    func (m *HPElineupMallItemMutation) ResetSupplier()
    func (m *HPElineupMallItemMutation) ResetTaggedArtists()
    func (m *HPElineupMallItemMutation) ResetTaggedMembers()
    func (m *HPElineupMallItemMutation) ResetUpdatedAt()
    func (m *HPElineupMallItemMutation) SetCategory(eemic enums.HPElineupMallItemCategory)
    func (m *HPElineupMallItemMutation) SetCrawledAt(t time.Time)
    func (m *HPElineupMallItemMutation) SetCreatedAt(t time.Time)
    func (m *HPElineupMallItemMutation) SetDescription(s string)
    func (m *HPElineupMallItemMutation) SetErrorCount(i int)
    func (m *HPElineupMallItemMutation) SetField(name string, value ent.Value) error
    func (m *HPElineupMallItemMutation) SetImages(j []jsonfields.Media)
    func (m *HPElineupMallItemMutation) SetIsLimitedToFc(b bool)
    func (m *HPElineupMallItemMutation) SetIsOutOfStock(b bool)
    func (m *HPElineupMallItemMutation) SetLastErrorMessage(s string)
    func (m *HPElineupMallItemMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)
    func (m *HPElineupMallItemMutation) SetName(s string)
    func (m *HPElineupMallItemMutation) SetOp(op Op)
    func (m *HPElineupMallItemMutation) SetOrderEndAt(t time.Time)
    func (m *HPElineupMallItemMutation) SetOrderStartAt(t time.Time)
    func (m *HPElineupMallItemMutation) SetPermalink(s string)
    func (m *HPElineupMallItemMutation) SetPrice(i int)
    func (m *HPElineupMallItemMutation) SetRecrawlRequired(b bool)
    func (m *HPElineupMallItemMutation) SetSupplier(s string)
    func (m *HPElineupMallItemMutation) SetUpdatedAt(t time.Time)
    func (m *HPElineupMallItemMutation) Supplier() (r string, exists bool)
    func (m *HPElineupMallItemMutation) TaggedArtistsCleared() bool
    func (m *HPElineupMallItemMutation) TaggedArtistsIDs() (ids []int)
    func (m *HPElineupMallItemMutation) TaggedMembersCleared() bool
    func (m *HPElineupMallItemMutation) TaggedMembersIDs() (ids []int)
    func (m HPElineupMallItemMutation) Tx() (*Tx, error)
    func (m *HPElineupMallItemMutation) Type() string
    func (m *HPElineupMallItemMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPElineupMallItemMutation) UpdatedAtCleared() bool
    func (m *HPElineupMallItemMutation) Where(ps ...predicate.HPElineupMallItem)
    func (m *HPElineupMallItemMutation) WhereP(ps ...func(*sql.Selector))
type HPElineupMallItemOrder
type HPElineupMallItemOrderField
type HPElineupMallItemPaginateOption
    func WithHPElineupMallItemFilter(filter func(*HPElineupMallItemQuery) (*HPElineupMallItemQuery, error)) HPElineupMallItemPaginateOption
    func WithHPElineupMallItemOrder(order *HPElineupMallItemOrder) HPElineupMallItemPaginateOption
type HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) Aggregate(fns ...AggregateFunc) *HPElineupMallItemSelect
    func (hemiq *HPElineupMallItemQuery) All(ctx context.Context) ([]*HPElineupMallItem, error)
    func (hemiq *HPElineupMallItemQuery) AllX(ctx context.Context) []*HPElineupMallItem
    func (hemiq *HPElineupMallItemQuery) Clone() *HPElineupMallItemQuery
    func (hemi *HPElineupMallItemQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPElineupMallItemQuery, error)
    func (hemiq *HPElineupMallItemQuery) Count(ctx context.Context) (int, error)
    func (hemiq *HPElineupMallItemQuery) CountX(ctx context.Context) int
    func (hemiq *HPElineupMallItemQuery) Exist(ctx context.Context) (bool, error)
    func (hemiq *HPElineupMallItemQuery) ExistX(ctx context.Context) bool
    func (hemiq *HPElineupMallItemQuery) Filter() *HPElineupMallItemFilter
    func (hemiq *HPElineupMallItemQuery) First(ctx context.Context) (*HPElineupMallItem, error)
    func (hemiq *HPElineupMallItemQuery) FirstID(ctx context.Context) (id int, err error)
    func (hemiq *HPElineupMallItemQuery) FirstIDX(ctx context.Context) int
    func (hemiq *HPElineupMallItemQuery) FirstX(ctx context.Context) *HPElineupMallItem
    func (hemiq *HPElineupMallItemQuery) GroupBy(field string, fields ...string) *HPElineupMallItemGroupBy
    func (hemiq *HPElineupMallItemQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hemiq *HPElineupMallItemQuery) IDsX(ctx context.Context) []int
    func (hemiq *HPElineupMallItemQuery) Limit(limit int) *HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) Offset(offset int) *HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) Only(ctx context.Context) (*HPElineupMallItem, error)
    func (hemiq *HPElineupMallItemQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hemiq *HPElineupMallItemQuery) OnlyIDX(ctx context.Context) int
    func (hemiq *HPElineupMallItemQuery) OnlyX(ctx context.Context) *HPElineupMallItem
    func (hemiq *HPElineupMallItemQuery) Order(o ...hpelineupmallitem.Order) *HPElineupMallItemQuery
    func (hemi *HPElineupMallItemQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPElineupMallItemPaginateOption) (*HPElineupMallItemConnection, error)
    func (hemiq *HPElineupMallItemQuery) QueryTaggedArtists() *HPArtistQuery
    func (hemiq *HPElineupMallItemQuery) QueryTaggedMembers() *HPMemberQuery
    func (hemiq *HPElineupMallItemQuery) Select(fields ...string) *HPElineupMallItemSelect
    func (hemiq *HPElineupMallItemQuery) Unique(unique bool) *HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPElineupMallItemQuery
    func (hemiq *HPElineupMallItemQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPElineupMallItemQuery
type HPElineupMallItemSelect
    func (hemis *HPElineupMallItemSelect) Aggregate(fns ...AggregateFunc) *HPElineupMallItemSelect
    func (s *HPElineupMallItemSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPElineupMallItemSelect) BoolX(ctx context.Context) bool
    func (s *HPElineupMallItemSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPElineupMallItemSelect) BoolsX(ctx context.Context) []bool
    func (s *HPElineupMallItemSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPElineupMallItemSelect) Float64X(ctx context.Context) float64
    func (s *HPElineupMallItemSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPElineupMallItemSelect) Float64sX(ctx context.Context) []float64
    func (s *HPElineupMallItemSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPElineupMallItemSelect) IntX(ctx context.Context) int
    func (s *HPElineupMallItemSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPElineupMallItemSelect) IntsX(ctx context.Context) []int
    func (hemis *HPElineupMallItemSelect) Scan(ctx context.Context, v any) error
    func (s *HPElineupMallItemSelect) ScanX(ctx context.Context, v any)
    func (s *HPElineupMallItemSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPElineupMallItemSelect) StringX(ctx context.Context) string
    func (s *HPElineupMallItemSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPElineupMallItemSelect) StringsX(ctx context.Context) []string
type HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) AddErrorCount(i int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) AddPrice(i int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) AddTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) AddTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) AddTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) AddTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) AppendImages(j []jsonfields.Media) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearCrawledAt() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearLastErrorMessage() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearManuallyModified() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearOrderEndAt() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearOrderStartAt() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearRecrawlRequired() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearTaggedArtists() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearTaggedMembers() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) ClearUpdatedAt() *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) Exec(ctx context.Context) error
    func (hemiu *HPElineupMallItemUpdate) ExecX(ctx context.Context)
    func (hemiu *HPElineupMallItemUpdate) Mutation() *HPElineupMallItemMutation
    func (hemiu *HPElineupMallItemUpdate) RemoveTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) RemoveTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) RemoveTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) Save(ctx context.Context) (int, error)
    func (hemiu *HPElineupMallItemUpdate) SaveX(ctx context.Context) int
    func (hemiu *HPElineupMallItemUpdate) SetCategory(eemic enums.HPElineupMallItemCategory) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetCrawledAt(t time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetDescription(s string) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetErrorCount(i int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetImages(j []jsonfields.Media) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetIsLimitedToFc(b bool) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetIsOutOfStock(b bool) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetLastErrorMessage(s string) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetName(s string) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableCategory(eemic *enums.HPElineupMallItemCategory) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableCrawledAt(t *time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableDescription(s *string) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableErrorCount(i *int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableLastErrorMessage(s *string) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableOrderEndAt(t *time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableOrderStartAt(t *time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableRecrawlRequired(b *bool) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetNillableUpdatedAt(t *time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetOrderEndAt(t time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetOrderStartAt(t time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetPermalink(s string) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetPrice(i int) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetRecrawlRequired(b bool) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetSupplier(s string) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) SetUpdatedAt(t time.Time) *HPElineupMallItemUpdate
    func (hemiu *HPElineupMallItemUpdate) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemUpdate
type HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) AddErrorCount(i int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) AddPrice(i int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) AppendImages(j []jsonfields.Media) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearCrawledAt() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearLastErrorMessage() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearManuallyModified() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearOrderEndAt() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearOrderStartAt() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearRecrawlRequired() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearTaggedArtists() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearTaggedMembers() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) ClearUpdatedAt() *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) Exec(ctx context.Context) error
    func (hemiuo *HPElineupMallItemUpdateOne) ExecX(ctx context.Context)
    func (hemiuo *HPElineupMallItemUpdateOne) Mutation() *HPElineupMallItemMutation
    func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) Save(ctx context.Context) (*HPElineupMallItem, error)
    func (hemiuo *HPElineupMallItemUpdateOne) SaveX(ctx context.Context) *HPElineupMallItem
    func (hemiuo *HPElineupMallItemUpdateOne) Select(field string, fields ...string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetCategory(eemic enums.HPElineupMallItemCategory) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetCrawledAt(t time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetDescription(s string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetErrorCount(i int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetImages(j []jsonfields.Media) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetIsLimitedToFc(b bool) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetIsOutOfStock(b bool) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetLastErrorMessage(s string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetName(s string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableCategory(eemic *enums.HPElineupMallItemCategory) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableCrawledAt(t *time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableDescription(s *string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableErrorCount(i *int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableLastErrorMessage(s *string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableOrderEndAt(t *time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableOrderStartAt(t *time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableRecrawlRequired(b *bool) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetOrderEndAt(t time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetOrderStartAt(t time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetPermalink(s string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetPrice(i int) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetRecrawlRequired(b bool) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetSupplier(s string) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) SetUpdatedAt(t time.Time) *HPElineupMallItemUpdateOne
    func (hemiuo *HPElineupMallItemUpdateOne) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemUpdateOne
type HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) AddErrorCount(v int) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) AddPrice(v int) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) ClearCrawledAt() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) ClearLastErrorMessage() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) ClearManuallyModified() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) ClearOrderEndAt() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) ClearOrderStartAt() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) ClearRecrawlRequired() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) ClearUpdatedAt() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetCategory(v enums.HPElineupMallItemCategory) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetCrawledAt(v time.Time) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetDescription(v string) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetErrorCount(v int) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetImages(v []jsonfields.Media) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetIsLimitedToFc(v bool) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetIsOutOfStock(v bool) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetLastErrorMessage(v string) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetName(v string) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetOrderEndAt(v time.Time) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetOrderStartAt(v time.Time) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetPermalink(v string) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetPrice(v int) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetRecrawlRequired(v bool) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetSupplier(v string) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) SetUpdatedAt(v time.Time) *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateCategory() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateCrawledAt() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateDescription() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateErrorCount() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateImages() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateIsLimitedToFc() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateIsOutOfStock() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateLastErrorMessage() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateManuallyModified() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateName() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateOrderEndAt() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateOrderStartAt() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdatePermalink() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdatePrice() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateRecrawlRequired() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateSupplier() *HPElineupMallItemUpsert
    func (u *HPElineupMallItemUpsert) UpdateUpdatedAt() *HPElineupMallItemUpsert
type HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) AddErrorCount(v int) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) AddPrice(v int) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) ClearCrawledAt() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) ClearLastErrorMessage() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) ClearManuallyModified() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) ClearOrderEndAt() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) ClearOrderStartAt() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) ClearRecrawlRequired() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) ClearUpdatedAt() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) DoNothing() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) Exec(ctx context.Context) error
    func (u *HPElineupMallItemUpsertBulk) ExecX(ctx context.Context)
    func (u *HPElineupMallItemUpsertBulk) Ignore() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetCategory(v enums.HPElineupMallItemCategory) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetCrawledAt(v time.Time) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetDescription(v string) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetErrorCount(v int) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetImages(v []jsonfields.Media) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetIsLimitedToFc(v bool) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetIsOutOfStock(v bool) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetLastErrorMessage(v string) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetName(v string) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetOrderEndAt(v time.Time) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetOrderStartAt(v time.Time) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetPermalink(v string) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetPrice(v int) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetRecrawlRequired(v bool) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetSupplier(v string) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) SetUpdatedAt(v time.Time) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) Update(set func(*HPElineupMallItemUpsert)) *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateCategory() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateCrawledAt() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateDescription() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateErrorCount() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateImages() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateIsLimitedToFc() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateIsOutOfStock() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateLastErrorMessage() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateManuallyModified() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateName() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateNewValues() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateOrderEndAt() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateOrderStartAt() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdatePermalink() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdatePrice() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateRecrawlRequired() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateSupplier() *HPElineupMallItemUpsertBulk
    func (u *HPElineupMallItemUpsertBulk) UpdateUpdatedAt() *HPElineupMallItemUpsertBulk
type HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) AddErrorCount(v int) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) AddPrice(v int) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) ClearCrawledAt() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) ClearLastErrorMessage() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) ClearManuallyModified() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) ClearOrderEndAt() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) ClearOrderStartAt() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) ClearRecrawlRequired() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) ClearUpdatedAt() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) DoNothing() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) Exec(ctx context.Context) error
    func (u *HPElineupMallItemUpsertOne) ExecX(ctx context.Context)
    func (u *HPElineupMallItemUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPElineupMallItemUpsertOne) IDX(ctx context.Context) int
    func (u *HPElineupMallItemUpsertOne) Ignore() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetCategory(v enums.HPElineupMallItemCategory) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetCrawledAt(v time.Time) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetDescription(v string) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetErrorCount(v int) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetImages(v []jsonfields.Media) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetIsLimitedToFc(v bool) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetIsOutOfStock(v bool) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetLastErrorMessage(v string) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetName(v string) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetOrderEndAt(v time.Time) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetOrderStartAt(v time.Time) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetPermalink(v string) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetPrice(v int) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetRecrawlRequired(v bool) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetSupplier(v string) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) SetUpdatedAt(v time.Time) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) Update(set func(*HPElineupMallItemUpsert)) *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateCategory() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateCrawledAt() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateDescription() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateErrorCount() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateImages() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateIsLimitedToFc() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateIsOutOfStock() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateLastErrorMessage() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateManuallyModified() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateName() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateNewValues() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateOrderEndAt() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateOrderStartAt() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdatePermalink() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdatePrice() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateRecrawlRequired() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateSupplier() *HPElineupMallItemUpsertOne
    func (u *HPElineupMallItemUpsertOne) UpdateUpdatedAt() *HPElineupMallItemUpsertOne
type HPElineupMallItems
type HPEvent
    func (n *HPEvent) IsNode()
    func (he *HPEvent) NamedArtists(name string) ([]*HPArtist, error)
    func (he *HPEvent) NamedHpfcEventTickets(name string) ([]*HPFCEventTicket, error)
    func (he *HPEvent) NamedMembers(name string) ([]*HPMember, error)
    func (he *HPEvent) QueryArtists() *HPArtistQuery
    func (he *HPEvent) QueryHpfcEventTickets() *HPFCEventTicketQuery
    func (he *HPEvent) QueryMembers() *HPMemberQuery
    func (he *HPEvent) String() string
    func (he *HPEvent) ToEdge(order *HPEventOrder) *HPEventEdge
    func (he *HPEvent) Unwrap() *HPEvent
    func (he *HPEvent) Update() *HPEventUpdateOne
    func (he *HPEvent) Value(name string) (ent.Value, error)
type HPEventClient
    func NewHPEventClient(c config) *HPEventClient
    func (c *HPEventClient) Create() *HPEventCreate
    func (c *HPEventClient) CreateBulk(builders ...*HPEventCreate) *HPEventCreateBulk
    func (c *HPEventClient) Delete() *HPEventDelete
    func (c *HPEventClient) DeleteOne(he *HPEvent) *HPEventDeleteOne
    func (c *HPEventClient) DeleteOneID(id int) *HPEventDeleteOne
    func (c *HPEventClient) Get(ctx context.Context, id int) (*HPEvent, error)
    func (c *HPEventClient) GetX(ctx context.Context, id int) *HPEvent
    func (c *HPEventClient) Hooks() []Hook
    func (c *HPEventClient) Intercept(interceptors ...Interceptor)
    func (c *HPEventClient) Interceptors() []Interceptor
    func (c *HPEventClient) Query() *HPEventQuery
    func (c *HPEventClient) QueryArtists(he *HPEvent) *HPArtistQuery
    func (c *HPEventClient) QueryHpfcEventTickets(he *HPEvent) *HPFCEventTicketQuery
    func (c *HPEventClient) QueryMembers(he *HPEvent) *HPMemberQuery
    func (c *HPEventClient) Update() *HPEventUpdate
    func (c *HPEventClient) UpdateOne(he *HPEvent) *HPEventUpdateOne
    func (c *HPEventClient) UpdateOneID(id int) *HPEventUpdateOne
    func (c *HPEventClient) Use(hooks ...Hook)
type HPEventConnection
type HPEventCreate
    func (hec *HPEventCreate) AddArtistIDs(ids ...int) *HPEventCreate
    func (hec *HPEventCreate) AddArtists(h ...*HPArtist) *HPEventCreate
    func (hec *HPEventCreate) AddHpfcEventTicketIDs(ids ...int) *HPEventCreate
    func (hec *HPEventCreate) AddHpfcEventTickets(h ...*HPFCEventTicket) *HPEventCreate
    func (hec *HPEventCreate) AddMemberIDs(ids ...int) *HPEventCreate
    func (hec *HPEventCreate) AddMembers(h ...*HPMember) *HPEventCreate
    func (hec *HPEventCreate) Exec(ctx context.Context) error
    func (hec *HPEventCreate) ExecX(ctx context.Context)
    func (hec *HPEventCreate) Mutation() *HPEventMutation
    func (hec *HPEventCreate) OnConflict(opts ...sql.ConflictOption) *HPEventUpsertOne
    func (hec *HPEventCreate) OnConflictColumns(columns ...string) *HPEventUpsertOne
    func (hec *HPEventCreate) Save(ctx context.Context) (*HPEvent, error)
    func (hec *HPEventCreate) SaveX(ctx context.Context) *HPEvent
    func (hec *HPEventCreate) SetCreatedAt(t time.Time) *HPEventCreate
    func (hec *HPEventCreate) SetDisplayTitles(s []string) *HPEventCreate
    func (hec *HPEventCreate) SetKey(s string) *HPEventCreate
    func (hec *HPEventCreate) SetNillableCreatedAt(t *time.Time) *HPEventCreate
    func (hec *HPEventCreate) SetNillableOpenAt(t *time.Time) *HPEventCreate
    func (hec *HPEventCreate) SetNillableSource(ees *enums.HPEventSource) *HPEventCreate
    func (hec *HPEventCreate) SetNillableUpdatedAt(t *time.Time) *HPEventCreate
    func (hec *HPEventCreate) SetOpenAt(t time.Time) *HPEventCreate
    func (hec *HPEventCreate) SetPrefecture(s string) *HPEventCreate
    func (hec *HPEventCreate) SetSource(ees enums.HPEventSource) *HPEventCreate
    func (hec *HPEventCreate) SetStartAt(t time.Time) *HPEventCreate
    func (hec *HPEventCreate) SetUpdatedAt(t time.Time) *HPEventCreate
    func (hec *HPEventCreate) SetVenue(s string) *HPEventCreate
type HPEventCreateBulk
    func (hecb *HPEventCreateBulk) Exec(ctx context.Context) error
    func (hecb *HPEventCreateBulk) ExecX(ctx context.Context)
    func (hecb *HPEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPEventUpsertBulk
    func (hecb *HPEventCreateBulk) OnConflictColumns(columns ...string) *HPEventUpsertBulk
    func (hecb *HPEventCreateBulk) Save(ctx context.Context) ([]*HPEvent, error)
    func (hecb *HPEventCreateBulk) SaveX(ctx context.Context) []*HPEvent
type HPEventDelete
    func (hed *HPEventDelete) Exec(ctx context.Context) (int, error)
    func (hed *HPEventDelete) ExecX(ctx context.Context) int
    func (hed *HPEventDelete) Where(ps ...predicate.HPEvent) *HPEventDelete
type HPEventDeleteOne
    func (hedo *HPEventDeleteOne) Exec(ctx context.Context) error
    func (hedo *HPEventDeleteOne) ExecX(ctx context.Context)
    func (hedo *HPEventDeleteOne) Where(ps ...predicate.HPEvent) *HPEventDeleteOne
type HPEventEdge
type HPEventEdges
    func (e HPEventEdges) ArtistsOrErr() ([]*HPArtist, error)
    func (e HPEventEdges) HpfcEventTicketsOrErr() ([]*HPFCEventTicket, error)
    func (e HPEventEdges) MembersOrErr() ([]*HPMember, error)
type HPEventFilter
    func (f *HPEventFilter) Where(p entql.P)
    func (f *HPEventFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPEventFilter) WhereDisplayTitles(p entql.BytesP)
    func (f *HPEventFilter) WhereHasArtists()
    func (f *HPEventFilter) WhereHasArtistsWith(preds ...predicate.HPArtist)
    func (f *HPEventFilter) WhereHasHpfcEventTickets()
    func (f *HPEventFilter) WhereHasHpfcEventTicketsWith(preds ...predicate.HPFCEventTicket)
    func (f *HPEventFilter) WhereHasMembers()
    func (f *HPEventFilter) WhereHasMembersWith(preds ...predicate.HPMember)
    func (f *HPEventFilter) WhereID(p entql.IntP)
    func (f *HPEventFilter) WhereKey(p entql.StringP)
    func (f *HPEventFilter) WhereOpenAt(p entql.TimeP)
    func (f *HPEventFilter) WherePrefecture(p entql.StringP)
    func (f *HPEventFilter) WhereSource(p entql.StringP)
    func (f *HPEventFilter) WhereStartAt(p entql.TimeP)
    func (f *HPEventFilter) WhereUpdatedAt(p entql.TimeP)
    func (f *HPEventFilter) WhereVenue(p entql.StringP)
type HPEventGroupBy
    func (hegb *HPEventGroupBy) Aggregate(fns ...AggregateFunc) *HPEventGroupBy
    func (s *HPEventGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPEventGroupBy) BoolX(ctx context.Context) bool
    func (s *HPEventGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPEventGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPEventGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPEventGroupBy) Float64X(ctx context.Context) float64
    func (s *HPEventGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPEventGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPEventGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPEventGroupBy) IntX(ctx context.Context) int
    func (s *HPEventGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPEventGroupBy) IntsX(ctx context.Context) []int
    func (hegb *HPEventGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPEventGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPEventGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPEventGroupBy) StringX(ctx context.Context) string
    func (s *HPEventGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPEventGroupBy) StringsX(ctx context.Context) []string
type HPEventMutation
    func (m *HPEventMutation) AddArtistIDs(ids ...int)
    func (m *HPEventMutation) AddField(name string, value ent.Value) error
    func (m *HPEventMutation) AddHpfcEventTicketIDs(ids ...int)
    func (m *HPEventMutation) AddMemberIDs(ids ...int)
    func (m *HPEventMutation) AddedEdges() []string
    func (m *HPEventMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPEventMutation) AddedFields() []string
    func (m *HPEventMutation) AddedIDs(name string) []ent.Value
    func (m *HPEventMutation) AppendDisplayTitles(s []string)
    func (m *HPEventMutation) AppendedDisplayTitles() ([]string, bool)
    func (m *HPEventMutation) ArtistsCleared() bool
    func (m *HPEventMutation) ArtistsIDs() (ids []int)
    func (m *HPEventMutation) ClearArtists()
    func (m *HPEventMutation) ClearCreatedAt()
    func (m *HPEventMutation) ClearEdge(name string) error
    func (m *HPEventMutation) ClearField(name string) error
    func (m *HPEventMutation) ClearHpfcEventTickets()
    func (m *HPEventMutation) ClearMembers()
    func (m *HPEventMutation) ClearOpenAt()
    func (m *HPEventMutation) ClearUpdatedAt()
    func (m *HPEventMutation) ClearedEdges() []string
    func (m *HPEventMutation) ClearedFields() []string
    func (m HPEventMutation) Client() *Client
    func (m *HPEventMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPEventMutation) CreatedAtCleared() bool
    func (m *HPEventMutation) DisplayTitles() (r []string, exists bool)
    func (m *HPEventMutation) EdgeCleared(name string) bool
    func (m *HPEventMutation) Field(name string) (ent.Value, bool)
    func (m *HPEventMutation) FieldCleared(name string) bool
    func (m *HPEventMutation) Fields() []string
    func (m *HPEventMutation) Filter() *HPEventFilter
    func (m *HPEventMutation) HpfcEventTicketsCleared() bool
    func (m *HPEventMutation) HpfcEventTicketsIDs() (ids []int)
    func (m *HPEventMutation) ID() (id int, exists bool)
    func (m *HPEventMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPEventMutation) Key() (r string, exists bool)
    func (m *HPEventMutation) MembersCleared() bool
    func (m *HPEventMutation) MembersIDs() (ids []int)
    func (m *HPEventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPEventMutation) OldDisplayTitles(ctx context.Context) (v []string, err error)
    func (m *HPEventMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPEventMutation) OldKey(ctx context.Context) (v string, err error)
    func (m *HPEventMutation) OldOpenAt(ctx context.Context) (v time.Time, err error)
    func (m *HPEventMutation) OldPrefecture(ctx context.Context) (v string, err error)
    func (m *HPEventMutation) OldSource(ctx context.Context) (v enums.HPEventSource, err error)
    func (m *HPEventMutation) OldStartAt(ctx context.Context) (v time.Time, err error)
    func (m *HPEventMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPEventMutation) OldVenue(ctx context.Context) (v string, err error)
    func (m *HPEventMutation) Op() Op
    func (m *HPEventMutation) OpenAt() (r time.Time, exists bool)
    func (m *HPEventMutation) OpenAtCleared() bool
    func (m *HPEventMutation) Prefecture() (r string, exists bool)
    func (m *HPEventMutation) RemoveArtistIDs(ids ...int)
    func (m *HPEventMutation) RemoveHpfcEventTicketIDs(ids ...int)
    func (m *HPEventMutation) RemoveMemberIDs(ids ...int)
    func (m *HPEventMutation) RemovedArtistsIDs() (ids []int)
    func (m *HPEventMutation) RemovedEdges() []string
    func (m *HPEventMutation) RemovedHpfcEventTicketsIDs() (ids []int)
    func (m *HPEventMutation) RemovedIDs(name string) []ent.Value
    func (m *HPEventMutation) RemovedMembersIDs() (ids []int)
    func (m *HPEventMutation) ResetArtists()
    func (m *HPEventMutation) ResetCreatedAt()
    func (m *HPEventMutation) ResetDisplayTitles()
    func (m *HPEventMutation) ResetEdge(name string) error
    func (m *HPEventMutation) ResetField(name string) error
    func (m *HPEventMutation) ResetHpfcEventTickets()
    func (m *HPEventMutation) ResetKey()
    func (m *HPEventMutation) ResetMembers()
    func (m *HPEventMutation) ResetOpenAt()
    func (m *HPEventMutation) ResetPrefecture()
    func (m *HPEventMutation) ResetSource()
    func (m *HPEventMutation) ResetStartAt()
    func (m *HPEventMutation) ResetUpdatedAt()
    func (m *HPEventMutation) ResetVenue()
    func (m *HPEventMutation) SetCreatedAt(t time.Time)
    func (m *HPEventMutation) SetDisplayTitles(s []string)
    func (m *HPEventMutation) SetField(name string, value ent.Value) error
    func (m *HPEventMutation) SetKey(s string)
    func (m *HPEventMutation) SetOp(op Op)
    func (m *HPEventMutation) SetOpenAt(t time.Time)
    func (m *HPEventMutation) SetPrefecture(s string)
    func (m *HPEventMutation) SetSource(ees enums.HPEventSource)
    func (m *HPEventMutation) SetStartAt(t time.Time)
    func (m *HPEventMutation) SetUpdatedAt(t time.Time)
    func (m *HPEventMutation) SetVenue(s string)
    func (m *HPEventMutation) Source() (r enums.HPEventSource, exists bool)
    func (m *HPEventMutation) StartAt() (r time.Time, exists bool)
    func (m HPEventMutation) Tx() (*Tx, error)
    func (m *HPEventMutation) Type() string
    func (m *HPEventMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPEventMutation) UpdatedAtCleared() bool
    func (m *HPEventMutation) Venue() (r string, exists bool)
    func (m *HPEventMutation) Where(ps ...predicate.HPEvent)
    func (m *HPEventMutation) WhereP(ps ...func(*sql.Selector))
type HPEventOrder
type HPEventOrderField
type HPEventPaginateOption
    func WithHPEventFilter(filter func(*HPEventQuery) (*HPEventQuery, error)) HPEventPaginateOption
    func WithHPEventOrder(order *HPEventOrder) HPEventPaginateOption
type HPEventQuery
    func (heq *HPEventQuery) Aggregate(fns ...AggregateFunc) *HPEventSelect
    func (heq *HPEventQuery) All(ctx context.Context) ([]*HPEvent, error)
    func (heq *HPEventQuery) AllX(ctx context.Context) []*HPEvent
    func (heq *HPEventQuery) Clone() *HPEventQuery
    func (he *HPEventQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPEventQuery, error)
    func (heq *HPEventQuery) Count(ctx context.Context) (int, error)
    func (heq *HPEventQuery) CountX(ctx context.Context) int
    func (heq *HPEventQuery) Exist(ctx context.Context) (bool, error)
    func (heq *HPEventQuery) ExistX(ctx context.Context) bool
    func (heq *HPEventQuery) Filter() *HPEventFilter
    func (heq *HPEventQuery) First(ctx context.Context) (*HPEvent, error)
    func (heq *HPEventQuery) FirstID(ctx context.Context) (id int, err error)
    func (heq *HPEventQuery) FirstIDX(ctx context.Context) int
    func (heq *HPEventQuery) FirstX(ctx context.Context) *HPEvent
    func (heq *HPEventQuery) GroupBy(field string, fields ...string) *HPEventGroupBy
    func (heq *HPEventQuery) IDs(ctx context.Context) (ids []int, err error)
    func (heq *HPEventQuery) IDsX(ctx context.Context) []int
    func (heq *HPEventQuery) Limit(limit int) *HPEventQuery
    func (heq *HPEventQuery) Offset(offset int) *HPEventQuery
    func (heq *HPEventQuery) Only(ctx context.Context) (*HPEvent, error)
    func (heq *HPEventQuery) OnlyID(ctx context.Context) (id int, err error)
    func (heq *HPEventQuery) OnlyIDX(ctx context.Context) int
    func (heq *HPEventQuery) OnlyX(ctx context.Context) *HPEvent
    func (heq *HPEventQuery) Order(o ...hpevent.Order) *HPEventQuery
    func (he *HPEventQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPEventPaginateOption) (*HPEventConnection, error)
    func (heq *HPEventQuery) QueryArtists() *HPArtistQuery
    func (heq *HPEventQuery) QueryHpfcEventTickets() *HPFCEventTicketQuery
    func (heq *HPEventQuery) QueryMembers() *HPMemberQuery
    func (heq *HPEventQuery) Select(fields ...string) *HPEventSelect
    func (heq *HPEventQuery) Unique(unique bool) *HPEventQuery
    func (heq *HPEventQuery) Where(ps ...predicate.HPEvent) *HPEventQuery
    func (heq *HPEventQuery) WithArtists(opts ...func(*HPArtistQuery)) *HPEventQuery
    func (heq *HPEventQuery) WithHpfcEventTickets(opts ...func(*HPFCEventTicketQuery)) *HPEventQuery
    func (heq *HPEventQuery) WithMembers(opts ...func(*HPMemberQuery)) *HPEventQuery
    func (heq *HPEventQuery) WithNamedArtists(name string, opts ...func(*HPArtistQuery)) *HPEventQuery
    func (heq *HPEventQuery) WithNamedHpfcEventTickets(name string, opts ...func(*HPFCEventTicketQuery)) *HPEventQuery
    func (heq *HPEventQuery) WithNamedMembers(name string, opts ...func(*HPMemberQuery)) *HPEventQuery
type HPEventSelect
    func (hes *HPEventSelect) Aggregate(fns ...AggregateFunc) *HPEventSelect
    func (s *HPEventSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPEventSelect) BoolX(ctx context.Context) bool
    func (s *HPEventSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPEventSelect) BoolsX(ctx context.Context) []bool
    func (s *HPEventSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPEventSelect) Float64X(ctx context.Context) float64
    func (s *HPEventSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPEventSelect) Float64sX(ctx context.Context) []float64
    func (s *HPEventSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPEventSelect) IntX(ctx context.Context) int
    func (s *HPEventSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPEventSelect) IntsX(ctx context.Context) []int
    func (hes *HPEventSelect) Scan(ctx context.Context, v any) error
    func (s *HPEventSelect) ScanX(ctx context.Context, v any)
    func (s *HPEventSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPEventSelect) StringX(ctx context.Context) string
    func (s *HPEventSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPEventSelect) StringsX(ctx context.Context) []string
type HPEventUpdate
    func (heu *HPEventUpdate) AddArtistIDs(ids ...int) *HPEventUpdate
    func (heu *HPEventUpdate) AddArtists(h ...*HPArtist) *HPEventUpdate
    func (heu *HPEventUpdate) AddHpfcEventTicketIDs(ids ...int) *HPEventUpdate
    func (heu *HPEventUpdate) AddHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdate
    func (heu *HPEventUpdate) AddMemberIDs(ids ...int) *HPEventUpdate
    func (heu *HPEventUpdate) AddMembers(h ...*HPMember) *HPEventUpdate
    func (heu *HPEventUpdate) AppendDisplayTitles(s []string) *HPEventUpdate
    func (heu *HPEventUpdate) ClearArtists() *HPEventUpdate
    func (heu *HPEventUpdate) ClearHpfcEventTickets() *HPEventUpdate
    func (heu *HPEventUpdate) ClearMembers() *HPEventUpdate
    func (heu *HPEventUpdate) ClearOpenAt() *HPEventUpdate
    func (heu *HPEventUpdate) ClearUpdatedAt() *HPEventUpdate
    func (heu *HPEventUpdate) Exec(ctx context.Context) error
    func (heu *HPEventUpdate) ExecX(ctx context.Context)
    func (heu *HPEventUpdate) Mutation() *HPEventMutation
    func (heu *HPEventUpdate) RemoveArtistIDs(ids ...int) *HPEventUpdate
    func (heu *HPEventUpdate) RemoveArtists(h ...*HPArtist) *HPEventUpdate
    func (heu *HPEventUpdate) RemoveHpfcEventTicketIDs(ids ...int) *HPEventUpdate
    func (heu *HPEventUpdate) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdate
    func (heu *HPEventUpdate) RemoveMemberIDs(ids ...int) *HPEventUpdate
    func (heu *HPEventUpdate) RemoveMembers(h ...*HPMember) *HPEventUpdate
    func (heu *HPEventUpdate) Save(ctx context.Context) (int, error)
    func (heu *HPEventUpdate) SaveX(ctx context.Context) int
    func (heu *HPEventUpdate) SetDisplayTitles(s []string) *HPEventUpdate
    func (heu *HPEventUpdate) SetKey(s string) *HPEventUpdate
    func (heu *HPEventUpdate) SetNillableOpenAt(t *time.Time) *HPEventUpdate
    func (heu *HPEventUpdate) SetNillableSource(ees *enums.HPEventSource) *HPEventUpdate
    func (heu *HPEventUpdate) SetNillableUpdatedAt(t *time.Time) *HPEventUpdate
    func (heu *HPEventUpdate) SetOpenAt(t time.Time) *HPEventUpdate
    func (heu *HPEventUpdate) SetPrefecture(s string) *HPEventUpdate
    func (heu *HPEventUpdate) SetSource(ees enums.HPEventSource) *HPEventUpdate
    func (heu *HPEventUpdate) SetStartAt(t time.Time) *HPEventUpdate
    func (heu *HPEventUpdate) SetUpdatedAt(t time.Time) *HPEventUpdate
    func (heu *HPEventUpdate) SetVenue(s string) *HPEventUpdate
    func (heu *HPEventUpdate) Where(ps ...predicate.HPEvent) *HPEventUpdate
type HPEventUpdateOne
    func (heuo *HPEventUpdateOne) AddArtistIDs(ids ...int) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) AddArtists(h ...*HPArtist) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) AddHpfcEventTicketIDs(ids ...int) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) AddHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) AddMemberIDs(ids ...int) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) AddMembers(h ...*HPMember) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) AppendDisplayTitles(s []string) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) ClearArtists() *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) ClearHpfcEventTickets() *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) ClearMembers() *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) ClearOpenAt() *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) ClearUpdatedAt() *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) Exec(ctx context.Context) error
    func (heuo *HPEventUpdateOne) ExecX(ctx context.Context)
    func (heuo *HPEventUpdateOne) Mutation() *HPEventMutation
    func (heuo *HPEventUpdateOne) RemoveArtistIDs(ids ...int) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) RemoveArtists(h ...*HPArtist) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) RemoveHpfcEventTicketIDs(ids ...int) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) RemoveMemberIDs(ids ...int) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) RemoveMembers(h ...*HPMember) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) Save(ctx context.Context) (*HPEvent, error)
    func (heuo *HPEventUpdateOne) SaveX(ctx context.Context) *HPEvent
    func (heuo *HPEventUpdateOne) Select(field string, fields ...string) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetDisplayTitles(s []string) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetKey(s string) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetNillableOpenAt(t *time.Time) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetNillableSource(ees *enums.HPEventSource) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetOpenAt(t time.Time) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetPrefecture(s string) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetSource(ees enums.HPEventSource) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetStartAt(t time.Time) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetUpdatedAt(t time.Time) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) SetVenue(s string) *HPEventUpdateOne
    func (heuo *HPEventUpdateOne) Where(ps ...predicate.HPEvent) *HPEventUpdateOne
type HPEventUpsert
    func (u *HPEventUpsert) ClearOpenAt() *HPEventUpsert
    func (u *HPEventUpsert) ClearUpdatedAt() *HPEventUpsert
    func (u *HPEventUpsert) SetDisplayTitles(v []string) *HPEventUpsert
    func (u *HPEventUpsert) SetKey(v string) *HPEventUpsert
    func (u *HPEventUpsert) SetOpenAt(v time.Time) *HPEventUpsert
    func (u *HPEventUpsert) SetPrefecture(v string) *HPEventUpsert
    func (u *HPEventUpsert) SetSource(v enums.HPEventSource) *HPEventUpsert
    func (u *HPEventUpsert) SetStartAt(v time.Time) *HPEventUpsert
    func (u *HPEventUpsert) SetUpdatedAt(v time.Time) *HPEventUpsert
    func (u *HPEventUpsert) SetVenue(v string) *HPEventUpsert
    func (u *HPEventUpsert) UpdateDisplayTitles() *HPEventUpsert
    func (u *HPEventUpsert) UpdateKey() *HPEventUpsert
    func (u *HPEventUpsert) UpdateOpenAt() *HPEventUpsert
    func (u *HPEventUpsert) UpdatePrefecture() *HPEventUpsert
    func (u *HPEventUpsert) UpdateSource() *HPEventUpsert
    func (u *HPEventUpsert) UpdateStartAt() *HPEventUpsert
    func (u *HPEventUpsert) UpdateUpdatedAt() *HPEventUpsert
    func (u *HPEventUpsert) UpdateVenue() *HPEventUpsert
type HPEventUpsertBulk
    func (u *HPEventUpsertBulk) ClearOpenAt() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) ClearUpdatedAt() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) DoNothing() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) Exec(ctx context.Context) error
    func (u *HPEventUpsertBulk) ExecX(ctx context.Context)
    func (u *HPEventUpsertBulk) Ignore() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetDisplayTitles(v []string) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetKey(v string) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetOpenAt(v time.Time) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetPrefecture(v string) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetSource(v enums.HPEventSource) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetStartAt(v time.Time) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetUpdatedAt(v time.Time) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) SetVenue(v string) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) Update(set func(*HPEventUpsert)) *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateDisplayTitles() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateKey() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateNewValues() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateOpenAt() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdatePrefecture() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateSource() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateStartAt() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateUpdatedAt() *HPEventUpsertBulk
    func (u *HPEventUpsertBulk) UpdateVenue() *HPEventUpsertBulk
type HPEventUpsertOne
    func (u *HPEventUpsertOne) ClearOpenAt() *HPEventUpsertOne
    func (u *HPEventUpsertOne) ClearUpdatedAt() *HPEventUpsertOne
    func (u *HPEventUpsertOne) DoNothing() *HPEventUpsertOne
    func (u *HPEventUpsertOne) Exec(ctx context.Context) error
    func (u *HPEventUpsertOne) ExecX(ctx context.Context)
    func (u *HPEventUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPEventUpsertOne) IDX(ctx context.Context) int
    func (u *HPEventUpsertOne) Ignore() *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetDisplayTitles(v []string) *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetKey(v string) *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetOpenAt(v time.Time) *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetPrefecture(v string) *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetSource(v enums.HPEventSource) *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetStartAt(v time.Time) *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetUpdatedAt(v time.Time) *HPEventUpsertOne
    func (u *HPEventUpsertOne) SetVenue(v string) *HPEventUpsertOne
    func (u *HPEventUpsertOne) Update(set func(*HPEventUpsert)) *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateDisplayTitles() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateKey() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateNewValues() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateOpenAt() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdatePrefecture() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateSource() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateStartAt() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateUpdatedAt() *HPEventUpsertOne
    func (u *HPEventUpsertOne) UpdateVenue() *HPEventUpsertOne
type HPEvents
type HPFCEventTicket
    func (n *HPFCEventTicket) IsNode()
    func (het *HPFCEventTicket) QueryEvent() *HPEventQuery
    func (het *HPFCEventTicket) QueryUser() *UserQuery
    func (het *HPFCEventTicket) String() string
    func (het *HPFCEventTicket) ToEdge(order *HPFCEventTicketOrder) *HPFCEventTicketEdge
    func (het *HPFCEventTicket) Unwrap() *HPFCEventTicket
    func (het *HPFCEventTicket) Update() *HPFCEventTicketUpdateOne
    func (het *HPFCEventTicket) Value(name string) (ent.Value, error)
type HPFCEventTicketClient
    func NewHPFCEventTicketClient(c config) *HPFCEventTicketClient
    func (c *HPFCEventTicketClient) Create() *HPFCEventTicketCreate
    func (c *HPFCEventTicketClient) CreateBulk(builders ...*HPFCEventTicketCreate) *HPFCEventTicketCreateBulk
    func (c *HPFCEventTicketClient) Delete() *HPFCEventTicketDelete
    func (c *HPFCEventTicketClient) DeleteOne(het *HPFCEventTicket) *HPFCEventTicketDeleteOne
    func (c *HPFCEventTicketClient) DeleteOneID(id int) *HPFCEventTicketDeleteOne
    func (c *HPFCEventTicketClient) Get(ctx context.Context, id int) (*HPFCEventTicket, error)
    func (c *HPFCEventTicketClient) GetX(ctx context.Context, id int) *HPFCEventTicket
    func (c *HPFCEventTicketClient) Hooks() []Hook
    func (c *HPFCEventTicketClient) Intercept(interceptors ...Interceptor)
    func (c *HPFCEventTicketClient) Interceptors() []Interceptor
    func (c *HPFCEventTicketClient) Query() *HPFCEventTicketQuery
    func (c *HPFCEventTicketClient) QueryEvent(het *HPFCEventTicket) *HPEventQuery
    func (c *HPFCEventTicketClient) QueryUser(het *HPFCEventTicket) *UserQuery
    func (c *HPFCEventTicketClient) Update() *HPFCEventTicketUpdate
    func (c *HPFCEventTicketClient) UpdateOne(het *HPFCEventTicket) *HPFCEventTicketUpdateOne
    func (c *HPFCEventTicketClient) UpdateOneID(id int) *HPFCEventTicketUpdateOne
    func (c *HPFCEventTicketClient) Use(hooks ...Hook)
type HPFCEventTicketConnection
type HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) Exec(ctx context.Context) error
    func (hetc *HPFCEventTicketCreate) ExecX(ctx context.Context)
    func (hetc *HPFCEventTicketCreate) Mutation() *HPFCEventTicketMutation
    func (hetc *HPFCEventTicketCreate) OnConflict(opts ...sql.ConflictOption) *HPFCEventTicketUpsertOne
    func (hetc *HPFCEventTicketCreate) OnConflictColumns(columns ...string) *HPFCEventTicketUpsertOne
    func (hetc *HPFCEventTicketCreate) Save(ctx context.Context) (*HPFCEventTicket, error)
    func (hetc *HPFCEventTicketCreate) SaveX(ctx context.Context) *HPFCEventTicket
    func (hetc *HPFCEventTicketCreate) SetApplicationDueDate(t time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetApplicationID(s string) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetApplicationStartDate(t time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetApplicationTitle(s string) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetCreatedAt(t time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetEvent(h *HPEvent) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetEventID(id int) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetFcMemberSha256(s string) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillableApplicationDueDate(t *time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillableApplicationID(s *string) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillableApplicationStartDate(t *time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillableCreatedAt(t *time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillableEventID(id *int) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillablePaymentDueDate(t *time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillablePaymentStartDate(t *time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillableStatus(eefts *enums.HPEventFCTicketStatus) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNillableUpdatedAt(t *time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetNum(i int) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetOwnerUserID(i int) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetPaymentDueDate(t time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetPaymentStartDate(t time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetStatus(eefts enums.HPEventFCTicketStatus) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetUpdatedAt(t time.Time) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetUser(u *User) *HPFCEventTicketCreate
    func (hetc *HPFCEventTicketCreate) SetUserID(id int) *HPFCEventTicketCreate
type HPFCEventTicketCreateBulk
    func (hetcb *HPFCEventTicketCreateBulk) Exec(ctx context.Context) error
    func (hetcb *HPFCEventTicketCreateBulk) ExecX(ctx context.Context)
    func (hetcb *HPFCEventTicketCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPFCEventTicketUpsertBulk
    func (hetcb *HPFCEventTicketCreateBulk) OnConflictColumns(columns ...string) *HPFCEventTicketUpsertBulk
    func (hetcb *HPFCEventTicketCreateBulk) Save(ctx context.Context) ([]*HPFCEventTicket, error)
    func (hetcb *HPFCEventTicketCreateBulk) SaveX(ctx context.Context) []*HPFCEventTicket
type HPFCEventTicketDelete
    func (hetd *HPFCEventTicketDelete) Exec(ctx context.Context) (int, error)
    func (hetd *HPFCEventTicketDelete) ExecX(ctx context.Context) int
    func (hetd *HPFCEventTicketDelete) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketDelete
type HPFCEventTicketDeleteOne
    func (hetdo *HPFCEventTicketDeleteOne) Exec(ctx context.Context) error
    func (hetdo *HPFCEventTicketDeleteOne) ExecX(ctx context.Context)
    func (hetdo *HPFCEventTicketDeleteOne) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketDeleteOne
type HPFCEventTicketEdge
type HPFCEventTicketEdges
    func (e HPFCEventTicketEdges) EventOrErr() (*HPEvent, error)
    func (e HPFCEventTicketEdges) UserOrErr() (*User, error)
type HPFCEventTicketFilter
    func (f *HPFCEventTicketFilter) Where(p entql.P)
    func (f *HPFCEventTicketFilter) WhereApplicationDueDate(p entql.TimeP)
    func (f *HPFCEventTicketFilter) WhereApplicationID(p entql.StringP)
    func (f *HPFCEventTicketFilter) WhereApplicationStartDate(p entql.TimeP)
    func (f *HPFCEventTicketFilter) WhereApplicationTitle(p entql.StringP)
    func (f *HPFCEventTicketFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPFCEventTicketFilter) WhereFcMemberSha256(p entql.StringP)
    func (f *HPFCEventTicketFilter) WhereHasEvent()
    func (f *HPFCEventTicketFilter) WhereHasEventWith(preds ...predicate.HPEvent)
    func (f *HPFCEventTicketFilter) WhereHasUser()
    func (f *HPFCEventTicketFilter) WhereHasUserWith(preds ...predicate.User)
    func (f *HPFCEventTicketFilter) WhereID(p entql.IntP)
    func (f *HPFCEventTicketFilter) WhereNum(p entql.IntP)
    func (f *HPFCEventTicketFilter) WhereOwnerUserID(p entql.IntP)
    func (f *HPFCEventTicketFilter) WherePaymentDueDate(p entql.TimeP)
    func (f *HPFCEventTicketFilter) WherePaymentStartDate(p entql.TimeP)
    func (f *HPFCEventTicketFilter) WhereStatus(p entql.StringP)
    func (f *HPFCEventTicketFilter) WhereUpdatedAt(p entql.TimeP)
type HPFCEventTicketGroupBy
    func (hetgb *HPFCEventTicketGroupBy) Aggregate(fns ...AggregateFunc) *HPFCEventTicketGroupBy
    func (s *HPFCEventTicketGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPFCEventTicketGroupBy) BoolX(ctx context.Context) bool
    func (s *HPFCEventTicketGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPFCEventTicketGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPFCEventTicketGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPFCEventTicketGroupBy) Float64X(ctx context.Context) float64
    func (s *HPFCEventTicketGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPFCEventTicketGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPFCEventTicketGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPFCEventTicketGroupBy) IntX(ctx context.Context) int
    func (s *HPFCEventTicketGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPFCEventTicketGroupBy) IntsX(ctx context.Context) []int
    func (hetgb *HPFCEventTicketGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPFCEventTicketGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPFCEventTicketGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPFCEventTicketGroupBy) StringX(ctx context.Context) string
    func (s *HPFCEventTicketGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPFCEventTicketGroupBy) StringsX(ctx context.Context) []string
type HPFCEventTicketMutation
    func (m *HPFCEventTicketMutation) AddField(name string, value ent.Value) error
    func (m *HPFCEventTicketMutation) AddNum(i int)
    func (m *HPFCEventTicketMutation) AddedEdges() []string
    func (m *HPFCEventTicketMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPFCEventTicketMutation) AddedFields() []string
    func (m *HPFCEventTicketMutation) AddedIDs(name string) []ent.Value
    func (m *HPFCEventTicketMutation) AddedNum() (r int, exists bool)
    func (m *HPFCEventTicketMutation) ApplicationDueDate() (r time.Time, exists bool)
    func (m *HPFCEventTicketMutation) ApplicationDueDateCleared() bool
    func (m *HPFCEventTicketMutation) ApplicationID() (r string, exists bool)
    func (m *HPFCEventTicketMutation) ApplicationIDCleared() bool
    func (m *HPFCEventTicketMutation) ApplicationStartDate() (r time.Time, exists bool)
    func (m *HPFCEventTicketMutation) ApplicationStartDateCleared() bool
    func (m *HPFCEventTicketMutation) ApplicationTitle() (r string, exists bool)
    func (m *HPFCEventTicketMutation) ClearApplicationDueDate()
    func (m *HPFCEventTicketMutation) ClearApplicationID()
    func (m *HPFCEventTicketMutation) ClearApplicationStartDate()
    func (m *HPFCEventTicketMutation) ClearCreatedAt()
    func (m *HPFCEventTicketMutation) ClearEdge(name string) error
    func (m *HPFCEventTicketMutation) ClearEvent()
    func (m *HPFCEventTicketMutation) ClearField(name string) error
    func (m *HPFCEventTicketMutation) ClearPaymentDueDate()
    func (m *HPFCEventTicketMutation) ClearPaymentStartDate()
    func (m *HPFCEventTicketMutation) ClearUpdatedAt()
    func (m *HPFCEventTicketMutation) ClearUser()
    func (m *HPFCEventTicketMutation) ClearedEdges() []string
    func (m *HPFCEventTicketMutation) ClearedFields() []string
    func (m HPFCEventTicketMutation) Client() *Client
    func (m *HPFCEventTicketMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPFCEventTicketMutation) CreatedAtCleared() bool
    func (m *HPFCEventTicketMutation) EdgeCleared(name string) bool
    func (m *HPFCEventTicketMutation) EventCleared() bool
    func (m *HPFCEventTicketMutation) EventID() (id int, exists bool)
    func (m *HPFCEventTicketMutation) EventIDs() (ids []int)
    func (m *HPFCEventTicketMutation) FcMemberSha256() (r string, exists bool)
    func (m *HPFCEventTicketMutation) Field(name string) (ent.Value, bool)
    func (m *HPFCEventTicketMutation) FieldCleared(name string) bool
    func (m *HPFCEventTicketMutation) Fields() []string
    func (m *HPFCEventTicketMutation) Filter() *HPFCEventTicketFilter
    func (m *HPFCEventTicketMutation) ID() (id int, exists bool)
    func (m *HPFCEventTicketMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPFCEventTicketMutation) Num() (r int, exists bool)
    func (m *HPFCEventTicketMutation) OldApplicationDueDate(ctx context.Context) (v *time.Time, err error)
    func (m *HPFCEventTicketMutation) OldApplicationID(ctx context.Context) (v *string, err error)
    func (m *HPFCEventTicketMutation) OldApplicationStartDate(ctx context.Context) (v *time.Time, err error)
    func (m *HPFCEventTicketMutation) OldApplicationTitle(ctx context.Context) (v string, err error)
    func (m *HPFCEventTicketMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPFCEventTicketMutation) OldFcMemberSha256(ctx context.Context) (v string, err error)
    func (m *HPFCEventTicketMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPFCEventTicketMutation) OldNum(ctx context.Context) (v int, err error)
    func (m *HPFCEventTicketMutation) OldOwnerUserID(ctx context.Context) (v int, err error)
    func (m *HPFCEventTicketMutation) OldPaymentDueDate(ctx context.Context) (v *time.Time, err error)
    func (m *HPFCEventTicketMutation) OldPaymentStartDate(ctx context.Context) (v *time.Time, err error)
    func (m *HPFCEventTicketMutation) OldStatus(ctx context.Context) (v enums.HPEventFCTicketStatus, err error)
    func (m *HPFCEventTicketMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPFCEventTicketMutation) Op() Op
    func (m *HPFCEventTicketMutation) OwnerUserID() (r int, exists bool)
    func (m *HPFCEventTicketMutation) PaymentDueDate() (r time.Time, exists bool)
    func (m *HPFCEventTicketMutation) PaymentDueDateCleared() bool
    func (m *HPFCEventTicketMutation) PaymentStartDate() (r time.Time, exists bool)
    func (m *HPFCEventTicketMutation) PaymentStartDateCleared() bool
    func (m *HPFCEventTicketMutation) RemovedEdges() []string
    func (m *HPFCEventTicketMutation) RemovedIDs(name string) []ent.Value
    func (m *HPFCEventTicketMutation) ResetApplicationDueDate()
    func (m *HPFCEventTicketMutation) ResetApplicationID()
    func (m *HPFCEventTicketMutation) ResetApplicationStartDate()
    func (m *HPFCEventTicketMutation) ResetApplicationTitle()
    func (m *HPFCEventTicketMutation) ResetCreatedAt()
    func (m *HPFCEventTicketMutation) ResetEdge(name string) error
    func (m *HPFCEventTicketMutation) ResetEvent()
    func (m *HPFCEventTicketMutation) ResetFcMemberSha256()
    func (m *HPFCEventTicketMutation) ResetField(name string) error
    func (m *HPFCEventTicketMutation) ResetNum()
    func (m *HPFCEventTicketMutation) ResetOwnerUserID()
    func (m *HPFCEventTicketMutation) ResetPaymentDueDate()
    func (m *HPFCEventTicketMutation) ResetPaymentStartDate()
    func (m *HPFCEventTicketMutation) ResetStatus()
    func (m *HPFCEventTicketMutation) ResetUpdatedAt()
    func (m *HPFCEventTicketMutation) ResetUser()
    func (m *HPFCEventTicketMutation) SetApplicationDueDate(t time.Time)
    func (m *HPFCEventTicketMutation) SetApplicationID(s string)
    func (m *HPFCEventTicketMutation) SetApplicationStartDate(t time.Time)
    func (m *HPFCEventTicketMutation) SetApplicationTitle(s string)
    func (m *HPFCEventTicketMutation) SetCreatedAt(t time.Time)
    func (m *HPFCEventTicketMutation) SetEventID(id int)
    func (m *HPFCEventTicketMutation) SetFcMemberSha256(s string)
    func (m *HPFCEventTicketMutation) SetField(name string, value ent.Value) error
    func (m *HPFCEventTicketMutation) SetNum(i int)
    func (m *HPFCEventTicketMutation) SetOp(op Op)
    func (m *HPFCEventTicketMutation) SetOwnerUserID(i int)
    func (m *HPFCEventTicketMutation) SetPaymentDueDate(t time.Time)
    func (m *HPFCEventTicketMutation) SetPaymentStartDate(t time.Time)
    func (m *HPFCEventTicketMutation) SetStatus(eefts enums.HPEventFCTicketStatus)
    func (m *HPFCEventTicketMutation) SetUpdatedAt(t time.Time)
    func (m *HPFCEventTicketMutation) SetUserID(id int)
    func (m *HPFCEventTicketMutation) Status() (r enums.HPEventFCTicketStatus, exists bool)
    func (m HPFCEventTicketMutation) Tx() (*Tx, error)
    func (m *HPFCEventTicketMutation) Type() string
    func (m *HPFCEventTicketMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPFCEventTicketMutation) UpdatedAtCleared() bool
    func (m *HPFCEventTicketMutation) UserCleared() bool
    func (m *HPFCEventTicketMutation) UserID() (id int, exists bool)
    func (m *HPFCEventTicketMutation) UserIDs() (ids []int)
    func (m *HPFCEventTicketMutation) Where(ps ...predicate.HPFCEventTicket)
    func (m *HPFCEventTicketMutation) WhereP(ps ...func(*sql.Selector))
type HPFCEventTicketOrder
type HPFCEventTicketOrderField
type HPFCEventTicketPaginateOption
    func WithHPFCEventTicketFilter(filter func(*HPFCEventTicketQuery) (*HPFCEventTicketQuery, error)) HPFCEventTicketPaginateOption
    func WithHPFCEventTicketOrder(order *HPFCEventTicketOrder) HPFCEventTicketPaginateOption
type HPFCEventTicketQuery
    func (hetq *HPFCEventTicketQuery) Aggregate(fns ...AggregateFunc) *HPFCEventTicketSelect
    func (hetq *HPFCEventTicketQuery) All(ctx context.Context) ([]*HPFCEventTicket, error)
    func (hetq *HPFCEventTicketQuery) AllX(ctx context.Context) []*HPFCEventTicket
    func (hetq *HPFCEventTicketQuery) Clone() *HPFCEventTicketQuery
    func (het *HPFCEventTicketQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPFCEventTicketQuery, error)
    func (hetq *HPFCEventTicketQuery) Count(ctx context.Context) (int, error)
    func (hetq *HPFCEventTicketQuery) CountX(ctx context.Context) int
    func (hetq *HPFCEventTicketQuery) Exist(ctx context.Context) (bool, error)
    func (hetq *HPFCEventTicketQuery) ExistX(ctx context.Context) bool
    func (hetq *HPFCEventTicketQuery) Filter() *HPFCEventTicketFilter
    func (hetq *HPFCEventTicketQuery) First(ctx context.Context) (*HPFCEventTicket, error)
    func (hetq *HPFCEventTicketQuery) FirstID(ctx context.Context) (id int, err error)
    func (hetq *HPFCEventTicketQuery) FirstIDX(ctx context.Context) int
    func (hetq *HPFCEventTicketQuery) FirstX(ctx context.Context) *HPFCEventTicket
    func (hetq *HPFCEventTicketQuery) GroupBy(field string, fields ...string) *HPFCEventTicketGroupBy
    func (hetq *HPFCEventTicketQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hetq *HPFCEventTicketQuery) IDsX(ctx context.Context) []int
    func (hetq *HPFCEventTicketQuery) Limit(limit int) *HPFCEventTicketQuery
    func (hetq *HPFCEventTicketQuery) Offset(offset int) *HPFCEventTicketQuery
    func (hetq *HPFCEventTicketQuery) Only(ctx context.Context) (*HPFCEventTicket, error)
    func (hetq *HPFCEventTicketQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hetq *HPFCEventTicketQuery) OnlyIDX(ctx context.Context) int
    func (hetq *HPFCEventTicketQuery) OnlyX(ctx context.Context) *HPFCEventTicket
    func (hetq *HPFCEventTicketQuery) Order(o ...hpfceventticket.Order) *HPFCEventTicketQuery
    func (het *HPFCEventTicketQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPFCEventTicketPaginateOption) (*HPFCEventTicketConnection, error)
    func (hetq *HPFCEventTicketQuery) QueryEvent() *HPEventQuery
    func (hetq *HPFCEventTicketQuery) QueryUser() *UserQuery
    func (hetq *HPFCEventTicketQuery) Select(fields ...string) *HPFCEventTicketSelect
    func (hetq *HPFCEventTicketQuery) Unique(unique bool) *HPFCEventTicketQuery
    func (hetq *HPFCEventTicketQuery) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketQuery
    func (hetq *HPFCEventTicketQuery) WithEvent(opts ...func(*HPEventQuery)) *HPFCEventTicketQuery
    func (hetq *HPFCEventTicketQuery) WithUser(opts ...func(*UserQuery)) *HPFCEventTicketQuery
type HPFCEventTicketSelect
    func (hets *HPFCEventTicketSelect) Aggregate(fns ...AggregateFunc) *HPFCEventTicketSelect
    func (s *HPFCEventTicketSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPFCEventTicketSelect) BoolX(ctx context.Context) bool
    func (s *HPFCEventTicketSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPFCEventTicketSelect) BoolsX(ctx context.Context) []bool
    func (s *HPFCEventTicketSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPFCEventTicketSelect) Float64X(ctx context.Context) float64
    func (s *HPFCEventTicketSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPFCEventTicketSelect) Float64sX(ctx context.Context) []float64
    func (s *HPFCEventTicketSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPFCEventTicketSelect) IntX(ctx context.Context) int
    func (s *HPFCEventTicketSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPFCEventTicketSelect) IntsX(ctx context.Context) []int
    func (hets *HPFCEventTicketSelect) Scan(ctx context.Context, v any) error
    func (s *HPFCEventTicketSelect) ScanX(ctx context.Context, v any)
    func (s *HPFCEventTicketSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPFCEventTicketSelect) StringX(ctx context.Context) string
    func (s *HPFCEventTicketSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPFCEventTicketSelect) StringsX(ctx context.Context) []string
type HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) AddNum(i int) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearApplicationDueDate() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearApplicationID() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearApplicationStartDate() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearEvent() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearPaymentDueDate() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearPaymentStartDate() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearUpdatedAt() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) ClearUser() *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) Exec(ctx context.Context) error
    func (hetu *HPFCEventTicketUpdate) ExecX(ctx context.Context)
    func (hetu *HPFCEventTicketUpdate) Mutation() *HPFCEventTicketMutation
    func (hetu *HPFCEventTicketUpdate) Save(ctx context.Context) (int, error)
    func (hetu *HPFCEventTicketUpdate) SaveX(ctx context.Context) int
    func (hetu *HPFCEventTicketUpdate) SetApplicationDueDate(t time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetApplicationID(s string) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetApplicationStartDate(t time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetApplicationTitle(s string) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetEvent(h *HPEvent) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetEventID(id int) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetFcMemberSha256(s string) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillableApplicationDueDate(t *time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillableApplicationID(s *string) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillableApplicationStartDate(t *time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillableEventID(id *int) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillablePaymentDueDate(t *time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillablePaymentStartDate(t *time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillableStatus(eefts *enums.HPEventFCTicketStatus) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNillableUpdatedAt(t *time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetNum(i int) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetOwnerUserID(i int) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetPaymentDueDate(t time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetPaymentStartDate(t time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetStatus(eefts enums.HPEventFCTicketStatus) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetUpdatedAt(t time.Time) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetUser(u *User) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) SetUserID(id int) *HPFCEventTicketUpdate
    func (hetu *HPFCEventTicketUpdate) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketUpdate
type HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) AddNum(i int) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearApplicationDueDate() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearApplicationID() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearApplicationStartDate() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearEvent() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearPaymentDueDate() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearPaymentStartDate() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearUpdatedAt() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) ClearUser() *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) Exec(ctx context.Context) error
    func (hetuo *HPFCEventTicketUpdateOne) ExecX(ctx context.Context)
    func (hetuo *HPFCEventTicketUpdateOne) Mutation() *HPFCEventTicketMutation
    func (hetuo *HPFCEventTicketUpdateOne) Save(ctx context.Context) (*HPFCEventTicket, error)
    func (hetuo *HPFCEventTicketUpdateOne) SaveX(ctx context.Context) *HPFCEventTicket
    func (hetuo *HPFCEventTicketUpdateOne) Select(field string, fields ...string) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetApplicationDueDate(t time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetApplicationID(s string) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetApplicationStartDate(t time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetApplicationTitle(s string) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetEvent(h *HPEvent) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetEventID(id int) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetFcMemberSha256(s string) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillableApplicationDueDate(t *time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillableApplicationID(s *string) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillableApplicationStartDate(t *time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillableEventID(id *int) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillablePaymentDueDate(t *time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillablePaymentStartDate(t *time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillableStatus(eefts *enums.HPEventFCTicketStatus) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetNum(i int) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetOwnerUserID(i int) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetPaymentDueDate(t time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetPaymentStartDate(t time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetStatus(eefts enums.HPEventFCTicketStatus) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetUpdatedAt(t time.Time) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetUser(u *User) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) SetUserID(id int) *HPFCEventTicketUpdateOne
    func (hetuo *HPFCEventTicketUpdateOne) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketUpdateOne
type HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) AddNum(v int) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) ClearApplicationDueDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) ClearApplicationID() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) ClearApplicationStartDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) ClearPaymentDueDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) ClearPaymentStartDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) ClearUpdatedAt() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetApplicationDueDate(v time.Time) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetApplicationID(v string) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetApplicationTitle(v string) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetFcMemberSha256(v string) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetNum(v int) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetOwnerUserID(v int) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetPaymentDueDate(v time.Time) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetPaymentStartDate(v time.Time) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetStatus(v enums.HPEventFCTicketStatus) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) SetUpdatedAt(v time.Time) *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateApplicationDueDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateApplicationID() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateApplicationStartDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateApplicationTitle() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateFcMemberSha256() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateNum() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateOwnerUserID() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdatePaymentDueDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdatePaymentStartDate() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateStatus() *HPFCEventTicketUpsert
    func (u *HPFCEventTicketUpsert) UpdateUpdatedAt() *HPFCEventTicketUpsert
type HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) AddNum(v int) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) ClearApplicationDueDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) ClearApplicationID() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) ClearApplicationStartDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) ClearPaymentDueDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) ClearPaymentStartDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) ClearUpdatedAt() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) DoNothing() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) Exec(ctx context.Context) error
    func (u *HPFCEventTicketUpsertBulk) ExecX(ctx context.Context)
    func (u *HPFCEventTicketUpsertBulk) Ignore() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetApplicationDueDate(v time.Time) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetApplicationID(v string) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetApplicationTitle(v string) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetFcMemberSha256(v string) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetNum(v int) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetOwnerUserID(v int) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetPaymentDueDate(v time.Time) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetPaymentStartDate(v time.Time) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetStatus(v enums.HPEventFCTicketStatus) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) SetUpdatedAt(v time.Time) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) Update(set func(*HPFCEventTicketUpsert)) *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateApplicationDueDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateApplicationID() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateApplicationStartDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateApplicationTitle() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateFcMemberSha256() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateNewValues() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateNum() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateOwnerUserID() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdatePaymentDueDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdatePaymentStartDate() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateStatus() *HPFCEventTicketUpsertBulk
    func (u *HPFCEventTicketUpsertBulk) UpdateUpdatedAt() *HPFCEventTicketUpsertBulk
type HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) AddNum(v int) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) ClearApplicationDueDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) ClearApplicationID() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) ClearApplicationStartDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) ClearPaymentDueDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) ClearPaymentStartDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) ClearUpdatedAt() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) DoNothing() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) Exec(ctx context.Context) error
    func (u *HPFCEventTicketUpsertOne) ExecX(ctx context.Context)
    func (u *HPFCEventTicketUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPFCEventTicketUpsertOne) IDX(ctx context.Context) int
    func (u *HPFCEventTicketUpsertOne) Ignore() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetApplicationDueDate(v time.Time) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetApplicationID(v string) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetApplicationTitle(v string) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetFcMemberSha256(v string) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetNum(v int) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetOwnerUserID(v int) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetPaymentDueDate(v time.Time) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetPaymentStartDate(v time.Time) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetStatus(v enums.HPEventFCTicketStatus) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) SetUpdatedAt(v time.Time) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) Update(set func(*HPFCEventTicketUpsert)) *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateApplicationDueDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateApplicationID() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateApplicationStartDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateApplicationTitle() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateFcMemberSha256() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateNewValues() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateNum() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateOwnerUserID() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdatePaymentDueDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdatePaymentStartDate() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateStatus() *HPFCEventTicketUpsertOne
    func (u *HPFCEventTicketUpsertOne) UpdateUpdatedAt() *HPFCEventTicketUpsertOne
type HPFCEventTickets
type HPFeedItem
    func (n *HPFeedItem) IsNode()
    func (hfi *HPFeedItem) NamedTaggedArtists(name string) ([]*HPArtist, error)
    func (hfi *HPFeedItem) NamedTaggedMembers(name string) ([]*HPMember, error)
    func (hfi *HPFeedItem) NamedViewHistories(name string) ([]*HPViewHistory, error)
    func (hfi *HPFeedItem) OwnerArtist(ctx context.Context) (*HPArtist, error)
    func (hfi *HPFeedItem) OwnerMember(ctx context.Context) (*HPMember, error)
    func (hfi *HPFeedItem) QueryOwnerArtist() *HPArtistQuery
    func (hfi *HPFeedItem) QueryOwnerMember() *HPMemberQuery
    func (hfi *HPFeedItem) QueryTaggedArtists() *HPArtistQuery
    func (hfi *HPFeedItem) QueryTaggedMembers() *HPMemberQuery
    func (hfi *HPFeedItem) QueryViewHistories() *HPViewHistoryQuery
    func (hfi *HPFeedItem) String() string
    func (hfi *HPFeedItem) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)
    func (hfi *HPFeedItem) TaggedMembers(ctx context.Context) (result []*HPMember, err error)
    func (hfi *HPFeedItem) ToEdge(order *HPFeedItemOrder) *HPFeedItemEdge
    func (hfi *HPFeedItem) Unwrap() *HPFeedItem
    func (hfi *HPFeedItem) Update() *HPFeedItemUpdateOne
    func (hfi *HPFeedItem) Value(name string) (ent.Value, error)
type HPFeedItemClient
    func NewHPFeedItemClient(c config) *HPFeedItemClient
    func (c *HPFeedItemClient) Create() *HPFeedItemCreate
    func (c *HPFeedItemClient) CreateBulk(builders ...*HPFeedItemCreate) *HPFeedItemCreateBulk
    func (c *HPFeedItemClient) Delete() *HPFeedItemDelete
    func (c *HPFeedItemClient) DeleteOne(hfi *HPFeedItem) *HPFeedItemDeleteOne
    func (c *HPFeedItemClient) DeleteOneID(id int) *HPFeedItemDeleteOne
    func (c *HPFeedItemClient) Get(ctx context.Context, id int) (*HPFeedItem, error)
    func (c *HPFeedItemClient) GetX(ctx context.Context, id int) *HPFeedItem
    func (c *HPFeedItemClient) Hooks() []Hook
    func (c *HPFeedItemClient) Intercept(interceptors ...Interceptor)
    func (c *HPFeedItemClient) Interceptors() []Interceptor
    func (c *HPFeedItemClient) Query() *HPFeedItemQuery
    func (c *HPFeedItemClient) QueryOwnerArtist(hfi *HPFeedItem) *HPArtistQuery
    func (c *HPFeedItemClient) QueryOwnerMember(hfi *HPFeedItem) *HPMemberQuery
    func (c *HPFeedItemClient) QueryTaggedArtists(hfi *HPFeedItem) *HPArtistQuery
    func (c *HPFeedItemClient) QueryTaggedMembers(hfi *HPFeedItem) *HPMemberQuery
    func (c *HPFeedItemClient) QueryViewHistories(hfi *HPFeedItem) *HPViewHistoryQuery
    func (c *HPFeedItemClient) Update() *HPFeedItemUpdate
    func (c *HPFeedItemClient) UpdateOne(hfi *HPFeedItem) *HPFeedItemUpdateOne
    func (c *HPFeedItemClient) UpdateOneID(id int) *HPFeedItemUpdateOne
    func (c *HPFeedItemClient) Use(hooks ...Hook)
type HPFeedItemConnection
type HPFeedItemCreate
    func (hfic *HPFeedItemCreate) AddTaggedArtistIDs(ids ...int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) AddTaggedArtists(h ...*HPArtist) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) AddTaggedMemberIDs(ids ...int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) AddTaggedMembers(h ...*HPMember) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) AddViewHistories(h ...*HPViewHistory) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) AddViewHistoryIDs(ids ...int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) Exec(ctx context.Context) error
    func (hfic *HPFeedItemCreate) ExecX(ctx context.Context)
    func (hfic *HPFeedItemCreate) Mutation() *HPFeedItemMutation
    func (hfic *HPFeedItemCreate) OnConflict(opts ...sql.ConflictOption) *HPFeedItemUpsertOne
    func (hfic *HPFeedItemCreate) OnConflictColumns(columns ...string) *HPFeedItemUpsertOne
    func (hfic *HPFeedItemCreate) Save(ctx context.Context) (*HPFeedItem, error)
    func (hfic *HPFeedItemCreate) SaveX(ctx context.Context) *HPFeedItem
    func (hfic *HPFeedItemCreate) SetAssetType(eat enums.HPAssetType) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetCreatedAt(t time.Time) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetImageURL(s string) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetMedia(j []jsonfields.Media) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetNillableAssetType(eat *enums.HPAssetType) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetNillableCreatedAt(t *time.Time) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetNillableImageURL(s *string) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetNillableOwnerArtistID(i *int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetNillableOwnerMemberID(i *int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetNillableUpdatedAt(t *time.Time) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetOwnerArtist(h *HPArtist) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetOwnerArtistID(i int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetOwnerMember(h *HPMember) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetOwnerMemberID(i int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetPostAt(t time.Time) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetSourceID(i int) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetSourceURL(s string) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetTitle(s string) *HPFeedItemCreate
    func (hfic *HPFeedItemCreate) SetUpdatedAt(t time.Time) *HPFeedItemCreate
type HPFeedItemCreateBulk
    func (hficb *HPFeedItemCreateBulk) Exec(ctx context.Context) error
    func (hficb *HPFeedItemCreateBulk) ExecX(ctx context.Context)
    func (hficb *HPFeedItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPFeedItemUpsertBulk
    func (hficb *HPFeedItemCreateBulk) OnConflictColumns(columns ...string) *HPFeedItemUpsertBulk
    func (hficb *HPFeedItemCreateBulk) Save(ctx context.Context) ([]*HPFeedItem, error)
    func (hficb *HPFeedItemCreateBulk) SaveX(ctx context.Context) []*HPFeedItem
type HPFeedItemDelete
    func (hfid *HPFeedItemDelete) Exec(ctx context.Context) (int, error)
    func (hfid *HPFeedItemDelete) ExecX(ctx context.Context) int
    func (hfid *HPFeedItemDelete) Where(ps ...predicate.HPFeedItem) *HPFeedItemDelete
type HPFeedItemDeleteOne
    func (hfido *HPFeedItemDeleteOne) Exec(ctx context.Context) error
    func (hfido *HPFeedItemDeleteOne) ExecX(ctx context.Context)
    func (hfido *HPFeedItemDeleteOne) Where(ps ...predicate.HPFeedItem) *HPFeedItemDeleteOne
type HPFeedItemEdge
type HPFeedItemEdges
    func (e HPFeedItemEdges) OwnerArtistOrErr() (*HPArtist, error)
    func (e HPFeedItemEdges) OwnerMemberOrErr() (*HPMember, error)
    func (e HPFeedItemEdges) TaggedArtistsOrErr() ([]*HPArtist, error)
    func (e HPFeedItemEdges) TaggedMembersOrErr() ([]*HPMember, error)
    func (e HPFeedItemEdges) ViewHistoriesOrErr() ([]*HPViewHistory, error)
type HPFeedItemFilter
    func (f *HPFeedItemFilter) Where(p entql.P)
    func (f *HPFeedItemFilter) WhereAssetType(p entql.StringP)
    func (f *HPFeedItemFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPFeedItemFilter) WhereHasOwnerArtist()
    func (f *HPFeedItemFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)
    func (f *HPFeedItemFilter) WhereHasOwnerMember()
    func (f *HPFeedItemFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)
    func (f *HPFeedItemFilter) WhereHasTaggedArtists()
    func (f *HPFeedItemFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)
    func (f *HPFeedItemFilter) WhereHasTaggedMembers()
    func (f *HPFeedItemFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)
    func (f *HPFeedItemFilter) WhereHasViewHistories()
    func (f *HPFeedItemFilter) WhereHasViewHistoriesWith(preds ...predicate.HPViewHistory)
    func (f *HPFeedItemFilter) WhereID(p entql.IntP)
    func (f *HPFeedItemFilter) WhereImageURL(p entql.StringP)
    func (f *HPFeedItemFilter) WhereMedia(p entql.BytesP)
    func (f *HPFeedItemFilter) WhereOwnerArtistID(p entql.IntP)
    func (f *HPFeedItemFilter) WhereOwnerMemberID(p entql.IntP)
    func (f *HPFeedItemFilter) WherePostAt(p entql.TimeP)
    func (f *HPFeedItemFilter) WhereSourceID(p entql.IntP)
    func (f *HPFeedItemFilter) WhereSourceURL(p entql.StringP)
    func (f *HPFeedItemFilter) WhereTitle(p entql.StringP)
    func (f *HPFeedItemFilter) WhereUpdatedAt(p entql.TimeP)
type HPFeedItemGroupBy
    func (hfigb *HPFeedItemGroupBy) Aggregate(fns ...AggregateFunc) *HPFeedItemGroupBy
    func (s *HPFeedItemGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPFeedItemGroupBy) BoolX(ctx context.Context) bool
    func (s *HPFeedItemGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPFeedItemGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPFeedItemGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPFeedItemGroupBy) Float64X(ctx context.Context) float64
    func (s *HPFeedItemGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPFeedItemGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPFeedItemGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPFeedItemGroupBy) IntX(ctx context.Context) int
    func (s *HPFeedItemGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPFeedItemGroupBy) IntsX(ctx context.Context) []int
    func (hfigb *HPFeedItemGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPFeedItemGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPFeedItemGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPFeedItemGroupBy) StringX(ctx context.Context) string
    func (s *HPFeedItemGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPFeedItemGroupBy) StringsX(ctx context.Context) []string
type HPFeedItemMutation
    func (m *HPFeedItemMutation) AddField(name string, value ent.Value) error
    func (m *HPFeedItemMutation) AddSourceID(i int)
    func (m *HPFeedItemMutation) AddTaggedArtistIDs(ids ...int)
    func (m *HPFeedItemMutation) AddTaggedMemberIDs(ids ...int)
    func (m *HPFeedItemMutation) AddViewHistoryIDs(ids ...int)
    func (m *HPFeedItemMutation) AddedEdges() []string
    func (m *HPFeedItemMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPFeedItemMutation) AddedFields() []string
    func (m *HPFeedItemMutation) AddedIDs(name string) []ent.Value
    func (m *HPFeedItemMutation) AddedSourceID() (r int, exists bool)
    func (m *HPFeedItemMutation) AppendMedia(j []jsonfields.Media)
    func (m *HPFeedItemMutation) AppendedMedia() ([]jsonfields.Media, bool)
    func (m *HPFeedItemMutation) AssetType() (r enums.HPAssetType, exists bool)
    func (m *HPFeedItemMutation) ClearCreatedAt()
    func (m *HPFeedItemMutation) ClearEdge(name string) error
    func (m *HPFeedItemMutation) ClearField(name string) error
    func (m *HPFeedItemMutation) ClearImageURL()
    func (m *HPFeedItemMutation) ClearOwnerArtist()
    func (m *HPFeedItemMutation) ClearOwnerArtistID()
    func (m *HPFeedItemMutation) ClearOwnerMember()
    func (m *HPFeedItemMutation) ClearOwnerMemberID()
    func (m *HPFeedItemMutation) ClearTaggedArtists()
    func (m *HPFeedItemMutation) ClearTaggedMembers()
    func (m *HPFeedItemMutation) ClearUpdatedAt()
    func (m *HPFeedItemMutation) ClearViewHistories()
    func (m *HPFeedItemMutation) ClearedEdges() []string
    func (m *HPFeedItemMutation) ClearedFields() []string
    func (m HPFeedItemMutation) Client() *Client
    func (m *HPFeedItemMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPFeedItemMutation) CreatedAtCleared() bool
    func (m *HPFeedItemMutation) EdgeCleared(name string) bool
    func (m *HPFeedItemMutation) Field(name string) (ent.Value, bool)
    func (m *HPFeedItemMutation) FieldCleared(name string) bool
    func (m *HPFeedItemMutation) Fields() []string
    func (m *HPFeedItemMutation) Filter() *HPFeedItemFilter
    func (m *HPFeedItemMutation) ID() (id int, exists bool)
    func (m *HPFeedItemMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPFeedItemMutation) ImageURL() (r string, exists bool)
    func (m *HPFeedItemMutation) ImageURLCleared() bool
    func (m *HPFeedItemMutation) Media() (r []jsonfields.Media, exists bool)
    func (m *HPFeedItemMutation) OldAssetType(ctx context.Context) (v enums.HPAssetType, err error)
    func (m *HPFeedItemMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPFeedItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPFeedItemMutation) OldImageURL(ctx context.Context) (v *string, err error)
    func (m *HPFeedItemMutation) OldMedia(ctx context.Context) (v []jsonfields.Media, err error)
    func (m *HPFeedItemMutation) OldOwnerArtistID(ctx context.Context) (v *int, err error)
    func (m *HPFeedItemMutation) OldOwnerMemberID(ctx context.Context) (v *int, err error)
    func (m *HPFeedItemMutation) OldPostAt(ctx context.Context) (v time.Time, err error)
    func (m *HPFeedItemMutation) OldSourceID(ctx context.Context) (v int, err error)
    func (m *HPFeedItemMutation) OldSourceURL(ctx context.Context) (v string, err error)
    func (m *HPFeedItemMutation) OldTitle(ctx context.Context) (v string, err error)
    func (m *HPFeedItemMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPFeedItemMutation) Op() Op
    func (m *HPFeedItemMutation) OwnerArtistCleared() bool
    func (m *HPFeedItemMutation) OwnerArtistID() (r int, exists bool)
    func (m *HPFeedItemMutation) OwnerArtistIDCleared() bool
    func (m *HPFeedItemMutation) OwnerArtistIDs() (ids []int)
    func (m *HPFeedItemMutation) OwnerMemberCleared() bool
    func (m *HPFeedItemMutation) OwnerMemberID() (r int, exists bool)
    func (m *HPFeedItemMutation) OwnerMemberIDCleared() bool
    func (m *HPFeedItemMutation) OwnerMemberIDs() (ids []int)
    func (m *HPFeedItemMutation) PostAt() (r time.Time, exists bool)
    func (m *HPFeedItemMutation) RemoveTaggedArtistIDs(ids ...int)
    func (m *HPFeedItemMutation) RemoveTaggedMemberIDs(ids ...int)
    func (m *HPFeedItemMutation) RemoveViewHistoryIDs(ids ...int)
    func (m *HPFeedItemMutation) RemovedEdges() []string
    func (m *HPFeedItemMutation) RemovedIDs(name string) []ent.Value
    func (m *HPFeedItemMutation) RemovedTaggedArtistsIDs() (ids []int)
    func (m *HPFeedItemMutation) RemovedTaggedMembersIDs() (ids []int)
    func (m *HPFeedItemMutation) RemovedViewHistoriesIDs() (ids []int)
    func (m *HPFeedItemMutation) ResetAssetType()
    func (m *HPFeedItemMutation) ResetCreatedAt()
    func (m *HPFeedItemMutation) ResetEdge(name string) error
    func (m *HPFeedItemMutation) ResetField(name string) error
    func (m *HPFeedItemMutation) ResetImageURL()
    func (m *HPFeedItemMutation) ResetMedia()
    func (m *HPFeedItemMutation) ResetOwnerArtist()
    func (m *HPFeedItemMutation) ResetOwnerArtistID()
    func (m *HPFeedItemMutation) ResetOwnerMember()
    func (m *HPFeedItemMutation) ResetOwnerMemberID()
    func (m *HPFeedItemMutation) ResetPostAt()
    func (m *HPFeedItemMutation) ResetSourceID()
    func (m *HPFeedItemMutation) ResetSourceURL()
    func (m *HPFeedItemMutation) ResetTaggedArtists()
    func (m *HPFeedItemMutation) ResetTaggedMembers()
    func (m *HPFeedItemMutation) ResetTitle()
    func (m *HPFeedItemMutation) ResetUpdatedAt()
    func (m *HPFeedItemMutation) ResetViewHistories()
    func (m *HPFeedItemMutation) SetAssetType(eat enums.HPAssetType)
    func (m *HPFeedItemMutation) SetCreatedAt(t time.Time)
    func (m *HPFeedItemMutation) SetField(name string, value ent.Value) error
    func (m *HPFeedItemMutation) SetImageURL(s string)
    func (m *HPFeedItemMutation) SetMedia(j []jsonfields.Media)
    func (m *HPFeedItemMutation) SetOp(op Op)
    func (m *HPFeedItemMutation) SetOwnerArtistID(i int)
    func (m *HPFeedItemMutation) SetOwnerMemberID(i int)
    func (m *HPFeedItemMutation) SetPostAt(t time.Time)
    func (m *HPFeedItemMutation) SetSourceID(i int)
    func (m *HPFeedItemMutation) SetSourceURL(s string)
    func (m *HPFeedItemMutation) SetTitle(s string)
    func (m *HPFeedItemMutation) SetUpdatedAt(t time.Time)
    func (m *HPFeedItemMutation) SourceID() (r int, exists bool)
    func (m *HPFeedItemMutation) SourceURL() (r string, exists bool)
    func (m *HPFeedItemMutation) TaggedArtistsCleared() bool
    func (m *HPFeedItemMutation) TaggedArtistsIDs() (ids []int)
    func (m *HPFeedItemMutation) TaggedMembersCleared() bool
    func (m *HPFeedItemMutation) TaggedMembersIDs() (ids []int)
    func (m *HPFeedItemMutation) Title() (r string, exists bool)
    func (m HPFeedItemMutation) Tx() (*Tx, error)
    func (m *HPFeedItemMutation) Type() string
    func (m *HPFeedItemMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPFeedItemMutation) UpdatedAtCleared() bool
    func (m *HPFeedItemMutation) ViewHistoriesCleared() bool
    func (m *HPFeedItemMutation) ViewHistoriesIDs() (ids []int)
    func (m *HPFeedItemMutation) Where(ps ...predicate.HPFeedItem)
    func (m *HPFeedItemMutation) WhereP(ps ...func(*sql.Selector))
type HPFeedItemOrder
type HPFeedItemOrderField
    func (f HPFeedItemOrderField) MarshalGQL(w io.Writer)
    func (f HPFeedItemOrderField) String() string
    func (f *HPFeedItemOrderField) UnmarshalGQL(v interface{}) error
type HPFeedItemPaginateOption
    func WithHPFeedItemFilter(filter func(*HPFeedItemQuery) (*HPFeedItemQuery, error)) HPFeedItemPaginateOption
    func WithHPFeedItemOrder(order *HPFeedItemOrder) HPFeedItemPaginateOption
type HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) Aggregate(fns ...AggregateFunc) *HPFeedItemSelect
    func (hfiq *HPFeedItemQuery) All(ctx context.Context) ([]*HPFeedItem, error)
    func (hfiq *HPFeedItemQuery) AllX(ctx context.Context) []*HPFeedItem
    func (hfiq *HPFeedItemQuery) Clone() *HPFeedItemQuery
    func (hfi *HPFeedItemQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPFeedItemQuery, error)
    func (hfiq *HPFeedItemQuery) Count(ctx context.Context) (int, error)
    func (hfiq *HPFeedItemQuery) CountX(ctx context.Context) int
    func (hfiq *HPFeedItemQuery) Exist(ctx context.Context) (bool, error)
    func (hfiq *HPFeedItemQuery) ExistX(ctx context.Context) bool
    func (hfiq *HPFeedItemQuery) Filter() *HPFeedItemFilter
    func (hfiq *HPFeedItemQuery) First(ctx context.Context) (*HPFeedItem, error)
    func (hfiq *HPFeedItemQuery) FirstID(ctx context.Context) (id int, err error)
    func (hfiq *HPFeedItemQuery) FirstIDX(ctx context.Context) int
    func (hfiq *HPFeedItemQuery) FirstX(ctx context.Context) *HPFeedItem
    func (hfiq *HPFeedItemQuery) GroupBy(field string, fields ...string) *HPFeedItemGroupBy
    func (hfiq *HPFeedItemQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hfiq *HPFeedItemQuery) IDsX(ctx context.Context) []int
    func (hfiq *HPFeedItemQuery) Limit(limit int) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) Offset(offset int) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) Only(ctx context.Context) (*HPFeedItem, error)
    func (hfiq *HPFeedItemQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hfiq *HPFeedItemQuery) OnlyIDX(ctx context.Context) int
    func (hfiq *HPFeedItemQuery) OnlyX(ctx context.Context) *HPFeedItem
    func (hfiq *HPFeedItemQuery) Order(o ...hpfeeditem.Order) *HPFeedItemQuery
    func (hfi *HPFeedItemQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPFeedItemPaginateOption) (*HPFeedItemConnection, error)
    func (hfiq *HPFeedItemQuery) QueryOwnerArtist() *HPArtistQuery
    func (hfiq *HPFeedItemQuery) QueryOwnerMember() *HPMemberQuery
    func (hfiq *HPFeedItemQuery) QueryTaggedArtists() *HPArtistQuery
    func (hfiq *HPFeedItemQuery) QueryTaggedMembers() *HPMemberQuery
    func (hfiq *HPFeedItemQuery) QueryViewHistories() *HPViewHistoryQuery
    func (hfiq *HPFeedItemQuery) Select(fields ...string) *HPFeedItemSelect
    func (hfiq *HPFeedItemQuery) Unique(unique bool) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) Where(ps ...predicate.HPFeedItem) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithNamedViewHistories(name string, opts ...func(*HPViewHistoryQuery)) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPFeedItemQuery
    func (hfiq *HPFeedItemQuery) WithViewHistories(opts ...func(*HPViewHistoryQuery)) *HPFeedItemQuery
type HPFeedItemSelect
    func (hfis *HPFeedItemSelect) Aggregate(fns ...AggregateFunc) *HPFeedItemSelect
    func (s *HPFeedItemSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPFeedItemSelect) BoolX(ctx context.Context) bool
    func (s *HPFeedItemSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPFeedItemSelect) BoolsX(ctx context.Context) []bool
    func (s *HPFeedItemSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPFeedItemSelect) Float64X(ctx context.Context) float64
    func (s *HPFeedItemSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPFeedItemSelect) Float64sX(ctx context.Context) []float64
    func (s *HPFeedItemSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPFeedItemSelect) IntX(ctx context.Context) int
    func (s *HPFeedItemSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPFeedItemSelect) IntsX(ctx context.Context) []int
    func (hfis *HPFeedItemSelect) Scan(ctx context.Context, v any) error
    func (s *HPFeedItemSelect) ScanX(ctx context.Context, v any)
    func (s *HPFeedItemSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPFeedItemSelect) StringX(ctx context.Context) string
    func (s *HPFeedItemSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPFeedItemSelect) StringsX(ctx context.Context) []string
type HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AddSourceID(i int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AddTaggedArtistIDs(ids ...int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AddTaggedArtists(h ...*HPArtist) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AddTaggedMemberIDs(ids ...int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AddTaggedMembers(h ...*HPMember) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AddViewHistories(h ...*HPViewHistory) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AddViewHistoryIDs(ids ...int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) AppendMedia(j []jsonfields.Media) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearImageURL() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearOwnerArtist() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearOwnerArtistID() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearOwnerMember() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearOwnerMemberID() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearTaggedArtists() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearTaggedMembers() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearUpdatedAt() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) ClearViewHistories() *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) Exec(ctx context.Context) error
    func (hfiu *HPFeedItemUpdate) ExecX(ctx context.Context)
    func (hfiu *HPFeedItemUpdate) Mutation() *HPFeedItemMutation
    func (hfiu *HPFeedItemUpdate) RemoveTaggedArtistIDs(ids ...int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) RemoveTaggedMemberIDs(ids ...int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) RemoveTaggedMembers(h ...*HPMember) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) RemoveViewHistories(h ...*HPViewHistory) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) RemoveViewHistoryIDs(ids ...int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) Save(ctx context.Context) (int, error)
    func (hfiu *HPFeedItemUpdate) SaveX(ctx context.Context) int
    func (hfiu *HPFeedItemUpdate) SetAssetType(eat enums.HPAssetType) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetImageURL(s string) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetMedia(j []jsonfields.Media) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetNillableAssetType(eat *enums.HPAssetType) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetNillableImageURL(s *string) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetNillableOwnerArtistID(i *int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetNillableOwnerMemberID(i *int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetNillableUpdatedAt(t *time.Time) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetOwnerArtist(h *HPArtist) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetOwnerArtistID(i int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetOwnerMember(h *HPMember) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetOwnerMemberID(i int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetPostAt(t time.Time) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetSourceID(i int) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetSourceURL(s string) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetTitle(s string) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) SetUpdatedAt(t time.Time) *HPFeedItemUpdate
    func (hfiu *HPFeedItemUpdate) Where(ps ...predicate.HPFeedItem) *HPFeedItemUpdate
type HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AddSourceID(i int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AddTaggedArtistIDs(ids ...int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AddTaggedMemberIDs(ids ...int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AddTaggedMembers(h ...*HPMember) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AddViewHistories(h ...*HPViewHistory) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AddViewHistoryIDs(ids ...int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) AppendMedia(j []jsonfields.Media) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearImageURL() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearOwnerArtist() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearOwnerArtistID() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearOwnerMember() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearOwnerMemberID() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearTaggedArtists() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearTaggedMembers() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearUpdatedAt() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) ClearViewHistories() *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) Exec(ctx context.Context) error
    func (hfiuo *HPFeedItemUpdateOne) ExecX(ctx context.Context)
    func (hfiuo *HPFeedItemUpdateOne) Mutation() *HPFeedItemMutation
    func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) RemoveViewHistories(h ...*HPViewHistory) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) RemoveViewHistoryIDs(ids ...int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) Save(ctx context.Context) (*HPFeedItem, error)
    func (hfiuo *HPFeedItemUpdateOne) SaveX(ctx context.Context) *HPFeedItem
    func (hfiuo *HPFeedItemUpdateOne) Select(field string, fields ...string) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetAssetType(eat enums.HPAssetType) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetImageURL(s string) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetMedia(j []jsonfields.Media) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetNillableAssetType(eat *enums.HPAssetType) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetNillableImageURL(s *string) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetNillableOwnerArtistID(i *int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetNillableOwnerMemberID(i *int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetOwnerArtist(h *HPArtist) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetOwnerArtistID(i int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetOwnerMember(h *HPMember) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetOwnerMemberID(i int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetPostAt(t time.Time) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetSourceID(i int) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetSourceURL(s string) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetTitle(s string) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) SetUpdatedAt(t time.Time) *HPFeedItemUpdateOne
    func (hfiuo *HPFeedItemUpdateOne) Where(ps ...predicate.HPFeedItem) *HPFeedItemUpdateOne
type HPFeedItemUpsert
    func (u *HPFeedItemUpsert) AddSourceID(v int) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) ClearImageURL() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) ClearOwnerArtistID() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) ClearOwnerMemberID() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) ClearUpdatedAt() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetAssetType(v enums.HPAssetType) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetImageURL(v string) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetMedia(v []jsonfields.Media) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetOwnerArtistID(v int) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetOwnerMemberID(v int) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetPostAt(v time.Time) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetSourceID(v int) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetSourceURL(v string) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetTitle(v string) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) SetUpdatedAt(v time.Time) *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateAssetType() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateImageURL() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateMedia() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateOwnerArtistID() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateOwnerMemberID() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdatePostAt() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateSourceID() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateSourceURL() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateTitle() *HPFeedItemUpsert
    func (u *HPFeedItemUpsert) UpdateUpdatedAt() *HPFeedItemUpsert
type HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) AddSourceID(v int) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) ClearImageURL() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) ClearOwnerArtistID() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) ClearOwnerMemberID() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) ClearUpdatedAt() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) DoNothing() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) Exec(ctx context.Context) error
    func (u *HPFeedItemUpsertBulk) ExecX(ctx context.Context)
    func (u *HPFeedItemUpsertBulk) Ignore() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetAssetType(v enums.HPAssetType) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetImageURL(v string) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetMedia(v []jsonfields.Media) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetOwnerArtistID(v int) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetOwnerMemberID(v int) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetPostAt(v time.Time) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetSourceID(v int) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetSourceURL(v string) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetTitle(v string) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) SetUpdatedAt(v time.Time) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) Update(set func(*HPFeedItemUpsert)) *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateAssetType() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateImageURL() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateMedia() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateNewValues() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateOwnerArtistID() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateOwnerMemberID() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdatePostAt() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateSourceID() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateSourceURL() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateTitle() *HPFeedItemUpsertBulk
    func (u *HPFeedItemUpsertBulk) UpdateUpdatedAt() *HPFeedItemUpsertBulk
type HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) AddSourceID(v int) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) ClearImageURL() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) ClearOwnerArtistID() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) ClearOwnerMemberID() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) ClearUpdatedAt() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) DoNothing() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) Exec(ctx context.Context) error
    func (u *HPFeedItemUpsertOne) ExecX(ctx context.Context)
    func (u *HPFeedItemUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPFeedItemUpsertOne) IDX(ctx context.Context) int
    func (u *HPFeedItemUpsertOne) Ignore() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetAssetType(v enums.HPAssetType) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetImageURL(v string) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetMedia(v []jsonfields.Media) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetOwnerArtistID(v int) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetOwnerMemberID(v int) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetPostAt(v time.Time) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetSourceID(v int) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetSourceURL(v string) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetTitle(v string) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) SetUpdatedAt(v time.Time) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) Update(set func(*HPFeedItemUpsert)) *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateAssetType() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateImageURL() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateMedia() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateNewValues() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateOwnerArtistID() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateOwnerMemberID() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdatePostAt() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateSourceID() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateSourceURL() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateTitle() *HPFeedItemUpsertOne
    func (u *HPFeedItemUpsertOne) UpdateUpdatedAt() *HPFeedItemUpsertOne
type HPFeedItems
type HPFollow
    func (n *HPFollow) IsNode()
    func (hf *HPFollow) Member(ctx context.Context) (*HPMember, error)
    func (hf *HPFollow) QueryMember() *HPMemberQuery
    func (hf *HPFollow) QueryUser() *UserQuery
    func (hf *HPFollow) String() string
    func (hf *HPFollow) ToEdge(order *HPFollowOrder) *HPFollowEdge
    func (hf *HPFollow) Unwrap() *HPFollow
    func (hf *HPFollow) Update() *HPFollowUpdateOne
    func (hf *HPFollow) User(ctx context.Context) (*User, error)
    func (hf *HPFollow) Value(name string) (ent.Value, error)
type HPFollowClient
    func NewHPFollowClient(c config) *HPFollowClient
    func (c *HPFollowClient) Create() *HPFollowCreate
    func (c *HPFollowClient) CreateBulk(builders ...*HPFollowCreate) *HPFollowCreateBulk
    func (c *HPFollowClient) Delete() *HPFollowDelete
    func (c *HPFollowClient) DeleteOne(hf *HPFollow) *HPFollowDeleteOne
    func (c *HPFollowClient) DeleteOneID(id int) *HPFollowDeleteOne
    func (c *HPFollowClient) Get(ctx context.Context, id int) (*HPFollow, error)
    func (c *HPFollowClient) GetX(ctx context.Context, id int) *HPFollow
    func (c *HPFollowClient) Hooks() []Hook
    func (c *HPFollowClient) Intercept(interceptors ...Interceptor)
    func (c *HPFollowClient) Interceptors() []Interceptor
    func (c *HPFollowClient) Query() *HPFollowQuery
    func (c *HPFollowClient) QueryMember(hf *HPFollow) *HPMemberQuery
    func (c *HPFollowClient) QueryUser(hf *HPFollow) *UserQuery
    func (c *HPFollowClient) Update() *HPFollowUpdate
    func (c *HPFollowClient) UpdateOne(hf *HPFollow) *HPFollowUpdateOne
    func (c *HPFollowClient) UpdateOneID(id int) *HPFollowUpdateOne
    func (c *HPFollowClient) Use(hooks ...Hook)
type HPFollowConnection
type HPFollowCreate
    func (hfc *HPFollowCreate) Exec(ctx context.Context) error
    func (hfc *HPFollowCreate) ExecX(ctx context.Context)
    func (hfc *HPFollowCreate) Mutation() *HPFollowMutation
    func (hfc *HPFollowCreate) OnConflict(opts ...sql.ConflictOption) *HPFollowUpsertOne
    func (hfc *HPFollowCreate) OnConflictColumns(columns ...string) *HPFollowUpsertOne
    func (hfc *HPFollowCreate) Save(ctx context.Context) (*HPFollow, error)
    func (hfc *HPFollowCreate) SaveX(ctx context.Context) *HPFollow
    func (hfc *HPFollowCreate) SetCreatedAt(t time.Time) *HPFollowCreate
    func (hfc *HPFollowCreate) SetMember(h *HPMember) *HPFollowCreate
    func (hfc *HPFollowCreate) SetMemberID(id int) *HPFollowCreate
    func (hfc *HPFollowCreate) SetNillableCreatedAt(t *time.Time) *HPFollowCreate
    func (hfc *HPFollowCreate) SetNillableType(eft *enums.HPFollowType) *HPFollowCreate
    func (hfc *HPFollowCreate) SetNillableUpdatedAt(t *time.Time) *HPFollowCreate
    func (hfc *HPFollowCreate) SetType(eft enums.HPFollowType) *HPFollowCreate
    func (hfc *HPFollowCreate) SetUpdatedAt(t time.Time) *HPFollowCreate
    func (hfc *HPFollowCreate) SetUser(u *User) *HPFollowCreate
    func (hfc *HPFollowCreate) SetUserID(id int) *HPFollowCreate
type HPFollowCreateBulk
    func (hfcb *HPFollowCreateBulk) Exec(ctx context.Context) error
    func (hfcb *HPFollowCreateBulk) ExecX(ctx context.Context)
    func (hfcb *HPFollowCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPFollowUpsertBulk
    func (hfcb *HPFollowCreateBulk) OnConflictColumns(columns ...string) *HPFollowUpsertBulk
    func (hfcb *HPFollowCreateBulk) Save(ctx context.Context) ([]*HPFollow, error)
    func (hfcb *HPFollowCreateBulk) SaveX(ctx context.Context) []*HPFollow
type HPFollowDelete
    func (hfd *HPFollowDelete) Exec(ctx context.Context) (int, error)
    func (hfd *HPFollowDelete) ExecX(ctx context.Context) int
    func (hfd *HPFollowDelete) Where(ps ...predicate.HPFollow) *HPFollowDelete
type HPFollowDeleteOne
    func (hfdo *HPFollowDeleteOne) Exec(ctx context.Context) error
    func (hfdo *HPFollowDeleteOne) ExecX(ctx context.Context)
    func (hfdo *HPFollowDeleteOne) Where(ps ...predicate.HPFollow) *HPFollowDeleteOne
type HPFollowEdge
type HPFollowEdges
    func (e HPFollowEdges) MemberOrErr() (*HPMember, error)
    func (e HPFollowEdges) UserOrErr() (*User, error)
type HPFollowFilter
    func (f *HPFollowFilter) Where(p entql.P)
    func (f *HPFollowFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPFollowFilter) WhereHasMember()
    func (f *HPFollowFilter) WhereHasMemberWith(preds ...predicate.HPMember)
    func (f *HPFollowFilter) WhereHasUser()
    func (f *HPFollowFilter) WhereHasUserWith(preds ...predicate.User)
    func (f *HPFollowFilter) WhereID(p entql.IntP)
    func (f *HPFollowFilter) WhereType(p entql.StringP)
    func (f *HPFollowFilter) WhereUpdatedAt(p entql.TimeP)
type HPFollowGroupBy
    func (hfgb *HPFollowGroupBy) Aggregate(fns ...AggregateFunc) *HPFollowGroupBy
    func (s *HPFollowGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPFollowGroupBy) BoolX(ctx context.Context) bool
    func (s *HPFollowGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPFollowGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPFollowGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPFollowGroupBy) Float64X(ctx context.Context) float64
    func (s *HPFollowGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPFollowGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPFollowGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPFollowGroupBy) IntX(ctx context.Context) int
    func (s *HPFollowGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPFollowGroupBy) IntsX(ctx context.Context) []int
    func (hfgb *HPFollowGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPFollowGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPFollowGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPFollowGroupBy) StringX(ctx context.Context) string
    func (s *HPFollowGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPFollowGroupBy) StringsX(ctx context.Context) []string
type HPFollowMutation
    func (m *HPFollowMutation) AddField(name string, value ent.Value) error
    func (m *HPFollowMutation) AddedEdges() []string
    func (m *HPFollowMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPFollowMutation) AddedFields() []string
    func (m *HPFollowMutation) AddedIDs(name string) []ent.Value
    func (m *HPFollowMutation) ClearCreatedAt()
    func (m *HPFollowMutation) ClearEdge(name string) error
    func (m *HPFollowMutation) ClearField(name string) error
    func (m *HPFollowMutation) ClearMember()
    func (m *HPFollowMutation) ClearUpdatedAt()
    func (m *HPFollowMutation) ClearUser()
    func (m *HPFollowMutation) ClearedEdges() []string
    func (m *HPFollowMutation) ClearedFields() []string
    func (m HPFollowMutation) Client() *Client
    func (m *HPFollowMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPFollowMutation) CreatedAtCleared() bool
    func (m *HPFollowMutation) EdgeCleared(name string) bool
    func (m *HPFollowMutation) Field(name string) (ent.Value, bool)
    func (m *HPFollowMutation) FieldCleared(name string) bool
    func (m *HPFollowMutation) Fields() []string
    func (m *HPFollowMutation) Filter() *HPFollowFilter
    func (m *HPFollowMutation) GetType() (r enums.HPFollowType, exists bool)
    func (m *HPFollowMutation) ID() (id int, exists bool)
    func (m *HPFollowMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPFollowMutation) MemberCleared() bool
    func (m *HPFollowMutation) MemberID() (id int, exists bool)
    func (m *HPFollowMutation) MemberIDs() (ids []int)
    func (m *HPFollowMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPFollowMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPFollowMutation) OldType(ctx context.Context) (v enums.HPFollowType, err error)
    func (m *HPFollowMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPFollowMutation) Op() Op
    func (m *HPFollowMutation) RemovedEdges() []string
    func (m *HPFollowMutation) RemovedIDs(name string) []ent.Value
    func (m *HPFollowMutation) ResetCreatedAt()
    func (m *HPFollowMutation) ResetEdge(name string) error
    func (m *HPFollowMutation) ResetField(name string) error
    func (m *HPFollowMutation) ResetMember()
    func (m *HPFollowMutation) ResetType()
    func (m *HPFollowMutation) ResetUpdatedAt()
    func (m *HPFollowMutation) ResetUser()
    func (m *HPFollowMutation) SetCreatedAt(t time.Time)
    func (m *HPFollowMutation) SetField(name string, value ent.Value) error
    func (m *HPFollowMutation) SetMemberID(id int)
    func (m *HPFollowMutation) SetOp(op Op)
    func (m *HPFollowMutation) SetType(eft enums.HPFollowType)
    func (m *HPFollowMutation) SetUpdatedAt(t time.Time)
    func (m *HPFollowMutation) SetUserID(id int)
    func (m HPFollowMutation) Tx() (*Tx, error)
    func (m *HPFollowMutation) Type() string
    func (m *HPFollowMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPFollowMutation) UpdatedAtCleared() bool
    func (m *HPFollowMutation) UserCleared() bool
    func (m *HPFollowMutation) UserID() (id int, exists bool)
    func (m *HPFollowMutation) UserIDs() (ids []int)
    func (m *HPFollowMutation) Where(ps ...predicate.HPFollow)
    func (m *HPFollowMutation) WhereP(ps ...func(*sql.Selector))
type HPFollowOrder
type HPFollowOrderField
type HPFollowPaginateOption
    func WithHPFollowFilter(filter func(*HPFollowQuery) (*HPFollowQuery, error)) HPFollowPaginateOption
    func WithHPFollowOrder(order *HPFollowOrder) HPFollowPaginateOption
type HPFollowQuery
    func (hfq *HPFollowQuery) Aggregate(fns ...AggregateFunc) *HPFollowSelect
    func (hfq *HPFollowQuery) All(ctx context.Context) ([]*HPFollow, error)
    func (hfq *HPFollowQuery) AllX(ctx context.Context) []*HPFollow
    func (hfq *HPFollowQuery) Clone() *HPFollowQuery
    func (hf *HPFollowQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPFollowQuery, error)
    func (hfq *HPFollowQuery) Count(ctx context.Context) (int, error)
    func (hfq *HPFollowQuery) CountX(ctx context.Context) int
    func (hfq *HPFollowQuery) Exist(ctx context.Context) (bool, error)
    func (hfq *HPFollowQuery) ExistX(ctx context.Context) bool
    func (hfq *HPFollowQuery) Filter() *HPFollowFilter
    func (hfq *HPFollowQuery) First(ctx context.Context) (*HPFollow, error)
    func (hfq *HPFollowQuery) FirstID(ctx context.Context) (id int, err error)
    func (hfq *HPFollowQuery) FirstIDX(ctx context.Context) int
    func (hfq *HPFollowQuery) FirstX(ctx context.Context) *HPFollow
    func (hfq *HPFollowQuery) GroupBy(field string, fields ...string) *HPFollowGroupBy
    func (hfq *HPFollowQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hfq *HPFollowQuery) IDsX(ctx context.Context) []int
    func (hfq *HPFollowQuery) Limit(limit int) *HPFollowQuery
    func (hfq *HPFollowQuery) Offset(offset int) *HPFollowQuery
    func (hfq *HPFollowQuery) Only(ctx context.Context) (*HPFollow, error)
    func (hfq *HPFollowQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hfq *HPFollowQuery) OnlyIDX(ctx context.Context) int
    func (hfq *HPFollowQuery) OnlyX(ctx context.Context) *HPFollow
    func (hfq *HPFollowQuery) Order(o ...hpfollow.Order) *HPFollowQuery
    func (hf *HPFollowQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPFollowPaginateOption) (*HPFollowConnection, error)
    func (hfq *HPFollowQuery) QueryMember() *HPMemberQuery
    func (hfq *HPFollowQuery) QueryUser() *UserQuery
    func (hfq *HPFollowQuery) Select(fields ...string) *HPFollowSelect
    func (hfq *HPFollowQuery) Unique(unique bool) *HPFollowQuery
    func (hfq *HPFollowQuery) Where(ps ...predicate.HPFollow) *HPFollowQuery
    func (hfq *HPFollowQuery) WithMember(opts ...func(*HPMemberQuery)) *HPFollowQuery
    func (hfq *HPFollowQuery) WithUser(opts ...func(*UserQuery)) *HPFollowQuery
type HPFollowSelect
    func (hfs *HPFollowSelect) Aggregate(fns ...AggregateFunc) *HPFollowSelect
    func (s *HPFollowSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPFollowSelect) BoolX(ctx context.Context) bool
    func (s *HPFollowSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPFollowSelect) BoolsX(ctx context.Context) []bool
    func (s *HPFollowSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPFollowSelect) Float64X(ctx context.Context) float64
    func (s *HPFollowSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPFollowSelect) Float64sX(ctx context.Context) []float64
    func (s *HPFollowSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPFollowSelect) IntX(ctx context.Context) int
    func (s *HPFollowSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPFollowSelect) IntsX(ctx context.Context) []int
    func (hfs *HPFollowSelect) Scan(ctx context.Context, v any) error
    func (s *HPFollowSelect) ScanX(ctx context.Context, v any)
    func (s *HPFollowSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPFollowSelect) StringX(ctx context.Context) string
    func (s *HPFollowSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPFollowSelect) StringsX(ctx context.Context) []string
type HPFollowUpdate
    func (hfu *HPFollowUpdate) ClearMember() *HPFollowUpdate
    func (hfu *HPFollowUpdate) ClearUpdatedAt() *HPFollowUpdate
    func (hfu *HPFollowUpdate) ClearUser() *HPFollowUpdate
    func (hfu *HPFollowUpdate) Exec(ctx context.Context) error
    func (hfu *HPFollowUpdate) ExecX(ctx context.Context)
    func (hfu *HPFollowUpdate) Mutation() *HPFollowMutation
    func (hfu *HPFollowUpdate) Save(ctx context.Context) (int, error)
    func (hfu *HPFollowUpdate) SaveX(ctx context.Context) int
    func (hfu *HPFollowUpdate) SetMember(h *HPMember) *HPFollowUpdate
    func (hfu *HPFollowUpdate) SetMemberID(id int) *HPFollowUpdate
    func (hfu *HPFollowUpdate) SetNillableType(eft *enums.HPFollowType) *HPFollowUpdate
    func (hfu *HPFollowUpdate) SetNillableUpdatedAt(t *time.Time) *HPFollowUpdate
    func (hfu *HPFollowUpdate) SetType(eft enums.HPFollowType) *HPFollowUpdate
    func (hfu *HPFollowUpdate) SetUpdatedAt(t time.Time) *HPFollowUpdate
    func (hfu *HPFollowUpdate) SetUser(u *User) *HPFollowUpdate
    func (hfu *HPFollowUpdate) SetUserID(id int) *HPFollowUpdate
    func (hfu *HPFollowUpdate) Where(ps ...predicate.HPFollow) *HPFollowUpdate
type HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) ClearMember() *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) ClearUpdatedAt() *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) ClearUser() *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) Exec(ctx context.Context) error
    func (hfuo *HPFollowUpdateOne) ExecX(ctx context.Context)
    func (hfuo *HPFollowUpdateOne) Mutation() *HPFollowMutation
    func (hfuo *HPFollowUpdateOne) Save(ctx context.Context) (*HPFollow, error)
    func (hfuo *HPFollowUpdateOne) SaveX(ctx context.Context) *HPFollow
    func (hfuo *HPFollowUpdateOne) Select(field string, fields ...string) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetMember(h *HPMember) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetMemberID(id int) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetNillableType(eft *enums.HPFollowType) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetType(eft enums.HPFollowType) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetUpdatedAt(t time.Time) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetUser(u *User) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) SetUserID(id int) *HPFollowUpdateOne
    func (hfuo *HPFollowUpdateOne) Where(ps ...predicate.HPFollow) *HPFollowUpdateOne
type HPFollowUpsert
    func (u *HPFollowUpsert) ClearUpdatedAt() *HPFollowUpsert
    func (u *HPFollowUpsert) SetType(v enums.HPFollowType) *HPFollowUpsert
    func (u *HPFollowUpsert) SetUpdatedAt(v time.Time) *HPFollowUpsert
    func (u *HPFollowUpsert) UpdateType() *HPFollowUpsert
    func (u *HPFollowUpsert) UpdateUpdatedAt() *HPFollowUpsert
type HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) ClearUpdatedAt() *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) DoNothing() *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) Exec(ctx context.Context) error
    func (u *HPFollowUpsertBulk) ExecX(ctx context.Context)
    func (u *HPFollowUpsertBulk) Ignore() *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) SetType(v enums.HPFollowType) *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) SetUpdatedAt(v time.Time) *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) Update(set func(*HPFollowUpsert)) *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) UpdateNewValues() *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) UpdateType() *HPFollowUpsertBulk
    func (u *HPFollowUpsertBulk) UpdateUpdatedAt() *HPFollowUpsertBulk
type HPFollowUpsertOne
    func (u *HPFollowUpsertOne) ClearUpdatedAt() *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) DoNothing() *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) Exec(ctx context.Context) error
    func (u *HPFollowUpsertOne) ExecX(ctx context.Context)
    func (u *HPFollowUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPFollowUpsertOne) IDX(ctx context.Context) int
    func (u *HPFollowUpsertOne) Ignore() *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) SetType(v enums.HPFollowType) *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) SetUpdatedAt(v time.Time) *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) Update(set func(*HPFollowUpsert)) *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) UpdateNewValues() *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) UpdateType() *HPFollowUpsertOne
    func (u *HPFollowUpsertOne) UpdateUpdatedAt() *HPFollowUpsertOne
type HPFollows
type HPIgPost
    func (hip *HPIgPost) Blobs(ctx context.Context) (result []*HPBlob, err error)
    func (n *HPIgPost) IsNode()
    func (hip *HPIgPost) NamedBlobs(name string) ([]*HPBlob, error)
    func (hip *HPIgPost) NamedTaggedArtists(name string) ([]*HPArtist, error)
    func (hip *HPIgPost) NamedTaggedMembers(name string) ([]*HPMember, error)
    func (hip *HPIgPost) OwnerArtist(ctx context.Context) (*HPArtist, error)
    func (hip *HPIgPost) OwnerMember(ctx context.Context) (*HPMember, error)
    func (hip *HPIgPost) QueryAsset() *HPAssetQuery
    func (hip *HPIgPost) QueryBlobs() *HPBlobQuery
    func (hip *HPIgPost) QueryOwnerArtist() *HPArtistQuery
    func (hip *HPIgPost) QueryOwnerMember() *HPMemberQuery
    func (hip *HPIgPost) QueryTaggedArtists() *HPArtistQuery
    func (hip *HPIgPost) QueryTaggedMembers() *HPMemberQuery
    func (hip *HPIgPost) String() string
    func (hip *HPIgPost) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)
    func (hip *HPIgPost) TaggedMembers(ctx context.Context) (result []*HPMember, err error)
    func (hip *HPIgPost) ToEdge(order *HPIgPostOrder) *HPIgPostEdge
    func (hip *HPIgPost) Unwrap() *HPIgPost
    func (hip *HPIgPost) Update() *HPIgPostUpdateOne
    func (hip *HPIgPost) Value(name string) (ent.Value, error)
type HPIgPostClient
    func NewHPIgPostClient(c config) *HPIgPostClient
    func (c *HPIgPostClient) Create() *HPIgPostCreate
    func (c *HPIgPostClient) CreateBulk(builders ...*HPIgPostCreate) *HPIgPostCreateBulk
    func (c *HPIgPostClient) Delete() *HPIgPostDelete
    func (c *HPIgPostClient) DeleteOne(hip *HPIgPost) *HPIgPostDeleteOne
    func (c *HPIgPostClient) DeleteOneID(id int) *HPIgPostDeleteOne
    func (c *HPIgPostClient) Get(ctx context.Context, id int) (*HPIgPost, error)
    func (c *HPIgPostClient) GetX(ctx context.Context, id int) *HPIgPost
    func (c *HPIgPostClient) Hooks() []Hook
    func (c *HPIgPostClient) Intercept(interceptors ...Interceptor)
    func (c *HPIgPostClient) Interceptors() []Interceptor
    func (c *HPIgPostClient) Query() *HPIgPostQuery
    func (c *HPIgPostClient) QueryAsset(hip *HPIgPost) *HPAssetQuery
    func (c *HPIgPostClient) QueryBlobs(hip *HPIgPost) *HPBlobQuery
    func (c *HPIgPostClient) QueryOwnerArtist(hip *HPIgPost) *HPArtistQuery
    func (c *HPIgPostClient) QueryOwnerMember(hip *HPIgPost) *HPMemberQuery
    func (c *HPIgPostClient) QueryTaggedArtists(hip *HPIgPost) *HPArtistQuery
    func (c *HPIgPostClient) QueryTaggedMembers(hip *HPIgPost) *HPMemberQuery
    func (c *HPIgPostClient) Update() *HPIgPostUpdate
    func (c *HPIgPostClient) UpdateOne(hip *HPIgPost) *HPIgPostUpdateOne
    func (c *HPIgPostClient) UpdateOneID(id int) *HPIgPostUpdateOne
    func (c *HPIgPostClient) Use(hooks ...Hook)
type HPIgPostConnection
type HPIgPostCreate
    func (hipc *HPIgPostCreate) AddBlobIDs(ids ...int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) AddBlobs(h ...*HPBlob) *HPIgPostCreate
    func (hipc *HPIgPostCreate) AddTaggedArtistIDs(ids ...int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) AddTaggedArtists(h ...*HPArtist) *HPIgPostCreate
    func (hipc *HPIgPostCreate) AddTaggedMemberIDs(ids ...int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) AddTaggedMembers(h ...*HPMember) *HPIgPostCreate
    func (hipc *HPIgPostCreate) Exec(ctx context.Context) error
    func (hipc *HPIgPostCreate) ExecX(ctx context.Context)
    func (hipc *HPIgPostCreate) Mutation() *HPIgPostMutation
    func (hipc *HPIgPostCreate) OnConflict(opts ...sql.ConflictOption) *HPIgPostUpsertOne
    func (hipc *HPIgPostCreate) OnConflictColumns(columns ...string) *HPIgPostUpsertOne
    func (hipc *HPIgPostCreate) Save(ctx context.Context) (*HPIgPost, error)
    func (hipc *HPIgPostCreate) SaveX(ctx context.Context) *HPIgPost
    func (hipc *HPIgPostCreate) SetAsset(h *HPAsset) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetAssetID(id int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetComments(i int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetCrawledAt(t time.Time) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetCreatedAt(t time.Time) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetDescription(s string) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetErrorCount(i int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetLastErrorMessage(s string) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetLikes(i int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetMedia(j []jsonfields.Media) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableAssetID(id *int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableCrawledAt(t *time.Time) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableCreatedAt(t *time.Time) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableErrorCount(i *int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableLastErrorMessage(s *string) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableOwnerArtistID(i *int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableOwnerMemberID(i *int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableRecrawlRequired(b *bool) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetNillableUpdatedAt(t *time.Time) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetOwnerArtist(h *HPArtist) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetOwnerArtistID(i int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetOwnerMember(h *HPMember) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetOwnerMemberID(i int) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetPostAt(t time.Time) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetRecrawlRequired(b bool) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetShortcode(s string) *HPIgPostCreate
    func (hipc *HPIgPostCreate) SetUpdatedAt(t time.Time) *HPIgPostCreate
type HPIgPostCreateBulk
    func (hipcb *HPIgPostCreateBulk) Exec(ctx context.Context) error
    func (hipcb *HPIgPostCreateBulk) ExecX(ctx context.Context)
    func (hipcb *HPIgPostCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPIgPostUpsertBulk
    func (hipcb *HPIgPostCreateBulk) OnConflictColumns(columns ...string) *HPIgPostUpsertBulk
    func (hipcb *HPIgPostCreateBulk) Save(ctx context.Context) ([]*HPIgPost, error)
    func (hipcb *HPIgPostCreateBulk) SaveX(ctx context.Context) []*HPIgPost
type HPIgPostDelete
    func (hipd *HPIgPostDelete) Exec(ctx context.Context) (int, error)
    func (hipd *HPIgPostDelete) ExecX(ctx context.Context) int
    func (hipd *HPIgPostDelete) Where(ps ...predicate.HPIgPost) *HPIgPostDelete
type HPIgPostDeleteOne
    func (hipdo *HPIgPostDeleteOne) Exec(ctx context.Context) error
    func (hipdo *HPIgPostDeleteOne) ExecX(ctx context.Context)
    func (hipdo *HPIgPostDeleteOne) Where(ps ...predicate.HPIgPost) *HPIgPostDeleteOne
type HPIgPostEdge
type HPIgPostEdges
    func (e HPIgPostEdges) AssetOrErr() (*HPAsset, error)
    func (e HPIgPostEdges) BlobsOrErr() ([]*HPBlob, error)
    func (e HPIgPostEdges) OwnerArtistOrErr() (*HPArtist, error)
    func (e HPIgPostEdges) OwnerMemberOrErr() (*HPMember, error)
    func (e HPIgPostEdges) TaggedArtistsOrErr() ([]*HPArtist, error)
    func (e HPIgPostEdges) TaggedMembersOrErr() ([]*HPMember, error)
type HPIgPostFilter
    func (f *HPIgPostFilter) Where(p entql.P)
    func (f *HPIgPostFilter) WhereComments(p entql.IntP)
    func (f *HPIgPostFilter) WhereCrawledAt(p entql.TimeP)
    func (f *HPIgPostFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPIgPostFilter) WhereDescription(p entql.StringP)
    func (f *HPIgPostFilter) WhereErrorCount(p entql.IntP)
    func (f *HPIgPostFilter) WhereHasAsset()
    func (f *HPIgPostFilter) WhereHasAssetWith(preds ...predicate.HPAsset)
    func (f *HPIgPostFilter) WhereHasBlobs()
    func (f *HPIgPostFilter) WhereHasBlobsWith(preds ...predicate.HPBlob)
    func (f *HPIgPostFilter) WhereHasOwnerArtist()
    func (f *HPIgPostFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)
    func (f *HPIgPostFilter) WhereHasOwnerMember()
    func (f *HPIgPostFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)
    func (f *HPIgPostFilter) WhereHasTaggedArtists()
    func (f *HPIgPostFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)
    func (f *HPIgPostFilter) WhereHasTaggedMembers()
    func (f *HPIgPostFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)
    func (f *HPIgPostFilter) WhereID(p entql.IntP)
    func (f *HPIgPostFilter) WhereLastErrorMessage(p entql.StringP)
    func (f *HPIgPostFilter) WhereLikes(p entql.IntP)
    func (f *HPIgPostFilter) WhereManuallyModified(p entql.BytesP)
    func (f *HPIgPostFilter) WhereMedia(p entql.BytesP)
    func (f *HPIgPostFilter) WhereOwnerArtistID(p entql.IntP)
    func (f *HPIgPostFilter) WhereOwnerMemberID(p entql.IntP)
    func (f *HPIgPostFilter) WherePostAt(p entql.TimeP)
    func (f *HPIgPostFilter) WhereRecrawlArgs(p entql.BytesP)
    func (f *HPIgPostFilter) WhereRecrawlRequired(p entql.BoolP)
    func (f *HPIgPostFilter) WhereShortcode(p entql.StringP)
    func (f *HPIgPostFilter) WhereUpdatedAt(p entql.TimeP)
type HPIgPostGroupBy
    func (hipgb *HPIgPostGroupBy) Aggregate(fns ...AggregateFunc) *HPIgPostGroupBy
    func (s *HPIgPostGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPIgPostGroupBy) BoolX(ctx context.Context) bool
    func (s *HPIgPostGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPIgPostGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPIgPostGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPIgPostGroupBy) Float64X(ctx context.Context) float64
    func (s *HPIgPostGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPIgPostGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPIgPostGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPIgPostGroupBy) IntX(ctx context.Context) int
    func (s *HPIgPostGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPIgPostGroupBy) IntsX(ctx context.Context) []int
    func (hipgb *HPIgPostGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPIgPostGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPIgPostGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPIgPostGroupBy) StringX(ctx context.Context) string
    func (s *HPIgPostGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPIgPostGroupBy) StringsX(ctx context.Context) []string
type HPIgPostMutation
    func (m *HPIgPostMutation) AddBlobIDs(ids ...int)
    func (m *HPIgPostMutation) AddComments(i int)
    func (m *HPIgPostMutation) AddErrorCount(i int)
    func (m *HPIgPostMutation) AddField(name string, value ent.Value) error
    func (m *HPIgPostMutation) AddLikes(i int)
    func (m *HPIgPostMutation) AddTaggedArtistIDs(ids ...int)
    func (m *HPIgPostMutation) AddTaggedMemberIDs(ids ...int)
    func (m *HPIgPostMutation) AddedComments() (r int, exists bool)
    func (m *HPIgPostMutation) AddedEdges() []string
    func (m *HPIgPostMutation) AddedErrorCount() (r int, exists bool)
    func (m *HPIgPostMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPIgPostMutation) AddedFields() []string
    func (m *HPIgPostMutation) AddedIDs(name string) []ent.Value
    func (m *HPIgPostMutation) AddedLikes() (r int, exists bool)
    func (m *HPIgPostMutation) AppendMedia(j []jsonfields.Media)
    func (m *HPIgPostMutation) AppendedMedia() ([]jsonfields.Media, bool)
    func (m *HPIgPostMutation) AssetCleared() bool
    func (m *HPIgPostMutation) AssetID() (id int, exists bool)
    func (m *HPIgPostMutation) AssetIDs() (ids []int)
    func (m *HPIgPostMutation) BlobsCleared() bool
    func (m *HPIgPostMutation) BlobsIDs() (ids []int)
    func (m *HPIgPostMutation) ClearAsset()
    func (m *HPIgPostMutation) ClearBlobs()
    func (m *HPIgPostMutation) ClearCrawledAt()
    func (m *HPIgPostMutation) ClearCreatedAt()
    func (m *HPIgPostMutation) ClearEdge(name string) error
    func (m *HPIgPostMutation) ClearField(name string) error
    func (m *HPIgPostMutation) ClearLastErrorMessage()
    func (m *HPIgPostMutation) ClearManuallyModified()
    func (m *HPIgPostMutation) ClearOwnerArtist()
    func (m *HPIgPostMutation) ClearOwnerArtistID()
    func (m *HPIgPostMutation) ClearOwnerMember()
    func (m *HPIgPostMutation) ClearOwnerMemberID()
    func (m *HPIgPostMutation) ClearRecrawlArgs()
    func (m *HPIgPostMutation) ClearRecrawlRequired()
    func (m *HPIgPostMutation) ClearTaggedArtists()
    func (m *HPIgPostMutation) ClearTaggedMembers()
    func (m *HPIgPostMutation) ClearUpdatedAt()
    func (m *HPIgPostMutation) ClearedEdges() []string
    func (m *HPIgPostMutation) ClearedFields() []string
    func (m HPIgPostMutation) Client() *Client
    func (m *HPIgPostMutation) Comments() (r int, exists bool)
    func (m *HPIgPostMutation) CrawledAt() (r time.Time, exists bool)
    func (m *HPIgPostMutation) CrawledAtCleared() bool
    func (m *HPIgPostMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPIgPostMutation) CreatedAtCleared() bool
    func (m *HPIgPostMutation) Description() (r string, exists bool)
    func (m *HPIgPostMutation) EdgeCleared(name string) bool
    func (m *HPIgPostMutation) ErrorCount() (r int, exists bool)
    func (m *HPIgPostMutation) Field(name string) (ent.Value, bool)
    func (m *HPIgPostMutation) FieldCleared(name string) bool
    func (m *HPIgPostMutation) Fields() []string
    func (m *HPIgPostMutation) Filter() *HPIgPostFilter
    func (m *HPIgPostMutation) ID() (id int, exists bool)
    func (m *HPIgPostMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPIgPostMutation) LastErrorMessage() (r string, exists bool)
    func (m *HPIgPostMutation) LastErrorMessageCleared() bool
    func (m *HPIgPostMutation) Likes() (r int, exists bool)
    func (m *HPIgPostMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)
    func (m *HPIgPostMutation) ManuallyModifiedCleared() bool
    func (m *HPIgPostMutation) Media() (r []jsonfields.Media, exists bool)
    func (m *HPIgPostMutation) OldComments(ctx context.Context) (v int, err error)
    func (m *HPIgPostMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPIgPostMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPIgPostMutation) OldDescription(ctx context.Context) (v string, err error)
    func (m *HPIgPostMutation) OldErrorCount(ctx context.Context) (v int, err error)
    func (m *HPIgPostMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPIgPostMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)
    func (m *HPIgPostMutation) OldLikes(ctx context.Context) (v int, err error)
    func (m *HPIgPostMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)
    func (m *HPIgPostMutation) OldMedia(ctx context.Context) (v []jsonfields.Media, err error)
    func (m *HPIgPostMutation) OldOwnerArtistID(ctx context.Context) (v *int, err error)
    func (m *HPIgPostMutation) OldOwnerMemberID(ctx context.Context) (v *int, err error)
    func (m *HPIgPostMutation) OldPostAt(ctx context.Context) (v time.Time, err error)
    func (m *HPIgPostMutation) OldRecrawlArgs(ctx context.Context) (v *jsonfields.HPIgCrawlArgs, err error)
    func (m *HPIgPostMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)
    func (m *HPIgPostMutation) OldShortcode(ctx context.Context) (v string, err error)
    func (m *HPIgPostMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPIgPostMutation) Op() Op
    func (m *HPIgPostMutation) OwnerArtistCleared() bool
    func (m *HPIgPostMutation) OwnerArtistID() (r int, exists bool)
    func (m *HPIgPostMutation) OwnerArtistIDCleared() bool
    func (m *HPIgPostMutation) OwnerArtistIDs() (ids []int)
    func (m *HPIgPostMutation) OwnerMemberCleared() bool
    func (m *HPIgPostMutation) OwnerMemberID() (r int, exists bool)
    func (m *HPIgPostMutation) OwnerMemberIDCleared() bool
    func (m *HPIgPostMutation) OwnerMemberIDs() (ids []int)
    func (m *HPIgPostMutation) PostAt() (r time.Time, exists bool)
    func (m *HPIgPostMutation) RecrawlArgs() (r *jsonfields.HPIgCrawlArgs, exists bool)
    func (m *HPIgPostMutation) RecrawlArgsCleared() bool
    func (m *HPIgPostMutation) RecrawlRequired() (r bool, exists bool)
    func (m *HPIgPostMutation) RecrawlRequiredCleared() bool
    func (m *HPIgPostMutation) RemoveBlobIDs(ids ...int)
    func (m *HPIgPostMutation) RemoveTaggedArtistIDs(ids ...int)
    func (m *HPIgPostMutation) RemoveTaggedMemberIDs(ids ...int)
    func (m *HPIgPostMutation) RemovedBlobsIDs() (ids []int)
    func (m *HPIgPostMutation) RemovedEdges() []string
    func (m *HPIgPostMutation) RemovedIDs(name string) []ent.Value
    func (m *HPIgPostMutation) RemovedTaggedArtistsIDs() (ids []int)
    func (m *HPIgPostMutation) RemovedTaggedMembersIDs() (ids []int)
    func (m *HPIgPostMutation) ResetAsset()
    func (m *HPIgPostMutation) ResetBlobs()
    func (m *HPIgPostMutation) ResetComments()
    func (m *HPIgPostMutation) ResetCrawledAt()
    func (m *HPIgPostMutation) ResetCreatedAt()
    func (m *HPIgPostMutation) ResetDescription()
    func (m *HPIgPostMutation) ResetEdge(name string) error
    func (m *HPIgPostMutation) ResetErrorCount()
    func (m *HPIgPostMutation) ResetField(name string) error
    func (m *HPIgPostMutation) ResetLastErrorMessage()
    func (m *HPIgPostMutation) ResetLikes()
    func (m *HPIgPostMutation) ResetManuallyModified()
    func (m *HPIgPostMutation) ResetMedia()
    func (m *HPIgPostMutation) ResetOwnerArtist()
    func (m *HPIgPostMutation) ResetOwnerArtistID()
    func (m *HPIgPostMutation) ResetOwnerMember()
    func (m *HPIgPostMutation) ResetOwnerMemberID()
    func (m *HPIgPostMutation) ResetPostAt()
    func (m *HPIgPostMutation) ResetRecrawlArgs()
    func (m *HPIgPostMutation) ResetRecrawlRequired()
    func (m *HPIgPostMutation) ResetShortcode()
    func (m *HPIgPostMutation) ResetTaggedArtists()
    func (m *HPIgPostMutation) ResetTaggedMembers()
    func (m *HPIgPostMutation) ResetUpdatedAt()
    func (m *HPIgPostMutation) SetAssetID(id int)
    func (m *HPIgPostMutation) SetComments(i int)
    func (m *HPIgPostMutation) SetCrawledAt(t time.Time)
    func (m *HPIgPostMutation) SetCreatedAt(t time.Time)
    func (m *HPIgPostMutation) SetDescription(s string)
    func (m *HPIgPostMutation) SetErrorCount(i int)
    func (m *HPIgPostMutation) SetField(name string, value ent.Value) error
    func (m *HPIgPostMutation) SetLastErrorMessage(s string)
    func (m *HPIgPostMutation) SetLikes(i int)
    func (m *HPIgPostMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)
    func (m *HPIgPostMutation) SetMedia(j []jsonfields.Media)
    func (m *HPIgPostMutation) SetOp(op Op)
    func (m *HPIgPostMutation) SetOwnerArtistID(i int)
    func (m *HPIgPostMutation) SetOwnerMemberID(i int)
    func (m *HPIgPostMutation) SetPostAt(t time.Time)
    func (m *HPIgPostMutation) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs)
    func (m *HPIgPostMutation) SetRecrawlRequired(b bool)
    func (m *HPIgPostMutation) SetShortcode(s string)
    func (m *HPIgPostMutation) SetUpdatedAt(t time.Time)
    func (m *HPIgPostMutation) Shortcode() (r string, exists bool)
    func (m *HPIgPostMutation) TaggedArtistsCleared() bool
    func (m *HPIgPostMutation) TaggedArtistsIDs() (ids []int)
    func (m *HPIgPostMutation) TaggedMembersCleared() bool
    func (m *HPIgPostMutation) TaggedMembersIDs() (ids []int)
    func (m HPIgPostMutation) Tx() (*Tx, error)
    func (m *HPIgPostMutation) Type() string
    func (m *HPIgPostMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPIgPostMutation) UpdatedAtCleared() bool
    func (m *HPIgPostMutation) Where(ps ...predicate.HPIgPost)
    func (m *HPIgPostMutation) WhereP(ps ...func(*sql.Selector))
type HPIgPostOrder
type HPIgPostOrderField
type HPIgPostPaginateOption
    func WithHPIgPostFilter(filter func(*HPIgPostQuery) (*HPIgPostQuery, error)) HPIgPostPaginateOption
    func WithHPIgPostOrder(order *HPIgPostOrder) HPIgPostPaginateOption
type HPIgPostQuery
    func (hipq *HPIgPostQuery) Aggregate(fns ...AggregateFunc) *HPIgPostSelect
    func (hipq *HPIgPostQuery) All(ctx context.Context) ([]*HPIgPost, error)
    func (hipq *HPIgPostQuery) AllX(ctx context.Context) []*HPIgPost
    func (hipq *HPIgPostQuery) Clone() *HPIgPostQuery
    func (hip *HPIgPostQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPIgPostQuery, error)
    func (hipq *HPIgPostQuery) Count(ctx context.Context) (int, error)
    func (hipq *HPIgPostQuery) CountX(ctx context.Context) int
    func (hipq *HPIgPostQuery) Exist(ctx context.Context) (bool, error)
    func (hipq *HPIgPostQuery) ExistX(ctx context.Context) bool
    func (hipq *HPIgPostQuery) Filter() *HPIgPostFilter
    func (hipq *HPIgPostQuery) First(ctx context.Context) (*HPIgPost, error)
    func (hipq *HPIgPostQuery) FirstID(ctx context.Context) (id int, err error)
    func (hipq *HPIgPostQuery) FirstIDX(ctx context.Context) int
    func (hipq *HPIgPostQuery) FirstX(ctx context.Context) *HPIgPost
    func (hipq *HPIgPostQuery) GroupBy(field string, fields ...string) *HPIgPostGroupBy
    func (hipq *HPIgPostQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hipq *HPIgPostQuery) IDsX(ctx context.Context) []int
    func (hipq *HPIgPostQuery) Limit(limit int) *HPIgPostQuery
    func (hipq *HPIgPostQuery) Offset(offset int) *HPIgPostQuery
    func (hipq *HPIgPostQuery) Only(ctx context.Context) (*HPIgPost, error)
    func (hipq *HPIgPostQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hipq *HPIgPostQuery) OnlyIDX(ctx context.Context) int
    func (hipq *HPIgPostQuery) OnlyX(ctx context.Context) *HPIgPost
    func (hipq *HPIgPostQuery) Order(o ...hpigpost.Order) *HPIgPostQuery
    func (hip *HPIgPostQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPIgPostPaginateOption) (*HPIgPostConnection, error)
    func (hipq *HPIgPostQuery) QueryAsset() *HPAssetQuery
    func (hipq *HPIgPostQuery) QueryBlobs() *HPBlobQuery
    func (hipq *HPIgPostQuery) QueryOwnerArtist() *HPArtistQuery
    func (hipq *HPIgPostQuery) QueryOwnerMember() *HPMemberQuery
    func (hipq *HPIgPostQuery) QueryTaggedArtists() *HPArtistQuery
    func (hipq *HPIgPostQuery) QueryTaggedMembers() *HPMemberQuery
    func (hipq *HPIgPostQuery) Select(fields ...string) *HPIgPostSelect
    func (hipq *HPIgPostQuery) Unique(unique bool) *HPIgPostQuery
    func (hipq *HPIgPostQuery) Where(ps ...predicate.HPIgPost) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithAsset(opts ...func(*HPAssetQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithBlobs(opts ...func(*HPBlobQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithNamedBlobs(name string, opts ...func(*HPBlobQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPIgPostQuery
    func (hipq *HPIgPostQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPIgPostQuery
type HPIgPostSelect
    func (hips *HPIgPostSelect) Aggregate(fns ...AggregateFunc) *HPIgPostSelect
    func (s *HPIgPostSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPIgPostSelect) BoolX(ctx context.Context) bool
    func (s *HPIgPostSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPIgPostSelect) BoolsX(ctx context.Context) []bool
    func (s *HPIgPostSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPIgPostSelect) Float64X(ctx context.Context) float64
    func (s *HPIgPostSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPIgPostSelect) Float64sX(ctx context.Context) []float64
    func (s *HPIgPostSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPIgPostSelect) IntX(ctx context.Context) int
    func (s *HPIgPostSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPIgPostSelect) IntsX(ctx context.Context) []int
    func (hips *HPIgPostSelect) Scan(ctx context.Context, v any) error
    func (s *HPIgPostSelect) ScanX(ctx context.Context, v any)
    func (s *HPIgPostSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPIgPostSelect) StringX(ctx context.Context) string
    func (s *HPIgPostSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPIgPostSelect) StringsX(ctx context.Context) []string
type HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddBlobIDs(ids ...int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddBlobs(h ...*HPBlob) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddComments(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddErrorCount(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddLikes(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddTaggedArtistIDs(ids ...int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddTaggedArtists(h ...*HPArtist) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddTaggedMemberIDs(ids ...int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AddTaggedMembers(h ...*HPMember) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) AppendMedia(j []jsonfields.Media) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearAsset() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearBlobs() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearCrawledAt() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearLastErrorMessage() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearManuallyModified() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearOwnerArtist() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearOwnerArtistID() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearOwnerMember() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearOwnerMemberID() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearRecrawlArgs() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearRecrawlRequired() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearTaggedArtists() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearTaggedMembers() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) ClearUpdatedAt() *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) Exec(ctx context.Context) error
    func (hipu *HPIgPostUpdate) ExecX(ctx context.Context)
    func (hipu *HPIgPostUpdate) Mutation() *HPIgPostMutation
    func (hipu *HPIgPostUpdate) RemoveBlobIDs(ids ...int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) RemoveBlobs(h ...*HPBlob) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) RemoveTaggedArtistIDs(ids ...int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) RemoveTaggedMemberIDs(ids ...int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) RemoveTaggedMembers(h ...*HPMember) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) Save(ctx context.Context) (int, error)
    func (hipu *HPIgPostUpdate) SaveX(ctx context.Context) int
    func (hipu *HPIgPostUpdate) SetAsset(h *HPAsset) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetAssetID(id int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetComments(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetCrawledAt(t time.Time) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetDescription(s string) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetErrorCount(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetLastErrorMessage(s string) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetLikes(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetMedia(j []jsonfields.Media) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableAssetID(id *int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableCrawledAt(t *time.Time) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableErrorCount(i *int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableLastErrorMessage(s *string) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableOwnerArtistID(i *int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableOwnerMemberID(i *int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableRecrawlRequired(b *bool) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetNillableUpdatedAt(t *time.Time) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetOwnerArtist(h *HPArtist) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetOwnerArtistID(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetOwnerMember(h *HPMember) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetOwnerMemberID(i int) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetPostAt(t time.Time) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetRecrawlRequired(b bool) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetShortcode(s string) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) SetUpdatedAt(t time.Time) *HPIgPostUpdate
    func (hipu *HPIgPostUpdate) Where(ps ...predicate.HPIgPost) *HPIgPostUpdate
type HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddBlobIDs(ids ...int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddBlobs(h ...*HPBlob) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddComments(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddErrorCount(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddLikes(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddTaggedArtistIDs(ids ...int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddTaggedMemberIDs(ids ...int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AddTaggedMembers(h ...*HPMember) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) AppendMedia(j []jsonfields.Media) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearAsset() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearBlobs() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearCrawledAt() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearLastErrorMessage() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearManuallyModified() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearOwnerArtist() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearOwnerArtistID() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearOwnerMember() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearOwnerMemberID() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearRecrawlArgs() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearRecrawlRequired() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearTaggedArtists() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearTaggedMembers() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) ClearUpdatedAt() *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) Exec(ctx context.Context) error
    func (hipuo *HPIgPostUpdateOne) ExecX(ctx context.Context)
    func (hipuo *HPIgPostUpdateOne) Mutation() *HPIgPostMutation
    func (hipuo *HPIgPostUpdateOne) RemoveBlobIDs(ids ...int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) RemoveBlobs(h ...*HPBlob) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) Save(ctx context.Context) (*HPIgPost, error)
    func (hipuo *HPIgPostUpdateOne) SaveX(ctx context.Context) *HPIgPost
    func (hipuo *HPIgPostUpdateOne) Select(field string, fields ...string) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetAsset(h *HPAsset) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetAssetID(id int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetComments(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetCrawledAt(t time.Time) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetDescription(s string) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetErrorCount(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetLastErrorMessage(s string) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetLikes(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetMedia(j []jsonfields.Media) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableAssetID(id *int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableCrawledAt(t *time.Time) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableErrorCount(i *int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableLastErrorMessage(s *string) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableOwnerArtistID(i *int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableOwnerMemberID(i *int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableRecrawlRequired(b *bool) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetOwnerArtist(h *HPArtist) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetOwnerArtistID(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetOwnerMember(h *HPMember) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetOwnerMemberID(i int) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetPostAt(t time.Time) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetRecrawlRequired(b bool) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetShortcode(s string) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) SetUpdatedAt(t time.Time) *HPIgPostUpdateOne
    func (hipuo *HPIgPostUpdateOne) Where(ps ...predicate.HPIgPost) *HPIgPostUpdateOne
type HPIgPostUpsert
    func (u *HPIgPostUpsert) AddComments(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) AddErrorCount(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) AddLikes(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearCrawledAt() *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearLastErrorMessage() *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearManuallyModified() *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearOwnerArtistID() *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearOwnerMemberID() *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearRecrawlArgs() *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearRecrawlRequired() *HPIgPostUpsert
    func (u *HPIgPostUpsert) ClearUpdatedAt() *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetComments(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetCrawledAt(v time.Time) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetDescription(v string) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetErrorCount(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetLastErrorMessage(v string) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetLikes(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetMedia(v []jsonfields.Media) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetOwnerArtistID(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetOwnerMemberID(v int) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetPostAt(v time.Time) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetRecrawlArgs(v *jsonfields.HPIgCrawlArgs) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetRecrawlRequired(v bool) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetShortcode(v string) *HPIgPostUpsert
    func (u *HPIgPostUpsert) SetUpdatedAt(v time.Time) *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateComments() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateCrawledAt() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateDescription() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateErrorCount() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateLastErrorMessage() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateLikes() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateManuallyModified() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateMedia() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateOwnerArtistID() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateOwnerMemberID() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdatePostAt() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateRecrawlArgs() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateRecrawlRequired() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateShortcode() *HPIgPostUpsert
    func (u *HPIgPostUpsert) UpdateUpdatedAt() *HPIgPostUpsert
type HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) AddComments(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) AddErrorCount(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) AddLikes(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearCrawledAt() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearLastErrorMessage() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearManuallyModified() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearOwnerArtistID() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearOwnerMemberID() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearRecrawlArgs() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearRecrawlRequired() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) ClearUpdatedAt() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) DoNothing() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) Exec(ctx context.Context) error
    func (u *HPIgPostUpsertBulk) ExecX(ctx context.Context)
    func (u *HPIgPostUpsertBulk) Ignore() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetComments(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetCrawledAt(v time.Time) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetDescription(v string) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetErrorCount(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetLastErrorMessage(v string) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetLikes(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetMedia(v []jsonfields.Media) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetOwnerArtistID(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetOwnerMemberID(v int) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetPostAt(v time.Time) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetRecrawlArgs(v *jsonfields.HPIgCrawlArgs) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetRecrawlRequired(v bool) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetShortcode(v string) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) SetUpdatedAt(v time.Time) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) Update(set func(*HPIgPostUpsert)) *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateComments() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateCrawledAt() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateDescription() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateErrorCount() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateLastErrorMessage() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateLikes() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateManuallyModified() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateMedia() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateNewValues() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateOwnerArtistID() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateOwnerMemberID() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdatePostAt() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateRecrawlArgs() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateRecrawlRequired() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateShortcode() *HPIgPostUpsertBulk
    func (u *HPIgPostUpsertBulk) UpdateUpdatedAt() *HPIgPostUpsertBulk
type HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) AddComments(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) AddErrorCount(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) AddLikes(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearCrawledAt() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearLastErrorMessage() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearManuallyModified() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearOwnerArtistID() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearOwnerMemberID() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearRecrawlArgs() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearRecrawlRequired() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) ClearUpdatedAt() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) DoNothing() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) Exec(ctx context.Context) error
    func (u *HPIgPostUpsertOne) ExecX(ctx context.Context)
    func (u *HPIgPostUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPIgPostUpsertOne) IDX(ctx context.Context) int
    func (u *HPIgPostUpsertOne) Ignore() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetComments(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetCrawledAt(v time.Time) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetDescription(v string) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetErrorCount(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetLastErrorMessage(v string) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetLikes(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetMedia(v []jsonfields.Media) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetOwnerArtistID(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetOwnerMemberID(v int) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetPostAt(v time.Time) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetRecrawlArgs(v *jsonfields.HPIgCrawlArgs) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetRecrawlRequired(v bool) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetShortcode(v string) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) SetUpdatedAt(v time.Time) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) Update(set func(*HPIgPostUpsert)) *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateComments() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateCrawledAt() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateDescription() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateErrorCount() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateLastErrorMessage() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateLikes() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateManuallyModified() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateMedia() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateNewValues() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateOwnerArtistID() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateOwnerMemberID() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdatePostAt() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateRecrawlArgs() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateRecrawlRequired() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateShortcode() *HPIgPostUpsertOne
    func (u *HPIgPostUpsertOne) UpdateUpdatedAt() *HPIgPostUpsertOne
type HPIgPosts
type HPMember
    func (hm *HPMember) Artist(ctx context.Context) (*HPArtist, error)
    func (n *HPMember) IsNode()
    func (hm *HPMember) NamedAssets(name string) ([]*HPAsset, error)
    func (hm *HPMember) NamedFollowedBy(name string) ([]*HPFollow, error)
    func (hm *HPMember) NamedOwningAmebloPosts(name string) ([]*HPAmebloPost, error)
    func (hm *HPMember) NamedOwningFeed(name string) ([]*HPFeedItem, error)
    func (hm *HPMember) NamedOwningIgPosts(name string) ([]*HPIgPost, error)
    func (hm *HPMember) NamedTaggedAmebloPosts(name string) ([]*HPAmebloPost, error)
    func (hm *HPMember) NamedTaggedElineupMallItems(name string) ([]*HPElineupMallItem, error)
    func (hm *HPMember) NamedTaggedFeed(name string) ([]*HPFeedItem, error)
    func (hm *HPMember) NamedTaggedIgPosts(name string) ([]*HPIgPost, error)
    func (hm *HPMember) QueryArtist() *HPArtistQuery
    func (hm *HPMember) QueryAssets() *HPAssetQuery
    func (hm *HPMember) QueryFollowedBy() *HPFollowQuery
    func (hm *HPMember) QueryOwningAmebloPosts() *HPAmebloPostQuery
    func (hm *HPMember) QueryOwningFeed() *HPFeedItemQuery
    func (hm *HPMember) QueryOwningIgPosts() *HPIgPostQuery
    func (hm *HPMember) QueryTaggedAmebloPosts() *HPAmebloPostQuery
    func (hm *HPMember) QueryTaggedElineupMallItems() *HPElineupMallItemQuery
    func (hm *HPMember) QueryTaggedFeed() *HPFeedItemQuery
    func (hm *HPMember) QueryTaggedIgPosts() *HPIgPostQuery
    func (hm *HPMember) String() string
    func (hm *HPMember) ToEdge(order *HPMemberOrder) *HPMemberEdge
    func (hm *HPMember) Unwrap() *HPMember
    func (hm *HPMember) Update() *HPMemberUpdateOne
    func (hm *HPMember) Value(name string) (ent.Value, error)
type HPMemberClient
    func NewHPMemberClient(c config) *HPMemberClient
    func (c *HPMemberClient) Create() *HPMemberCreate
    func (c *HPMemberClient) CreateBulk(builders ...*HPMemberCreate) *HPMemberCreateBulk
    func (c *HPMemberClient) Delete() *HPMemberDelete
    func (c *HPMemberClient) DeleteOne(hm *HPMember) *HPMemberDeleteOne
    func (c *HPMemberClient) DeleteOneID(id int) *HPMemberDeleteOne
    func (c *HPMemberClient) Get(ctx context.Context, id int) (*HPMember, error)
    func (c *HPMemberClient) GetX(ctx context.Context, id int) *HPMember
    func (c *HPMemberClient) Hooks() []Hook
    func (c *HPMemberClient) Intercept(interceptors ...Interceptor)
    func (c *HPMemberClient) Interceptors() []Interceptor
    func (c *HPMemberClient) Query() *HPMemberQuery
    func (c *HPMemberClient) QueryArtist(hm *HPMember) *HPArtistQuery
    func (c *HPMemberClient) QueryAssets(hm *HPMember) *HPAssetQuery
    func (c *HPMemberClient) QueryFollowedBy(hm *HPMember) *HPFollowQuery
    func (c *HPMemberClient) QueryOwningAmebloPosts(hm *HPMember) *HPAmebloPostQuery
    func (c *HPMemberClient) QueryOwningFeed(hm *HPMember) *HPFeedItemQuery
    func (c *HPMemberClient) QueryOwningIgPosts(hm *HPMember) *HPIgPostQuery
    func (c *HPMemberClient) QueryTaggedAmebloPosts(hm *HPMember) *HPAmebloPostQuery
    func (c *HPMemberClient) QueryTaggedElineupMallItems(hm *HPMember) *HPElineupMallItemQuery
    func (c *HPMemberClient) QueryTaggedFeed(hm *HPMember) *HPFeedItemQuery
    func (c *HPMemberClient) QueryTaggedIgPosts(hm *HPMember) *HPIgPostQuery
    func (c *HPMemberClient) Update() *HPMemberUpdate
    func (c *HPMemberClient) UpdateOne(hm *HPMember) *HPMemberUpdateOne
    func (c *HPMemberClient) UpdateOneID(id int) *HPMemberUpdateOne
    func (c *HPMemberClient) Use(hooks ...Hook)
type HPMemberConnection
type HPMemberCreate
    func (hmc *HPMemberCreate) AddAssetIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddAssets(h ...*HPAsset) *HPMemberCreate
    func (hmc *HPMemberCreate) AddFollowedBy(h ...*HPFollow) *HPMemberCreate
    func (hmc *HPMemberCreate) AddFollowedByIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddOwningAmebloPostIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberCreate
    func (hmc *HPMemberCreate) AddOwningFeed(h ...*HPFeedItem) *HPMemberCreate
    func (hmc *HPMemberCreate) AddOwningFeedIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddOwningIgPostIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddOwningIgPosts(h ...*HPIgPost) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedAmebloPostIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedElineupMallItemIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedFeed(h ...*HPFeedItem) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedFeedIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedIgPostIDs(ids ...int) *HPMemberCreate
    func (hmc *HPMemberCreate) AddTaggedIgPosts(h ...*HPIgPost) *HPMemberCreate
    func (hmc *HPMemberCreate) Exec(ctx context.Context) error
    func (hmc *HPMemberCreate) ExecX(ctx context.Context)
    func (hmc *HPMemberCreate) Mutation() *HPMemberMutation
    func (hmc *HPMemberCreate) OnConflict(opts ...sql.ConflictOption) *HPMemberUpsertOne
    func (hmc *HPMemberCreate) OnConflictColumns(columns ...string) *HPMemberUpsertOne
    func (hmc *HPMemberCreate) Save(ctx context.Context) (*HPMember, error)
    func (hmc *HPMemberCreate) SaveX(ctx context.Context) *HPMember
    func (hmc *HPMemberCreate) SetArtist(h *HPArtist) *HPMemberCreate
    func (hmc *HPMemberCreate) SetArtistID(i int) *HPMemberCreate
    func (hmc *HPMemberCreate) SetArtistKey(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetBloodType(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetCrawledAt(t time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetCreatedAt(t time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetDateOfBirth(t time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetErrorCount(i int) *HPMemberCreate
    func (hmc *HPMemberCreate) SetGraduateAt(t time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetHometown(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetJoinAt(t time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetKey(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetLastErrorMessage(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPMemberCreate
    func (hmc *HPMemberCreate) SetName(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNameKana(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableArtistID(i *int) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableCrawledAt(t *time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableCreatedAt(t *time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableErrorCount(i *int) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableGraduateAt(t *time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableJoinAt(t *time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableLastErrorMessage(s *string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableRecrawlRequired(b *bool) *HPMemberCreate
    func (hmc *HPMemberCreate) SetNillableUpdatedAt(t *time.Time) *HPMemberCreate
    func (hmc *HPMemberCreate) SetRecrawlRequired(b bool) *HPMemberCreate
    func (hmc *HPMemberCreate) SetThumbnailURL(s string) *HPMemberCreate
    func (hmc *HPMemberCreate) SetUpdatedAt(t time.Time) *HPMemberCreate
type HPMemberCreateBulk
    func (hmcb *HPMemberCreateBulk) Exec(ctx context.Context) error
    func (hmcb *HPMemberCreateBulk) ExecX(ctx context.Context)
    func (hmcb *HPMemberCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPMemberUpsertBulk
    func (hmcb *HPMemberCreateBulk) OnConflictColumns(columns ...string) *HPMemberUpsertBulk
    func (hmcb *HPMemberCreateBulk) Save(ctx context.Context) ([]*HPMember, error)
    func (hmcb *HPMemberCreateBulk) SaveX(ctx context.Context) []*HPMember
type HPMemberDelete
    func (hmd *HPMemberDelete) Exec(ctx context.Context) (int, error)
    func (hmd *HPMemberDelete) ExecX(ctx context.Context) int
    func (hmd *HPMemberDelete) Where(ps ...predicate.HPMember) *HPMemberDelete
type HPMemberDeleteOne
    func (hmdo *HPMemberDeleteOne) Exec(ctx context.Context) error
    func (hmdo *HPMemberDeleteOne) ExecX(ctx context.Context)
    func (hmdo *HPMemberDeleteOne) Where(ps ...predicate.HPMember) *HPMemberDeleteOne
type HPMemberEdge
type HPMemberEdges
    func (e HPMemberEdges) ArtistOrErr() (*HPArtist, error)
    func (e HPMemberEdges) AssetsOrErr() ([]*HPAsset, error)
    func (e HPMemberEdges) FollowedByOrErr() ([]*HPFollow, error)
    func (e HPMemberEdges) OwningAmebloPostsOrErr() ([]*HPAmebloPost, error)
    func (e HPMemberEdges) OwningFeedOrErr() ([]*HPFeedItem, error)
    func (e HPMemberEdges) OwningIgPostsOrErr() ([]*HPIgPost, error)
    func (e HPMemberEdges) TaggedAmebloPostsOrErr() ([]*HPAmebloPost, error)
    func (e HPMemberEdges) TaggedElineupMallItemsOrErr() ([]*HPElineupMallItem, error)
    func (e HPMemberEdges) TaggedFeedOrErr() ([]*HPFeedItem, error)
    func (e HPMemberEdges) TaggedIgPostsOrErr() ([]*HPIgPost, error)
type HPMemberFilter
    func (f *HPMemberFilter) Where(p entql.P)
    func (f *HPMemberFilter) WhereArtistID(p entql.IntP)
    func (f *HPMemberFilter) WhereArtistKey(p entql.StringP)
    func (f *HPMemberFilter) WhereBloodType(p entql.StringP)
    func (f *HPMemberFilter) WhereCrawledAt(p entql.TimeP)
    func (f *HPMemberFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPMemberFilter) WhereDateOfBirth(p entql.TimeP)
    func (f *HPMemberFilter) WhereErrorCount(p entql.IntP)
    func (f *HPMemberFilter) WhereGraduateAt(p entql.TimeP)
    func (f *HPMemberFilter) WhereHasArtist()
    func (f *HPMemberFilter) WhereHasArtistWith(preds ...predicate.HPArtist)
    func (f *HPMemberFilter) WhereHasAssets()
    func (f *HPMemberFilter) WhereHasAssetsWith(preds ...predicate.HPAsset)
    func (f *HPMemberFilter) WhereHasFollowedBy()
    func (f *HPMemberFilter) WhereHasFollowedByWith(preds ...predicate.HPFollow)
    func (f *HPMemberFilter) WhereHasOwningAmebloPosts()
    func (f *HPMemberFilter) WhereHasOwningAmebloPostsWith(preds ...predicate.HPAmebloPost)
    func (f *HPMemberFilter) WhereHasOwningFeed()
    func (f *HPMemberFilter) WhereHasOwningFeedWith(preds ...predicate.HPFeedItem)
    func (f *HPMemberFilter) WhereHasOwningIgPosts()
    func (f *HPMemberFilter) WhereHasOwningIgPostsWith(preds ...predicate.HPIgPost)
    func (f *HPMemberFilter) WhereHasTaggedAmebloPosts()
    func (f *HPMemberFilter) WhereHasTaggedAmebloPostsWith(preds ...predicate.HPAmebloPost)
    func (f *HPMemberFilter) WhereHasTaggedElineupMallItems()
    func (f *HPMemberFilter) WhereHasTaggedElineupMallItemsWith(preds ...predicate.HPElineupMallItem)
    func (f *HPMemberFilter) WhereHasTaggedFeed()
    func (f *HPMemberFilter) WhereHasTaggedFeedWith(preds ...predicate.HPFeedItem)
    func (f *HPMemberFilter) WhereHasTaggedIgPosts()
    func (f *HPMemberFilter) WhereHasTaggedIgPostsWith(preds ...predicate.HPIgPost)
    func (f *HPMemberFilter) WhereHometown(p entql.StringP)
    func (f *HPMemberFilter) WhereID(p entql.IntP)
    func (f *HPMemberFilter) WhereJoinAt(p entql.TimeP)
    func (f *HPMemberFilter) WhereKey(p entql.StringP)
    func (f *HPMemberFilter) WhereLastErrorMessage(p entql.StringP)
    func (f *HPMemberFilter) WhereManuallyModified(p entql.BytesP)
    func (f *HPMemberFilter) WhereName(p entql.StringP)
    func (f *HPMemberFilter) WhereNameKana(p entql.StringP)
    func (f *HPMemberFilter) WhereRecrawlRequired(p entql.BoolP)
    func (f *HPMemberFilter) WhereThumbnailURL(p entql.StringP)
    func (f *HPMemberFilter) WhereUpdatedAt(p entql.TimeP)
type HPMemberGroupBy
    func (hmgb *HPMemberGroupBy) Aggregate(fns ...AggregateFunc) *HPMemberGroupBy
    func (s *HPMemberGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPMemberGroupBy) BoolX(ctx context.Context) bool
    func (s *HPMemberGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPMemberGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPMemberGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPMemberGroupBy) Float64X(ctx context.Context) float64
    func (s *HPMemberGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPMemberGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPMemberGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPMemberGroupBy) IntX(ctx context.Context) int
    func (s *HPMemberGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPMemberGroupBy) IntsX(ctx context.Context) []int
    func (hmgb *HPMemberGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPMemberGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPMemberGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPMemberGroupBy) StringX(ctx context.Context) string
    func (s *HPMemberGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPMemberGroupBy) StringsX(ctx context.Context) []string
type HPMemberMutation
    func (m *HPMemberMutation) AddAssetIDs(ids ...int)
    func (m *HPMemberMutation) AddErrorCount(i int)
    func (m *HPMemberMutation) AddField(name string, value ent.Value) error
    func (m *HPMemberMutation) AddFollowedByIDs(ids ...int)
    func (m *HPMemberMutation) AddOwningAmebloPostIDs(ids ...int)
    func (m *HPMemberMutation) AddOwningFeedIDs(ids ...int)
    func (m *HPMemberMutation) AddOwningIgPostIDs(ids ...int)
    func (m *HPMemberMutation) AddTaggedAmebloPostIDs(ids ...int)
    func (m *HPMemberMutation) AddTaggedElineupMallItemIDs(ids ...int)
    func (m *HPMemberMutation) AddTaggedFeedIDs(ids ...int)
    func (m *HPMemberMutation) AddTaggedIgPostIDs(ids ...int)
    func (m *HPMemberMutation) AddedEdges() []string
    func (m *HPMemberMutation) AddedErrorCount() (r int, exists bool)
    func (m *HPMemberMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPMemberMutation) AddedFields() []string
    func (m *HPMemberMutation) AddedIDs(name string) []ent.Value
    func (m *HPMemberMutation) ArtistCleared() bool
    func (m *HPMemberMutation) ArtistID() (r int, exists bool)
    func (m *HPMemberMutation) ArtistIDCleared() bool
    func (m *HPMemberMutation) ArtistIDs() (ids []int)
    func (m *HPMemberMutation) ArtistKey() (r string, exists bool)
    func (m *HPMemberMutation) AssetsCleared() bool
    func (m *HPMemberMutation) AssetsIDs() (ids []int)
    func (m *HPMemberMutation) BloodType() (r string, exists bool)
    func (m *HPMemberMutation) ClearArtist()
    func (m *HPMemberMutation) ClearArtistID()
    func (m *HPMemberMutation) ClearAssets()
    func (m *HPMemberMutation) ClearCrawledAt()
    func (m *HPMemberMutation) ClearCreatedAt()
    func (m *HPMemberMutation) ClearEdge(name string) error
    func (m *HPMemberMutation) ClearField(name string) error
    func (m *HPMemberMutation) ClearFollowedBy()
    func (m *HPMemberMutation) ClearGraduateAt()
    func (m *HPMemberMutation) ClearJoinAt()
    func (m *HPMemberMutation) ClearLastErrorMessage()
    func (m *HPMemberMutation) ClearManuallyModified()
    func (m *HPMemberMutation) ClearOwningAmebloPosts()
    func (m *HPMemberMutation) ClearOwningFeed()
    func (m *HPMemberMutation) ClearOwningIgPosts()
    func (m *HPMemberMutation) ClearRecrawlRequired()
    func (m *HPMemberMutation) ClearTaggedAmebloPosts()
    func (m *HPMemberMutation) ClearTaggedElineupMallItems()
    func (m *HPMemberMutation) ClearTaggedFeed()
    func (m *HPMemberMutation) ClearTaggedIgPosts()
    func (m *HPMemberMutation) ClearUpdatedAt()
    func (m *HPMemberMutation) ClearedEdges() []string
    func (m *HPMemberMutation) ClearedFields() []string
    func (m HPMemberMutation) Client() *Client
    func (m *HPMemberMutation) CrawledAt() (r time.Time, exists bool)
    func (m *HPMemberMutation) CrawledAtCleared() bool
    func (m *HPMemberMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPMemberMutation) CreatedAtCleared() bool
    func (m *HPMemberMutation) DateOfBirth() (r time.Time, exists bool)
    func (m *HPMemberMutation) EdgeCleared(name string) bool
    func (m *HPMemberMutation) ErrorCount() (r int, exists bool)
    func (m *HPMemberMutation) Field(name string) (ent.Value, bool)
    func (m *HPMemberMutation) FieldCleared(name string) bool
    func (m *HPMemberMutation) Fields() []string
    func (m *HPMemberMutation) Filter() *HPMemberFilter
    func (m *HPMemberMutation) FollowedByCleared() bool
    func (m *HPMemberMutation) FollowedByIDs() (ids []int)
    func (m *HPMemberMutation) GraduateAt() (r time.Time, exists bool)
    func (m *HPMemberMutation) GraduateAtCleared() bool
    func (m *HPMemberMutation) Hometown() (r string, exists bool)
    func (m *HPMemberMutation) ID() (id int, exists bool)
    func (m *HPMemberMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPMemberMutation) JoinAt() (r time.Time, exists bool)
    func (m *HPMemberMutation) JoinAtCleared() bool
    func (m *HPMemberMutation) Key() (r string, exists bool)
    func (m *HPMemberMutation) LastErrorMessage() (r string, exists bool)
    func (m *HPMemberMutation) LastErrorMessageCleared() bool
    func (m *HPMemberMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)
    func (m *HPMemberMutation) ManuallyModifiedCleared() bool
    func (m *HPMemberMutation) Name() (r string, exists bool)
    func (m *HPMemberMutation) NameKana() (r string, exists bool)
    func (m *HPMemberMutation) OldArtistID(ctx context.Context) (v *int, err error)
    func (m *HPMemberMutation) OldArtistKey(ctx context.Context) (v string, err error)
    func (m *HPMemberMutation) OldBloodType(ctx context.Context) (v string, err error)
    func (m *HPMemberMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPMemberMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPMemberMutation) OldDateOfBirth(ctx context.Context) (v time.Time, err error)
    func (m *HPMemberMutation) OldErrorCount(ctx context.Context) (v int, err error)
    func (m *HPMemberMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPMemberMutation) OldGraduateAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPMemberMutation) OldHometown(ctx context.Context) (v string, err error)
    func (m *HPMemberMutation) OldJoinAt(ctx context.Context) (v *time.Time, err error)
    func (m *HPMemberMutation) OldKey(ctx context.Context) (v string, err error)
    func (m *HPMemberMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)
    func (m *HPMemberMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)
    func (m *HPMemberMutation) OldName(ctx context.Context) (v string, err error)
    func (m *HPMemberMutation) OldNameKana(ctx context.Context) (v string, err error)
    func (m *HPMemberMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)
    func (m *HPMemberMutation) OldThumbnailURL(ctx context.Context) (v string, err error)
    func (m *HPMemberMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPMemberMutation) Op() Op
    func (m *HPMemberMutation) OwningAmebloPostsCleared() bool
    func (m *HPMemberMutation) OwningAmebloPostsIDs() (ids []int)
    func (m *HPMemberMutation) OwningFeedCleared() bool
    func (m *HPMemberMutation) OwningFeedIDs() (ids []int)
    func (m *HPMemberMutation) OwningIgPostsCleared() bool
    func (m *HPMemberMutation) OwningIgPostsIDs() (ids []int)
    func (m *HPMemberMutation) RecrawlRequired() (r bool, exists bool)
    func (m *HPMemberMutation) RecrawlRequiredCleared() bool
    func (m *HPMemberMutation) RemoveAssetIDs(ids ...int)
    func (m *HPMemberMutation) RemoveFollowedByIDs(ids ...int)
    func (m *HPMemberMutation) RemoveOwningAmebloPostIDs(ids ...int)
    func (m *HPMemberMutation) RemoveOwningFeedIDs(ids ...int)
    func (m *HPMemberMutation) RemoveOwningIgPostIDs(ids ...int)
    func (m *HPMemberMutation) RemoveTaggedAmebloPostIDs(ids ...int)
    func (m *HPMemberMutation) RemoveTaggedElineupMallItemIDs(ids ...int)
    func (m *HPMemberMutation) RemoveTaggedFeedIDs(ids ...int)
    func (m *HPMemberMutation) RemoveTaggedIgPostIDs(ids ...int)
    func (m *HPMemberMutation) RemovedAssetsIDs() (ids []int)
    func (m *HPMemberMutation) RemovedEdges() []string
    func (m *HPMemberMutation) RemovedFollowedByIDs() (ids []int)
    func (m *HPMemberMutation) RemovedIDs(name string) []ent.Value
    func (m *HPMemberMutation) RemovedOwningAmebloPostsIDs() (ids []int)
    func (m *HPMemberMutation) RemovedOwningFeedIDs() (ids []int)
    func (m *HPMemberMutation) RemovedOwningIgPostsIDs() (ids []int)
    func (m *HPMemberMutation) RemovedTaggedAmebloPostsIDs() (ids []int)
    func (m *HPMemberMutation) RemovedTaggedElineupMallItemsIDs() (ids []int)
    func (m *HPMemberMutation) RemovedTaggedFeedIDs() (ids []int)
    func (m *HPMemberMutation) RemovedTaggedIgPostsIDs() (ids []int)
    func (m *HPMemberMutation) ResetArtist()
    func (m *HPMemberMutation) ResetArtistID()
    func (m *HPMemberMutation) ResetArtistKey()
    func (m *HPMemberMutation) ResetAssets()
    func (m *HPMemberMutation) ResetBloodType()
    func (m *HPMemberMutation) ResetCrawledAt()
    func (m *HPMemberMutation) ResetCreatedAt()
    func (m *HPMemberMutation) ResetDateOfBirth()
    func (m *HPMemberMutation) ResetEdge(name string) error
    func (m *HPMemberMutation) ResetErrorCount()
    func (m *HPMemberMutation) ResetField(name string) error
    func (m *HPMemberMutation) ResetFollowedBy()
    func (m *HPMemberMutation) ResetGraduateAt()
    func (m *HPMemberMutation) ResetHometown()
    func (m *HPMemberMutation) ResetJoinAt()
    func (m *HPMemberMutation) ResetKey()
    func (m *HPMemberMutation) ResetLastErrorMessage()
    func (m *HPMemberMutation) ResetManuallyModified()
    func (m *HPMemberMutation) ResetName()
    func (m *HPMemberMutation) ResetNameKana()
    func (m *HPMemberMutation) ResetOwningAmebloPosts()
    func (m *HPMemberMutation) ResetOwningFeed()
    func (m *HPMemberMutation) ResetOwningIgPosts()
    func (m *HPMemberMutation) ResetRecrawlRequired()
    func (m *HPMemberMutation) ResetTaggedAmebloPosts()
    func (m *HPMemberMutation) ResetTaggedElineupMallItems()
    func (m *HPMemberMutation) ResetTaggedFeed()
    func (m *HPMemberMutation) ResetTaggedIgPosts()
    func (m *HPMemberMutation) ResetThumbnailURL()
    func (m *HPMemberMutation) ResetUpdatedAt()
    func (m *HPMemberMutation) SetArtistID(i int)
    func (m *HPMemberMutation) SetArtistKey(s string)
    func (m *HPMemberMutation) SetBloodType(s string)
    func (m *HPMemberMutation) SetCrawledAt(t time.Time)
    func (m *HPMemberMutation) SetCreatedAt(t time.Time)
    func (m *HPMemberMutation) SetDateOfBirth(t time.Time)
    func (m *HPMemberMutation) SetErrorCount(i int)
    func (m *HPMemberMutation) SetField(name string, value ent.Value) error
    func (m *HPMemberMutation) SetGraduateAt(t time.Time)
    func (m *HPMemberMutation) SetHometown(s string)
    func (m *HPMemberMutation) SetJoinAt(t time.Time)
    func (m *HPMemberMutation) SetKey(s string)
    func (m *HPMemberMutation) SetLastErrorMessage(s string)
    func (m *HPMemberMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)
    func (m *HPMemberMutation) SetName(s string)
    func (m *HPMemberMutation) SetNameKana(s string)
    func (m *HPMemberMutation) SetOp(op Op)
    func (m *HPMemberMutation) SetRecrawlRequired(b bool)
    func (m *HPMemberMutation) SetThumbnailURL(s string)
    func (m *HPMemberMutation) SetUpdatedAt(t time.Time)
    func (m *HPMemberMutation) TaggedAmebloPostsCleared() bool
    func (m *HPMemberMutation) TaggedAmebloPostsIDs() (ids []int)
    func (m *HPMemberMutation) TaggedElineupMallItemsCleared() bool
    func (m *HPMemberMutation) TaggedElineupMallItemsIDs() (ids []int)
    func (m *HPMemberMutation) TaggedFeedCleared() bool
    func (m *HPMemberMutation) TaggedFeedIDs() (ids []int)
    func (m *HPMemberMutation) TaggedIgPostsCleared() bool
    func (m *HPMemberMutation) TaggedIgPostsIDs() (ids []int)
    func (m *HPMemberMutation) ThumbnailURL() (r string, exists bool)
    func (m HPMemberMutation) Tx() (*Tx, error)
    func (m *HPMemberMutation) Type() string
    func (m *HPMemberMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPMemberMutation) UpdatedAtCleared() bool
    func (m *HPMemberMutation) Where(ps ...predicate.HPMember)
    func (m *HPMemberMutation) WhereP(ps ...func(*sql.Selector))
type HPMemberOrder
type HPMemberOrderField
type HPMemberPaginateOption
    func WithHPMemberFilter(filter func(*HPMemberQuery) (*HPMemberQuery, error)) HPMemberPaginateOption
    func WithHPMemberOrder(order *HPMemberOrder) HPMemberPaginateOption
type HPMemberQuery
    func (hmq *HPMemberQuery) Aggregate(fns ...AggregateFunc) *HPMemberSelect
    func (hmq *HPMemberQuery) All(ctx context.Context) ([]*HPMember, error)
    func (hmq *HPMemberQuery) AllX(ctx context.Context) []*HPMember
    func (hmq *HPMemberQuery) Clone() *HPMemberQuery
    func (hm *HPMemberQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPMemberQuery, error)
    func (hmq *HPMemberQuery) Count(ctx context.Context) (int, error)
    func (hmq *HPMemberQuery) CountX(ctx context.Context) int
    func (hmq *HPMemberQuery) Exist(ctx context.Context) (bool, error)
    func (hmq *HPMemberQuery) ExistX(ctx context.Context) bool
    func (hmq *HPMemberQuery) Filter() *HPMemberFilter
    func (hmq *HPMemberQuery) First(ctx context.Context) (*HPMember, error)
    func (hmq *HPMemberQuery) FirstID(ctx context.Context) (id int, err error)
    func (hmq *HPMemberQuery) FirstIDX(ctx context.Context) int
    func (hmq *HPMemberQuery) FirstX(ctx context.Context) *HPMember
    func (hmq *HPMemberQuery) GroupBy(field string, fields ...string) *HPMemberGroupBy
    func (hmq *HPMemberQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hmq *HPMemberQuery) IDsX(ctx context.Context) []int
    func (hmq *HPMemberQuery) Limit(limit int) *HPMemberQuery
    func (hmq *HPMemberQuery) Offset(offset int) *HPMemberQuery
    func (hmq *HPMemberQuery) Only(ctx context.Context) (*HPMember, error)
    func (hmq *HPMemberQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hmq *HPMemberQuery) OnlyIDX(ctx context.Context) int
    func (hmq *HPMemberQuery) OnlyX(ctx context.Context) *HPMember
    func (hmq *HPMemberQuery) Order(o ...hpmember.Order) *HPMemberQuery
    func (hm *HPMemberQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPMemberPaginateOption) (*HPMemberConnection, error)
    func (hmq *HPMemberQuery) QueryArtist() *HPArtistQuery
    func (hmq *HPMemberQuery) QueryAssets() *HPAssetQuery
    func (hmq *HPMemberQuery) QueryFollowedBy() *HPFollowQuery
    func (hmq *HPMemberQuery) QueryOwningAmebloPosts() *HPAmebloPostQuery
    func (hmq *HPMemberQuery) QueryOwningFeed() *HPFeedItemQuery
    func (hmq *HPMemberQuery) QueryOwningIgPosts() *HPIgPostQuery
    func (hmq *HPMemberQuery) QueryTaggedAmebloPosts() *HPAmebloPostQuery
    func (hmq *HPMemberQuery) QueryTaggedElineupMallItems() *HPElineupMallItemQuery
    func (hmq *HPMemberQuery) QueryTaggedFeed() *HPFeedItemQuery
    func (hmq *HPMemberQuery) QueryTaggedIgPosts() *HPIgPostQuery
    func (hmq *HPMemberQuery) Select(fields ...string) *HPMemberSelect
    func (hmq *HPMemberQuery) Unique(unique bool) *HPMemberQuery
    func (hmq *HPMemberQuery) Where(ps ...predicate.HPMember) *HPMemberQuery
    func (hmq *HPMemberQuery) WithArtist(opts ...func(*HPArtistQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithAssets(opts ...func(*HPAssetQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithFollowedBy(opts ...func(*HPFollowQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedAssets(name string, opts ...func(*HPAssetQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedFollowedBy(name string, opts ...func(*HPFollowQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedOwningAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedOwningFeed(name string, opts ...func(*HPFeedItemQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedOwningIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedTaggedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedTaggedElineupMallItems(name string, opts ...func(*HPElineupMallItemQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedTaggedFeed(name string, opts ...func(*HPFeedItemQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithNamedTaggedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithOwningAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithOwningFeed(opts ...func(*HPFeedItemQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithOwningIgPosts(opts ...func(*HPIgPostQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithTaggedAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithTaggedElineupMallItems(opts ...func(*HPElineupMallItemQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithTaggedFeed(opts ...func(*HPFeedItemQuery)) *HPMemberQuery
    func (hmq *HPMemberQuery) WithTaggedIgPosts(opts ...func(*HPIgPostQuery)) *HPMemberQuery
type HPMemberSelect
    func (hms *HPMemberSelect) Aggregate(fns ...AggregateFunc) *HPMemberSelect
    func (s *HPMemberSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPMemberSelect) BoolX(ctx context.Context) bool
    func (s *HPMemberSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPMemberSelect) BoolsX(ctx context.Context) []bool
    func (s *HPMemberSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPMemberSelect) Float64X(ctx context.Context) float64
    func (s *HPMemberSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPMemberSelect) Float64sX(ctx context.Context) []float64
    func (s *HPMemberSelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPMemberSelect) IntX(ctx context.Context) int
    func (s *HPMemberSelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPMemberSelect) IntsX(ctx context.Context) []int
    func (hms *HPMemberSelect) Scan(ctx context.Context, v any) error
    func (s *HPMemberSelect) ScanX(ctx context.Context, v any)
    func (s *HPMemberSelect) String(ctx context.Context) (_ string, err error)
    func (s *HPMemberSelect) StringX(ctx context.Context) string
    func (s *HPMemberSelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPMemberSelect) StringsX(ctx context.Context) []string
type HPMemberUpdate
    func (hmu *HPMemberUpdate) AddAssetIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddAssets(h ...*HPAsset) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddErrorCount(i int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddFollowedBy(h ...*HPFollow) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddFollowedByIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddOwningAmebloPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddOwningFeed(h ...*HPFeedItem) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddOwningFeedIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddOwningIgPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddOwningIgPosts(h ...*HPIgPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedAmebloPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedFeed(h ...*HPFeedItem) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedFeedIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedIgPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) AddTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearArtist() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearArtistID() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearAssets() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearCrawledAt() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearFollowedBy() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearGraduateAt() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearJoinAt() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearLastErrorMessage() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearManuallyModified() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearOwningAmebloPosts() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearOwningFeed() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearOwningIgPosts() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearRecrawlRequired() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearTaggedAmebloPosts() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearTaggedElineupMallItems() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearTaggedFeed() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearTaggedIgPosts() *HPMemberUpdate
    func (hmu *HPMemberUpdate) ClearUpdatedAt() *HPMemberUpdate
    func (hmu *HPMemberUpdate) Exec(ctx context.Context) error
    func (hmu *HPMemberUpdate) ExecX(ctx context.Context)
    func (hmu *HPMemberUpdate) Mutation() *HPMemberMutation
    func (hmu *HPMemberUpdate) RemoveAssetIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveAssets(h ...*HPAsset) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveFollowedBy(h ...*HPFollow) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveFollowedByIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveOwningAmebloPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveOwningFeed(h ...*HPFeedItem) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveOwningFeedIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveOwningIgPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveOwningIgPosts(h ...*HPIgPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedAmebloPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedFeed(h ...*HPFeedItem) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedFeedIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedIgPostIDs(ids ...int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) RemoveTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdate
    func (hmu *HPMemberUpdate) Save(ctx context.Context) (int, error)
    func (hmu *HPMemberUpdate) SaveX(ctx context.Context) int
    func (hmu *HPMemberUpdate) SetArtist(h *HPArtist) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetArtistID(i int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetArtistKey(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetBloodType(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetCrawledAt(t time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetDateOfBirth(t time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetErrorCount(i int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetGraduateAt(t time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetHometown(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetJoinAt(t time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetKey(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetLastErrorMessage(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetName(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNameKana(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableArtistID(i *int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableCrawledAt(t *time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableErrorCount(i *int) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableGraduateAt(t *time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableJoinAt(t *time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableLastErrorMessage(s *string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableRecrawlRequired(b *bool) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetNillableUpdatedAt(t *time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetRecrawlRequired(b bool) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetThumbnailURL(s string) *HPMemberUpdate
    func (hmu *HPMemberUpdate) SetUpdatedAt(t time.Time) *HPMemberUpdate
    func (hmu *HPMemberUpdate) Where(ps ...predicate.HPMember) *HPMemberUpdate
type HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddAssetIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddAssets(h ...*HPAsset) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddErrorCount(i int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddFollowedBy(h ...*HPFollow) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddFollowedByIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddOwningAmebloPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddOwningFeed(h ...*HPFeedItem) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddOwningFeedIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddOwningIgPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddOwningIgPosts(h ...*HPIgPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedAmebloPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedFeed(h ...*HPFeedItem) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedFeedIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedIgPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) AddTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearArtist() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearArtistID() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearAssets() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearCrawledAt() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearFollowedBy() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearGraduateAt() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearJoinAt() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearLastErrorMessage() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearManuallyModified() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearOwningAmebloPosts() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearOwningFeed() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearOwningIgPosts() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearRecrawlRequired() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearTaggedAmebloPosts() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearTaggedElineupMallItems() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearTaggedFeed() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearTaggedIgPosts() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) ClearUpdatedAt() *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) Exec(ctx context.Context) error
    func (hmuo *HPMemberUpdateOne) ExecX(ctx context.Context)
    func (hmuo *HPMemberUpdateOne) Mutation() *HPMemberMutation
    func (hmuo *HPMemberUpdateOne) RemoveAssetIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveAssets(h ...*HPAsset) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveFollowedBy(h ...*HPFollow) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveFollowedByIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveOwningAmebloPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveOwningFeed(h ...*HPFeedItem) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveOwningFeedIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveOwningIgPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveOwningIgPosts(h ...*HPIgPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedAmebloPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedFeed(h ...*HPFeedItem) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedFeedIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedIgPostIDs(ids ...int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) RemoveTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) Save(ctx context.Context) (*HPMember, error)
    func (hmuo *HPMemberUpdateOne) SaveX(ctx context.Context) *HPMember
    func (hmuo *HPMemberUpdateOne) Select(field string, fields ...string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetArtist(h *HPArtist) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetArtistID(i int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetArtistKey(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetBloodType(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetCrawledAt(t time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetDateOfBirth(t time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetErrorCount(i int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetGraduateAt(t time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetHometown(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetJoinAt(t time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetKey(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetLastErrorMessage(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetName(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNameKana(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableArtistID(i *int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableCrawledAt(t *time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableErrorCount(i *int) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableGraduateAt(t *time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableJoinAt(t *time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableLastErrorMessage(s *string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableRecrawlRequired(b *bool) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetRecrawlRequired(b bool) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetThumbnailURL(s string) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) SetUpdatedAt(t time.Time) *HPMemberUpdateOne
    func (hmuo *HPMemberUpdateOne) Where(ps ...predicate.HPMember) *HPMemberUpdateOne
type HPMemberUpsert
    func (u *HPMemberUpsert) AddErrorCount(v int) *HPMemberUpsert
    func (u *HPMemberUpsert) ClearArtistID() *HPMemberUpsert
    func (u *HPMemberUpsert) ClearCrawledAt() *HPMemberUpsert
    func (u *HPMemberUpsert) ClearGraduateAt() *HPMemberUpsert
    func (u *HPMemberUpsert) ClearJoinAt() *HPMemberUpsert
    func (u *HPMemberUpsert) ClearLastErrorMessage() *HPMemberUpsert
    func (u *HPMemberUpsert) ClearManuallyModified() *HPMemberUpsert
    func (u *HPMemberUpsert) ClearRecrawlRequired() *HPMemberUpsert
    func (u *HPMemberUpsert) ClearUpdatedAt() *HPMemberUpsert
    func (u *HPMemberUpsert) SetArtistID(v int) *HPMemberUpsert
    func (u *HPMemberUpsert) SetArtistKey(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetBloodType(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetCrawledAt(v time.Time) *HPMemberUpsert
    func (u *HPMemberUpsert) SetDateOfBirth(v time.Time) *HPMemberUpsert
    func (u *HPMemberUpsert) SetErrorCount(v int) *HPMemberUpsert
    func (u *HPMemberUpsert) SetGraduateAt(v time.Time) *HPMemberUpsert
    func (u *HPMemberUpsert) SetHometown(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetJoinAt(v time.Time) *HPMemberUpsert
    func (u *HPMemberUpsert) SetKey(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetLastErrorMessage(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPMemberUpsert
    func (u *HPMemberUpsert) SetName(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetNameKana(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetRecrawlRequired(v bool) *HPMemberUpsert
    func (u *HPMemberUpsert) SetThumbnailURL(v string) *HPMemberUpsert
    func (u *HPMemberUpsert) SetUpdatedAt(v time.Time) *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateArtistID() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateArtistKey() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateBloodType() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateCrawledAt() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateDateOfBirth() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateErrorCount() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateGraduateAt() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateHometown() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateJoinAt() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateKey() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateLastErrorMessage() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateManuallyModified() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateName() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateNameKana() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateRecrawlRequired() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateThumbnailURL() *HPMemberUpsert
    func (u *HPMemberUpsert) UpdateUpdatedAt() *HPMemberUpsert
type HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) AddErrorCount(v int) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearArtistID() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearCrawledAt() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearGraduateAt() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearJoinAt() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearLastErrorMessage() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearManuallyModified() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearRecrawlRequired() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) ClearUpdatedAt() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) DoNothing() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) Exec(ctx context.Context) error
    func (u *HPMemberUpsertBulk) ExecX(ctx context.Context)
    func (u *HPMemberUpsertBulk) Ignore() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetArtistID(v int) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetArtistKey(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetBloodType(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetCrawledAt(v time.Time) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetDateOfBirth(v time.Time) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetErrorCount(v int) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetGraduateAt(v time.Time) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetHometown(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetJoinAt(v time.Time) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetKey(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetLastErrorMessage(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetName(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetNameKana(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetRecrawlRequired(v bool) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetThumbnailURL(v string) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) SetUpdatedAt(v time.Time) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) Update(set func(*HPMemberUpsert)) *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateArtistID() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateArtistKey() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateBloodType() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateCrawledAt() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateDateOfBirth() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateErrorCount() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateGraduateAt() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateHometown() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateJoinAt() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateKey() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateLastErrorMessage() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateManuallyModified() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateName() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateNameKana() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateNewValues() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateRecrawlRequired() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateThumbnailURL() *HPMemberUpsertBulk
    func (u *HPMemberUpsertBulk) UpdateUpdatedAt() *HPMemberUpsertBulk
type HPMemberUpsertOne
    func (u *HPMemberUpsertOne) AddErrorCount(v int) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearArtistID() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearCrawledAt() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearGraduateAt() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearJoinAt() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearLastErrorMessage() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearManuallyModified() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearRecrawlRequired() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) ClearUpdatedAt() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) DoNothing() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) Exec(ctx context.Context) error
    func (u *HPMemberUpsertOne) ExecX(ctx context.Context)
    func (u *HPMemberUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPMemberUpsertOne) IDX(ctx context.Context) int
    func (u *HPMemberUpsertOne) Ignore() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetArtistID(v int) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetArtistKey(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetBloodType(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetCrawledAt(v time.Time) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetDateOfBirth(v time.Time) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetErrorCount(v int) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetGraduateAt(v time.Time) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetHometown(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetJoinAt(v time.Time) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetKey(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetLastErrorMessage(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetName(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetNameKana(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetRecrawlRequired(v bool) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetThumbnailURL(v string) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) SetUpdatedAt(v time.Time) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) Update(set func(*HPMemberUpsert)) *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateArtistID() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateArtistKey() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateBloodType() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateCrawledAt() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateDateOfBirth() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateErrorCount() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateGraduateAt() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateHometown() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateJoinAt() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateKey() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateLastErrorMessage() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateManuallyModified() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateName() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateNameKana() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateNewValues() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateRecrawlRequired() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateThumbnailURL() *HPMemberUpsertOne
    func (u *HPMemberUpsertOne) UpdateUpdatedAt() *HPMemberUpsertOne
type HPMembers
type HPSortHistories
type HPSortHistory
    func (n *HPSortHistory) IsNode()
    func (hsh *HPSortHistory) Owner(ctx context.Context) (*User, error)
    func (hsh *HPSortHistory) QueryOwner() *UserQuery
    func (hsh *HPSortHistory) String() string
    func (hsh *HPSortHistory) ToEdge(order *HPSortHistoryOrder) *HPSortHistoryEdge
    func (hsh *HPSortHistory) Unwrap() *HPSortHistory
    func (hsh *HPSortHistory) Update() *HPSortHistoryUpdateOne
    func (hsh *HPSortHistory) Value(name string) (ent.Value, error)
type HPSortHistoryClient
    func NewHPSortHistoryClient(c config) *HPSortHistoryClient
    func (c *HPSortHistoryClient) Create() *HPSortHistoryCreate
    func (c *HPSortHistoryClient) CreateBulk(builders ...*HPSortHistoryCreate) *HPSortHistoryCreateBulk
    func (c *HPSortHistoryClient) Delete() *HPSortHistoryDelete
    func (c *HPSortHistoryClient) DeleteOne(hsh *HPSortHistory) *HPSortHistoryDeleteOne
    func (c *HPSortHistoryClient) DeleteOneID(id int) *HPSortHistoryDeleteOne
    func (c *HPSortHistoryClient) Get(ctx context.Context, id int) (*HPSortHistory, error)
    func (c *HPSortHistoryClient) GetX(ctx context.Context, id int) *HPSortHistory
    func (c *HPSortHistoryClient) Hooks() []Hook
    func (c *HPSortHistoryClient) Intercept(interceptors ...Interceptor)
    func (c *HPSortHistoryClient) Interceptors() []Interceptor
    func (c *HPSortHistoryClient) Query() *HPSortHistoryQuery
    func (c *HPSortHistoryClient) QueryOwner(hsh *HPSortHistory) *UserQuery
    func (c *HPSortHistoryClient) Update() *HPSortHistoryUpdate
    func (c *HPSortHistoryClient) UpdateOne(hsh *HPSortHistory) *HPSortHistoryUpdateOne
    func (c *HPSortHistoryClient) UpdateOneID(id int) *HPSortHistoryUpdateOne
    func (c *HPSortHistoryClient) Use(hooks ...Hook)
type HPSortHistoryConnection
type HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) Exec(ctx context.Context) error
    func (hshc *HPSortHistoryCreate) ExecX(ctx context.Context)
    func (hshc *HPSortHistoryCreate) Mutation() *HPSortHistoryMutation
    func (hshc *HPSortHistoryCreate) OnConflict(opts ...sql.ConflictOption) *HPSortHistoryUpsertOne
    func (hshc *HPSortHistoryCreate) OnConflictColumns(columns ...string) *HPSortHistoryUpsertOne
    func (hshc *HPSortHistoryCreate) Save(ctx context.Context) (*HPSortHistory, error)
    func (hshc *HPSortHistoryCreate) SaveX(ctx context.Context) *HPSortHistory
    func (hshc *HPSortHistoryCreate) SetCreatedAt(t time.Time) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetNillableCreatedAt(t *time.Time) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetNillableOwnerID(id *int) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetNillableOwnerUserID(i *int) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetNillableUpdatedAt(t *time.Time) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetOwner(u *User) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetOwnerID(id int) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetOwnerUserID(i int) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetSortResult(jsr jsonfields.HPSortResult) *HPSortHistoryCreate
    func (hshc *HPSortHistoryCreate) SetUpdatedAt(t time.Time) *HPSortHistoryCreate
type HPSortHistoryCreateBulk
    func (hshcb *HPSortHistoryCreateBulk) Exec(ctx context.Context) error
    func (hshcb *HPSortHistoryCreateBulk) ExecX(ctx context.Context)
    func (hshcb *HPSortHistoryCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPSortHistoryUpsertBulk
    func (hshcb *HPSortHistoryCreateBulk) OnConflictColumns(columns ...string) *HPSortHistoryUpsertBulk
    func (hshcb *HPSortHistoryCreateBulk) Save(ctx context.Context) ([]*HPSortHistory, error)
    func (hshcb *HPSortHistoryCreateBulk) SaveX(ctx context.Context) []*HPSortHistory
type HPSortHistoryDelete
    func (hshd *HPSortHistoryDelete) Exec(ctx context.Context) (int, error)
    func (hshd *HPSortHistoryDelete) ExecX(ctx context.Context) int
    func (hshd *HPSortHistoryDelete) Where(ps ...predicate.HPSortHistory) *HPSortHistoryDelete
type HPSortHistoryDeleteOne
    func (hshdo *HPSortHistoryDeleteOne) Exec(ctx context.Context) error
    func (hshdo *HPSortHistoryDeleteOne) ExecX(ctx context.Context)
    func (hshdo *HPSortHistoryDeleteOne) Where(ps ...predicate.HPSortHistory) *HPSortHistoryDeleteOne
type HPSortHistoryEdge
type HPSortHistoryEdges
    func (e HPSortHistoryEdges) OwnerOrErr() (*User, error)
type HPSortHistoryFilter
    func (f *HPSortHistoryFilter) Where(p entql.P)
    func (f *HPSortHistoryFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPSortHistoryFilter) WhereHasOwner()
    func (f *HPSortHistoryFilter) WhereHasOwnerWith(preds ...predicate.User)
    func (f *HPSortHistoryFilter) WhereID(p entql.IntP)
    func (f *HPSortHistoryFilter) WhereOwnerUserID(p entql.IntP)
    func (f *HPSortHistoryFilter) WhereSortResult(p entql.BytesP)
    func (f *HPSortHistoryFilter) WhereUpdatedAt(p entql.TimeP)
type HPSortHistoryGroupBy
    func (hshgb *HPSortHistoryGroupBy) Aggregate(fns ...AggregateFunc) *HPSortHistoryGroupBy
    func (s *HPSortHistoryGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPSortHistoryGroupBy) BoolX(ctx context.Context) bool
    func (s *HPSortHistoryGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPSortHistoryGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPSortHistoryGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPSortHistoryGroupBy) Float64X(ctx context.Context) float64
    func (s *HPSortHistoryGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPSortHistoryGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPSortHistoryGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPSortHistoryGroupBy) IntX(ctx context.Context) int
    func (s *HPSortHistoryGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPSortHistoryGroupBy) IntsX(ctx context.Context) []int
    func (hshgb *HPSortHistoryGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPSortHistoryGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPSortHistoryGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPSortHistoryGroupBy) StringX(ctx context.Context) string
    func (s *HPSortHistoryGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPSortHistoryGroupBy) StringsX(ctx context.Context) []string
type HPSortHistoryMutation
    func (m *HPSortHistoryMutation) AddField(name string, value ent.Value) error
    func (m *HPSortHistoryMutation) AddedEdges() []string
    func (m *HPSortHistoryMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPSortHistoryMutation) AddedFields() []string
    func (m *HPSortHistoryMutation) AddedIDs(name string) []ent.Value
    func (m *HPSortHistoryMutation) ClearCreatedAt()
    func (m *HPSortHistoryMutation) ClearEdge(name string) error
    func (m *HPSortHistoryMutation) ClearField(name string) error
    func (m *HPSortHistoryMutation) ClearOwner()
    func (m *HPSortHistoryMutation) ClearOwnerUserID()
    func (m *HPSortHistoryMutation) ClearUpdatedAt()
    func (m *HPSortHistoryMutation) ClearedEdges() []string
    func (m *HPSortHistoryMutation) ClearedFields() []string
    func (m HPSortHistoryMutation) Client() *Client
    func (m *HPSortHistoryMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPSortHistoryMutation) CreatedAtCleared() bool
    func (m *HPSortHistoryMutation) EdgeCleared(name string) bool
    func (m *HPSortHistoryMutation) Field(name string) (ent.Value, bool)
    func (m *HPSortHistoryMutation) FieldCleared(name string) bool
    func (m *HPSortHistoryMutation) Fields() []string
    func (m *HPSortHistoryMutation) Filter() *HPSortHistoryFilter
    func (m *HPSortHistoryMutation) ID() (id int, exists bool)
    func (m *HPSortHistoryMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPSortHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPSortHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPSortHistoryMutation) OldOwnerUserID(ctx context.Context) (v *int, err error)
    func (m *HPSortHistoryMutation) OldSortResult(ctx context.Context) (v jsonfields.HPSortResult, err error)
    func (m *HPSortHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPSortHistoryMutation) Op() Op
    func (m *HPSortHistoryMutation) OwnerCleared() bool
    func (m *HPSortHistoryMutation) OwnerID() (id int, exists bool)
    func (m *HPSortHistoryMutation) OwnerIDs() (ids []int)
    func (m *HPSortHistoryMutation) OwnerUserID() (r int, exists bool)
    func (m *HPSortHistoryMutation) OwnerUserIDCleared() bool
    func (m *HPSortHistoryMutation) RemovedEdges() []string
    func (m *HPSortHistoryMutation) RemovedIDs(name string) []ent.Value
    func (m *HPSortHistoryMutation) ResetCreatedAt()
    func (m *HPSortHistoryMutation) ResetEdge(name string) error
    func (m *HPSortHistoryMutation) ResetField(name string) error
    func (m *HPSortHistoryMutation) ResetOwner()
    func (m *HPSortHistoryMutation) ResetOwnerUserID()
    func (m *HPSortHistoryMutation) ResetSortResult()
    func (m *HPSortHistoryMutation) ResetUpdatedAt()
    func (m *HPSortHistoryMutation) SetCreatedAt(t time.Time)
    func (m *HPSortHistoryMutation) SetField(name string, value ent.Value) error
    func (m *HPSortHistoryMutation) SetOp(op Op)
    func (m *HPSortHistoryMutation) SetOwnerID(id int)
    func (m *HPSortHistoryMutation) SetOwnerUserID(i int)
    func (m *HPSortHistoryMutation) SetSortResult(jsr jsonfields.HPSortResult)
    func (m *HPSortHistoryMutation) SetUpdatedAt(t time.Time)
    func (m *HPSortHistoryMutation) SortResult() (r jsonfields.HPSortResult, exists bool)
    func (m HPSortHistoryMutation) Tx() (*Tx, error)
    func (m *HPSortHistoryMutation) Type() string
    func (m *HPSortHistoryMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPSortHistoryMutation) UpdatedAtCleared() bool
    func (m *HPSortHistoryMutation) Where(ps ...predicate.HPSortHistory)
    func (m *HPSortHistoryMutation) WhereP(ps ...func(*sql.Selector))
type HPSortHistoryOrder
type HPSortHistoryOrderField
type HPSortHistoryPaginateOption
    func WithHPSortHistoryFilter(filter func(*HPSortHistoryQuery) (*HPSortHistoryQuery, error)) HPSortHistoryPaginateOption
    func WithHPSortHistoryOrder(order *HPSortHistoryOrder) HPSortHistoryPaginateOption
type HPSortHistoryQuery
    func (hshq *HPSortHistoryQuery) Aggregate(fns ...AggregateFunc) *HPSortHistorySelect
    func (hshq *HPSortHistoryQuery) All(ctx context.Context) ([]*HPSortHistory, error)
    func (hshq *HPSortHistoryQuery) AllX(ctx context.Context) []*HPSortHistory
    func (hshq *HPSortHistoryQuery) Clone() *HPSortHistoryQuery
    func (hsh *HPSortHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPSortHistoryQuery, error)
    func (hshq *HPSortHistoryQuery) Count(ctx context.Context) (int, error)
    func (hshq *HPSortHistoryQuery) CountX(ctx context.Context) int
    func (hshq *HPSortHistoryQuery) Exist(ctx context.Context) (bool, error)
    func (hshq *HPSortHistoryQuery) ExistX(ctx context.Context) bool
    func (hshq *HPSortHistoryQuery) Filter() *HPSortHistoryFilter
    func (hshq *HPSortHistoryQuery) First(ctx context.Context) (*HPSortHistory, error)
    func (hshq *HPSortHistoryQuery) FirstID(ctx context.Context) (id int, err error)
    func (hshq *HPSortHistoryQuery) FirstIDX(ctx context.Context) int
    func (hshq *HPSortHistoryQuery) FirstX(ctx context.Context) *HPSortHistory
    func (hshq *HPSortHistoryQuery) GroupBy(field string, fields ...string) *HPSortHistoryGroupBy
    func (hshq *HPSortHistoryQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hshq *HPSortHistoryQuery) IDsX(ctx context.Context) []int
    func (hshq *HPSortHistoryQuery) Limit(limit int) *HPSortHistoryQuery
    func (hshq *HPSortHistoryQuery) Offset(offset int) *HPSortHistoryQuery
    func (hshq *HPSortHistoryQuery) Only(ctx context.Context) (*HPSortHistory, error)
    func (hshq *HPSortHistoryQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hshq *HPSortHistoryQuery) OnlyIDX(ctx context.Context) int
    func (hshq *HPSortHistoryQuery) OnlyX(ctx context.Context) *HPSortHistory
    func (hshq *HPSortHistoryQuery) Order(o ...hpsorthistory.Order) *HPSortHistoryQuery
    func (hsh *HPSortHistoryQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPSortHistoryPaginateOption) (*HPSortHistoryConnection, error)
    func (hshq *HPSortHistoryQuery) QueryOwner() *UserQuery
    func (hshq *HPSortHistoryQuery) Select(fields ...string) *HPSortHistorySelect
    func (hshq *HPSortHistoryQuery) Unique(unique bool) *HPSortHistoryQuery
    func (hshq *HPSortHistoryQuery) Where(ps ...predicate.HPSortHistory) *HPSortHistoryQuery
    func (hshq *HPSortHistoryQuery) WithOwner(opts ...func(*UserQuery)) *HPSortHistoryQuery
type HPSortHistorySelect
    func (hshs *HPSortHistorySelect) Aggregate(fns ...AggregateFunc) *HPSortHistorySelect
    func (s *HPSortHistorySelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPSortHistorySelect) BoolX(ctx context.Context) bool
    func (s *HPSortHistorySelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPSortHistorySelect) BoolsX(ctx context.Context) []bool
    func (s *HPSortHistorySelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPSortHistorySelect) Float64X(ctx context.Context) float64
    func (s *HPSortHistorySelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPSortHistorySelect) Float64sX(ctx context.Context) []float64
    func (s *HPSortHistorySelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPSortHistorySelect) IntX(ctx context.Context) int
    func (s *HPSortHistorySelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPSortHistorySelect) IntsX(ctx context.Context) []int
    func (hshs *HPSortHistorySelect) Scan(ctx context.Context, v any) error
    func (s *HPSortHistorySelect) ScanX(ctx context.Context, v any)
    func (s *HPSortHistorySelect) String(ctx context.Context) (_ string, err error)
    func (s *HPSortHistorySelect) StringX(ctx context.Context) string
    func (s *HPSortHistorySelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPSortHistorySelect) StringsX(ctx context.Context) []string
type HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) ClearOwner() *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) ClearOwnerUserID() *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) ClearUpdatedAt() *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) Exec(ctx context.Context) error
    func (hshu *HPSortHistoryUpdate) ExecX(ctx context.Context)
    func (hshu *HPSortHistoryUpdate) Mutation() *HPSortHistoryMutation
    func (hshu *HPSortHistoryUpdate) Save(ctx context.Context) (int, error)
    func (hshu *HPSortHistoryUpdate) SaveX(ctx context.Context) int
    func (hshu *HPSortHistoryUpdate) SetNillableOwnerID(id *int) *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) SetNillableOwnerUserID(i *int) *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) SetNillableUpdatedAt(t *time.Time) *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) SetOwner(u *User) *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) SetOwnerID(id int) *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) SetOwnerUserID(i int) *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) SetUpdatedAt(t time.Time) *HPSortHistoryUpdate
    func (hshu *HPSortHistoryUpdate) Where(ps ...predicate.HPSortHistory) *HPSortHistoryUpdate
type HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) ClearOwner() *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) ClearOwnerUserID() *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) ClearUpdatedAt() *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) Exec(ctx context.Context) error
    func (hshuo *HPSortHistoryUpdateOne) ExecX(ctx context.Context)
    func (hshuo *HPSortHistoryUpdateOne) Mutation() *HPSortHistoryMutation
    func (hshuo *HPSortHistoryUpdateOne) Save(ctx context.Context) (*HPSortHistory, error)
    func (hshuo *HPSortHistoryUpdateOne) SaveX(ctx context.Context) *HPSortHistory
    func (hshuo *HPSortHistoryUpdateOne) Select(field string, fields ...string) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) SetNillableOwnerID(id *int) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) SetNillableOwnerUserID(i *int) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) SetOwner(u *User) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) SetOwnerID(id int) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) SetOwnerUserID(i int) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) SetUpdatedAt(t time.Time) *HPSortHistoryUpdateOne
    func (hshuo *HPSortHistoryUpdateOne) Where(ps ...predicate.HPSortHistory) *HPSortHistoryUpdateOne
type HPSortHistoryUpsert
    func (u *HPSortHistoryUpsert) ClearOwnerUserID() *HPSortHistoryUpsert
    func (u *HPSortHistoryUpsert) ClearUpdatedAt() *HPSortHistoryUpsert
    func (u *HPSortHistoryUpsert) SetOwnerUserID(v int) *HPSortHistoryUpsert
    func (u *HPSortHistoryUpsert) SetUpdatedAt(v time.Time) *HPSortHistoryUpsert
    func (u *HPSortHistoryUpsert) UpdateOwnerUserID() *HPSortHistoryUpsert
    func (u *HPSortHistoryUpsert) UpdateUpdatedAt() *HPSortHistoryUpsert
type HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) ClearOwnerUserID() *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) ClearUpdatedAt() *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) DoNothing() *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) Exec(ctx context.Context) error
    func (u *HPSortHistoryUpsertBulk) ExecX(ctx context.Context)
    func (u *HPSortHistoryUpsertBulk) Ignore() *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) SetOwnerUserID(v int) *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) SetUpdatedAt(v time.Time) *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) Update(set func(*HPSortHistoryUpsert)) *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) UpdateNewValues() *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) UpdateOwnerUserID() *HPSortHistoryUpsertBulk
    func (u *HPSortHistoryUpsertBulk) UpdateUpdatedAt() *HPSortHistoryUpsertBulk
type HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) ClearOwnerUserID() *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) ClearUpdatedAt() *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) DoNothing() *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) Exec(ctx context.Context) error
    func (u *HPSortHistoryUpsertOne) ExecX(ctx context.Context)
    func (u *HPSortHistoryUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPSortHistoryUpsertOne) IDX(ctx context.Context) int
    func (u *HPSortHistoryUpsertOne) Ignore() *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) SetOwnerUserID(v int) *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) SetUpdatedAt(v time.Time) *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) Update(set func(*HPSortHistoryUpsert)) *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) UpdateNewValues() *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) UpdateOwnerUserID() *HPSortHistoryUpsertOne
    func (u *HPSortHistoryUpsertOne) UpdateUpdatedAt() *HPSortHistoryUpsertOne
type HPViewHistories
type HPViewHistory
    func (hvh *HPViewHistory) Feed(ctx context.Context) (*HPFeedItem, error)
    func (n *HPViewHistory) IsNode()
    func (hvh *HPViewHistory) QueryFeed() *HPFeedItemQuery
    func (hvh *HPViewHistory) QueryUser() *UserQuery
    func (hvh *HPViewHistory) String() string
    func (hvh *HPViewHistory) ToEdge(order *HPViewHistoryOrder) *HPViewHistoryEdge
    func (hvh *HPViewHistory) Unwrap() *HPViewHistory
    func (hvh *HPViewHistory) Update() *HPViewHistoryUpdateOne
    func (hvh *HPViewHistory) Value(name string) (ent.Value, error)
type HPViewHistoryClient
    func NewHPViewHistoryClient(c config) *HPViewHistoryClient
    func (c *HPViewHistoryClient) Create() *HPViewHistoryCreate
    func (c *HPViewHistoryClient) CreateBulk(builders ...*HPViewHistoryCreate) *HPViewHistoryCreateBulk
    func (c *HPViewHistoryClient) Delete() *HPViewHistoryDelete
    func (c *HPViewHistoryClient) DeleteOne(hvh *HPViewHistory) *HPViewHistoryDeleteOne
    func (c *HPViewHistoryClient) DeleteOneID(id int) *HPViewHistoryDeleteOne
    func (c *HPViewHistoryClient) Get(ctx context.Context, id int) (*HPViewHistory, error)
    func (c *HPViewHistoryClient) GetX(ctx context.Context, id int) *HPViewHistory
    func (c *HPViewHistoryClient) Hooks() []Hook
    func (c *HPViewHistoryClient) Intercept(interceptors ...Interceptor)
    func (c *HPViewHistoryClient) Interceptors() []Interceptor
    func (c *HPViewHistoryClient) Query() *HPViewHistoryQuery
    func (c *HPViewHistoryClient) QueryFeed(hvh *HPViewHistory) *HPFeedItemQuery
    func (c *HPViewHistoryClient) QueryUser(hvh *HPViewHistory) *UserQuery
    func (c *HPViewHistoryClient) Update() *HPViewHistoryUpdate
    func (c *HPViewHistoryClient) UpdateOne(hvh *HPViewHistory) *HPViewHistoryUpdateOne
    func (c *HPViewHistoryClient) UpdateOneID(id int) *HPViewHistoryUpdateOne
    func (c *HPViewHistoryClient) Use(hooks ...Hook)
type HPViewHistoryConnection
type HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) Exec(ctx context.Context) error
    func (hvhc *HPViewHistoryCreate) ExecX(ctx context.Context)
    func (hvhc *HPViewHistoryCreate) Mutation() *HPViewHistoryMutation
    func (hvhc *HPViewHistoryCreate) OnConflict(opts ...sql.ConflictOption) *HPViewHistoryUpsertOne
    func (hvhc *HPViewHistoryCreate) OnConflictColumns(columns ...string) *HPViewHistoryUpsertOne
    func (hvhc *HPViewHistoryCreate) Save(ctx context.Context) (*HPViewHistory, error)
    func (hvhc *HPViewHistoryCreate) SaveX(ctx context.Context) *HPViewHistory
    func (hvhc *HPViewHistoryCreate) SetAssetType(eat enums.HPAssetType) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetContentID(i int) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetContentPostAt(t time.Time) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetCreatedAt(t time.Time) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetFeed(h *HPFeedItem) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetFeedID(id int) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetIsFavorite(b bool) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetNillableCreatedAt(t *time.Time) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetNillableFeedID(id *int) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetNillableIsFavorite(b *bool) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetNillableUpdatedAt(t *time.Time) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetOwnerUserID(i int) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetUpdatedAt(t time.Time) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetUser(u *User) *HPViewHistoryCreate
    func (hvhc *HPViewHistoryCreate) SetUserID(id int) *HPViewHistoryCreate
type HPViewHistoryCreateBulk
    func (hvhcb *HPViewHistoryCreateBulk) Exec(ctx context.Context) error
    func (hvhcb *HPViewHistoryCreateBulk) ExecX(ctx context.Context)
    func (hvhcb *HPViewHistoryCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPViewHistoryUpsertBulk
    func (hvhcb *HPViewHistoryCreateBulk) OnConflictColumns(columns ...string) *HPViewHistoryUpsertBulk
    func (hvhcb *HPViewHistoryCreateBulk) Save(ctx context.Context) ([]*HPViewHistory, error)
    func (hvhcb *HPViewHistoryCreateBulk) SaveX(ctx context.Context) []*HPViewHistory
type HPViewHistoryDelete
    func (hvhd *HPViewHistoryDelete) Exec(ctx context.Context) (int, error)
    func (hvhd *HPViewHistoryDelete) ExecX(ctx context.Context) int
    func (hvhd *HPViewHistoryDelete) Where(ps ...predicate.HPViewHistory) *HPViewHistoryDelete
type HPViewHistoryDeleteOne
    func (hvhdo *HPViewHistoryDeleteOne) Exec(ctx context.Context) error
    func (hvhdo *HPViewHistoryDeleteOne) ExecX(ctx context.Context)
    func (hvhdo *HPViewHistoryDeleteOne) Where(ps ...predicate.HPViewHistory) *HPViewHistoryDeleteOne
type HPViewHistoryEdge
type HPViewHistoryEdges
    func (e HPViewHistoryEdges) FeedOrErr() (*HPFeedItem, error)
    func (e HPViewHistoryEdges) UserOrErr() (*User, error)
type HPViewHistoryFilter
    func (f *HPViewHistoryFilter) Where(p entql.P)
    func (f *HPViewHistoryFilter) WhereAssetType(p entql.StringP)
    func (f *HPViewHistoryFilter) WhereContentID(p entql.IntP)
    func (f *HPViewHistoryFilter) WhereContentPostAt(p entql.TimeP)
    func (f *HPViewHistoryFilter) WhereCreatedAt(p entql.TimeP)
    func (f *HPViewHistoryFilter) WhereHasFeed()
    func (f *HPViewHistoryFilter) WhereHasFeedWith(preds ...predicate.HPFeedItem)
    func (f *HPViewHistoryFilter) WhereHasUser()
    func (f *HPViewHistoryFilter) WhereHasUserWith(preds ...predicate.User)
    func (f *HPViewHistoryFilter) WhereID(p entql.IntP)
    func (f *HPViewHistoryFilter) WhereIsFavorite(p entql.BoolP)
    func (f *HPViewHistoryFilter) WhereOwnerUserID(p entql.IntP)
    func (f *HPViewHistoryFilter) WhereUpdatedAt(p entql.TimeP)
type HPViewHistoryGroupBy
    func (hvhgb *HPViewHistoryGroupBy) Aggregate(fns ...AggregateFunc) *HPViewHistoryGroupBy
    func (s *HPViewHistoryGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPViewHistoryGroupBy) BoolX(ctx context.Context) bool
    func (s *HPViewHistoryGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *HPViewHistoryGroupBy) BoolsX(ctx context.Context) []bool
    func (s *HPViewHistoryGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPViewHistoryGroupBy) Float64X(ctx context.Context) float64
    func (s *HPViewHistoryGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPViewHistoryGroupBy) Float64sX(ctx context.Context) []float64
    func (s *HPViewHistoryGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *HPViewHistoryGroupBy) IntX(ctx context.Context) int
    func (s *HPViewHistoryGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *HPViewHistoryGroupBy) IntsX(ctx context.Context) []int
    func (hvhgb *HPViewHistoryGroupBy) Scan(ctx context.Context, v any) error
    func (s *HPViewHistoryGroupBy) ScanX(ctx context.Context, v any)
    func (s *HPViewHistoryGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *HPViewHistoryGroupBy) StringX(ctx context.Context) string
    func (s *HPViewHistoryGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *HPViewHistoryGroupBy) StringsX(ctx context.Context) []string
type HPViewHistoryMutation
    func (m *HPViewHistoryMutation) AddContentID(i int)
    func (m *HPViewHistoryMutation) AddField(name string, value ent.Value) error
    func (m *HPViewHistoryMutation) AddedContentID() (r int, exists bool)
    func (m *HPViewHistoryMutation) AddedEdges() []string
    func (m *HPViewHistoryMutation) AddedField(name string) (ent.Value, bool)
    func (m *HPViewHistoryMutation) AddedFields() []string
    func (m *HPViewHistoryMutation) AddedIDs(name string) []ent.Value
    func (m *HPViewHistoryMutation) AssetType() (r enums.HPAssetType, exists bool)
    func (m *HPViewHistoryMutation) ClearCreatedAt()
    func (m *HPViewHistoryMutation) ClearEdge(name string) error
    func (m *HPViewHistoryMutation) ClearFeed()
    func (m *HPViewHistoryMutation) ClearField(name string) error
    func (m *HPViewHistoryMutation) ClearUpdatedAt()
    func (m *HPViewHistoryMutation) ClearUser()
    func (m *HPViewHistoryMutation) ClearedEdges() []string
    func (m *HPViewHistoryMutation) ClearedFields() []string
    func (m HPViewHistoryMutation) Client() *Client
    func (m *HPViewHistoryMutation) ContentID() (r int, exists bool)
    func (m *HPViewHistoryMutation) ContentPostAt() (r time.Time, exists bool)
    func (m *HPViewHistoryMutation) CreatedAt() (r time.Time, exists bool)
    func (m *HPViewHistoryMutation) CreatedAtCleared() bool
    func (m *HPViewHistoryMutation) EdgeCleared(name string) bool
    func (m *HPViewHistoryMutation) FeedCleared() bool
    func (m *HPViewHistoryMutation) FeedID() (id int, exists bool)
    func (m *HPViewHistoryMutation) FeedIDs() (ids []int)
    func (m *HPViewHistoryMutation) Field(name string) (ent.Value, bool)
    func (m *HPViewHistoryMutation) FieldCleared(name string) bool
    func (m *HPViewHistoryMutation) Fields() []string
    func (m *HPViewHistoryMutation) Filter() *HPViewHistoryFilter
    func (m *HPViewHistoryMutation) ID() (id int, exists bool)
    func (m *HPViewHistoryMutation) IDs(ctx context.Context) ([]int, error)
    func (m *HPViewHistoryMutation) IsFavorite() (r bool, exists bool)
    func (m *HPViewHistoryMutation) OldAssetType(ctx context.Context) (v enums.HPAssetType, err error)
    func (m *HPViewHistoryMutation) OldContentID(ctx context.Context) (v int, err error)
    func (m *HPViewHistoryMutation) OldContentPostAt(ctx context.Context) (v time.Time, err error)
    func (m *HPViewHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPViewHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *HPViewHistoryMutation) OldIsFavorite(ctx context.Context) (v bool, err error)
    func (m *HPViewHistoryMutation) OldOwnerUserID(ctx context.Context) (v int, err error)
    func (m *HPViewHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *HPViewHistoryMutation) Op() Op
    func (m *HPViewHistoryMutation) OwnerUserID() (r int, exists bool)
    func (m *HPViewHistoryMutation) RemovedEdges() []string
    func (m *HPViewHistoryMutation) RemovedIDs(name string) []ent.Value
    func (m *HPViewHistoryMutation) ResetAssetType()
    func (m *HPViewHistoryMutation) ResetContentID()
    func (m *HPViewHistoryMutation) ResetContentPostAt()
    func (m *HPViewHistoryMutation) ResetCreatedAt()
    func (m *HPViewHistoryMutation) ResetEdge(name string) error
    func (m *HPViewHistoryMutation) ResetFeed()
    func (m *HPViewHistoryMutation) ResetField(name string) error
    func (m *HPViewHistoryMutation) ResetIsFavorite()
    func (m *HPViewHistoryMutation) ResetOwnerUserID()
    func (m *HPViewHistoryMutation) ResetUpdatedAt()
    func (m *HPViewHistoryMutation) ResetUser()
    func (m *HPViewHistoryMutation) SetAssetType(eat enums.HPAssetType)
    func (m *HPViewHistoryMutation) SetContentID(i int)
    func (m *HPViewHistoryMutation) SetContentPostAt(t time.Time)
    func (m *HPViewHistoryMutation) SetCreatedAt(t time.Time)
    func (m *HPViewHistoryMutation) SetFeedID(id int)
    func (m *HPViewHistoryMutation) SetField(name string, value ent.Value) error
    func (m *HPViewHistoryMutation) SetIsFavorite(b bool)
    func (m *HPViewHistoryMutation) SetOp(op Op)
    func (m *HPViewHistoryMutation) SetOwnerUserID(i int)
    func (m *HPViewHistoryMutation) SetUpdatedAt(t time.Time)
    func (m *HPViewHistoryMutation) SetUserID(id int)
    func (m HPViewHistoryMutation) Tx() (*Tx, error)
    func (m *HPViewHistoryMutation) Type() string
    func (m *HPViewHistoryMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *HPViewHistoryMutation) UpdatedAtCleared() bool
    func (m *HPViewHistoryMutation) UserCleared() bool
    func (m *HPViewHistoryMutation) UserID() (id int, exists bool)
    func (m *HPViewHistoryMutation) UserIDs() (ids []int)
    func (m *HPViewHistoryMutation) Where(ps ...predicate.HPViewHistory)
    func (m *HPViewHistoryMutation) WhereP(ps ...func(*sql.Selector))
type HPViewHistoryOrder
type HPViewHistoryOrderField
type HPViewHistoryPaginateOption
    func WithHPViewHistoryFilter(filter func(*HPViewHistoryQuery) (*HPViewHistoryQuery, error)) HPViewHistoryPaginateOption
    func WithHPViewHistoryOrder(order *HPViewHistoryOrder) HPViewHistoryPaginateOption
type HPViewHistoryQuery
    func (hvhq *HPViewHistoryQuery) Aggregate(fns ...AggregateFunc) *HPViewHistorySelect
    func (hvhq *HPViewHistoryQuery) All(ctx context.Context) ([]*HPViewHistory, error)
    func (hvhq *HPViewHistoryQuery) AllX(ctx context.Context) []*HPViewHistory
    func (hvhq *HPViewHistoryQuery) Clone() *HPViewHistoryQuery
    func (hvh *HPViewHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPViewHistoryQuery, error)
    func (hvhq *HPViewHistoryQuery) Count(ctx context.Context) (int, error)
    func (hvhq *HPViewHistoryQuery) CountX(ctx context.Context) int
    func (hvhq *HPViewHistoryQuery) Exist(ctx context.Context) (bool, error)
    func (hvhq *HPViewHistoryQuery) ExistX(ctx context.Context) bool
    func (hvhq *HPViewHistoryQuery) Filter() *HPViewHistoryFilter
    func (hvhq *HPViewHistoryQuery) First(ctx context.Context) (*HPViewHistory, error)
    func (hvhq *HPViewHistoryQuery) FirstID(ctx context.Context) (id int, err error)
    func (hvhq *HPViewHistoryQuery) FirstIDX(ctx context.Context) int
    func (hvhq *HPViewHistoryQuery) FirstX(ctx context.Context) *HPViewHistory
    func (hvhq *HPViewHistoryQuery) GroupBy(field string, fields ...string) *HPViewHistoryGroupBy
    func (hvhq *HPViewHistoryQuery) IDs(ctx context.Context) (ids []int, err error)
    func (hvhq *HPViewHistoryQuery) IDsX(ctx context.Context) []int
    func (hvhq *HPViewHistoryQuery) Limit(limit int) *HPViewHistoryQuery
    func (hvhq *HPViewHistoryQuery) Offset(offset int) *HPViewHistoryQuery
    func (hvhq *HPViewHistoryQuery) Only(ctx context.Context) (*HPViewHistory, error)
    func (hvhq *HPViewHistoryQuery) OnlyID(ctx context.Context) (id int, err error)
    func (hvhq *HPViewHistoryQuery) OnlyIDX(ctx context.Context) int
    func (hvhq *HPViewHistoryQuery) OnlyX(ctx context.Context) *HPViewHistory
    func (hvhq *HPViewHistoryQuery) Order(o ...hpviewhistory.Order) *HPViewHistoryQuery
    func (hvh *HPViewHistoryQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...HPViewHistoryPaginateOption) (*HPViewHistoryConnection, error)
    func (hvhq *HPViewHistoryQuery) QueryFeed() *HPFeedItemQuery
    func (hvhq *HPViewHistoryQuery) QueryUser() *UserQuery
    func (hvhq *HPViewHistoryQuery) Select(fields ...string) *HPViewHistorySelect
    func (hvhq *HPViewHistoryQuery) Unique(unique bool) *HPViewHistoryQuery
    func (hvhq *HPViewHistoryQuery) Where(ps ...predicate.HPViewHistory) *HPViewHistoryQuery
    func (hvhq *HPViewHistoryQuery) WithFeed(opts ...func(*HPFeedItemQuery)) *HPViewHistoryQuery
    func (hvhq *HPViewHistoryQuery) WithUser(opts ...func(*UserQuery)) *HPViewHistoryQuery
type HPViewHistorySelect
    func (hvhs *HPViewHistorySelect) Aggregate(fns ...AggregateFunc) *HPViewHistorySelect
    func (s *HPViewHistorySelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *HPViewHistorySelect) BoolX(ctx context.Context) bool
    func (s *HPViewHistorySelect) Bools(ctx context.Context) ([]bool, error)
    func (s *HPViewHistorySelect) BoolsX(ctx context.Context) []bool
    func (s *HPViewHistorySelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *HPViewHistorySelect) Float64X(ctx context.Context) float64
    func (s *HPViewHistorySelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *HPViewHistorySelect) Float64sX(ctx context.Context) []float64
    func (s *HPViewHistorySelect) Int(ctx context.Context) (_ int, err error)
    func (s *HPViewHistorySelect) IntX(ctx context.Context) int
    func (s *HPViewHistorySelect) Ints(ctx context.Context) ([]int, error)
    func (s *HPViewHistorySelect) IntsX(ctx context.Context) []int
    func (hvhs *HPViewHistorySelect) Scan(ctx context.Context, v any) error
    func (s *HPViewHistorySelect) ScanX(ctx context.Context, v any)
    func (s *HPViewHistorySelect) String(ctx context.Context) (_ string, err error)
    func (s *HPViewHistorySelect) StringX(ctx context.Context) string
    func (s *HPViewHistorySelect) Strings(ctx context.Context) ([]string, error)
    func (s *HPViewHistorySelect) StringsX(ctx context.Context) []string
type HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) AddContentID(i int) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) ClearFeed() *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) ClearUpdatedAt() *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) ClearUser() *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) Exec(ctx context.Context) error
    func (hvhu *HPViewHistoryUpdate) ExecX(ctx context.Context)
    func (hvhu *HPViewHistoryUpdate) Mutation() *HPViewHistoryMutation
    func (hvhu *HPViewHistoryUpdate) Save(ctx context.Context) (int, error)
    func (hvhu *HPViewHistoryUpdate) SaveX(ctx context.Context) int
    func (hvhu *HPViewHistoryUpdate) SetAssetType(eat enums.HPAssetType) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetContentID(i int) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetContentPostAt(t time.Time) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetFeed(h *HPFeedItem) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetFeedID(id int) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetIsFavorite(b bool) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetNillableFeedID(id *int) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetNillableIsFavorite(b *bool) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetNillableUpdatedAt(t *time.Time) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetOwnerUserID(i int) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetUpdatedAt(t time.Time) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetUser(u *User) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) SetUserID(id int) *HPViewHistoryUpdate
    func (hvhu *HPViewHistoryUpdate) Where(ps ...predicate.HPViewHistory) *HPViewHistoryUpdate
type HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) AddContentID(i int) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) ClearFeed() *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) ClearUpdatedAt() *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) ClearUser() *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) Exec(ctx context.Context) error
    func (hvhuo *HPViewHistoryUpdateOne) ExecX(ctx context.Context)
    func (hvhuo *HPViewHistoryUpdateOne) Mutation() *HPViewHistoryMutation
    func (hvhuo *HPViewHistoryUpdateOne) Save(ctx context.Context) (*HPViewHistory, error)
    func (hvhuo *HPViewHistoryUpdateOne) SaveX(ctx context.Context) *HPViewHistory
    func (hvhuo *HPViewHistoryUpdateOne) Select(field string, fields ...string) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetAssetType(eat enums.HPAssetType) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetContentID(i int) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetContentPostAt(t time.Time) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetFeed(h *HPFeedItem) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetFeedID(id int) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetIsFavorite(b bool) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetNillableFeedID(id *int) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetNillableIsFavorite(b *bool) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetOwnerUserID(i int) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetUpdatedAt(t time.Time) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetUser(u *User) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) SetUserID(id int) *HPViewHistoryUpdateOne
    func (hvhuo *HPViewHistoryUpdateOne) Where(ps ...predicate.HPViewHistory) *HPViewHistoryUpdateOne
type HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) AddContentID(v int) *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) ClearUpdatedAt() *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) SetAssetType(v enums.HPAssetType) *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) SetContentID(v int) *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) SetContentPostAt(v time.Time) *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) SetIsFavorite(v bool) *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) SetOwnerUserID(v int) *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) SetUpdatedAt(v time.Time) *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) UpdateAssetType() *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) UpdateContentID() *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) UpdateContentPostAt() *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) UpdateIsFavorite() *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) UpdateOwnerUserID() *HPViewHistoryUpsert
    func (u *HPViewHistoryUpsert) UpdateUpdatedAt() *HPViewHistoryUpsert
type HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) AddContentID(v int) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) ClearUpdatedAt() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) DoNothing() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) Exec(ctx context.Context) error
    func (u *HPViewHistoryUpsertBulk) ExecX(ctx context.Context)
    func (u *HPViewHistoryUpsertBulk) Ignore() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) SetAssetType(v enums.HPAssetType) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) SetContentID(v int) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) SetContentPostAt(v time.Time) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) SetIsFavorite(v bool) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) SetOwnerUserID(v int) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) SetUpdatedAt(v time.Time) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) Update(set func(*HPViewHistoryUpsert)) *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) UpdateAssetType() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) UpdateContentID() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) UpdateContentPostAt() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) UpdateIsFavorite() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) UpdateNewValues() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) UpdateOwnerUserID() *HPViewHistoryUpsertBulk
    func (u *HPViewHistoryUpsertBulk) UpdateUpdatedAt() *HPViewHistoryUpsertBulk
type HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) AddContentID(v int) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) ClearUpdatedAt() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) DoNothing() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) Exec(ctx context.Context) error
    func (u *HPViewHistoryUpsertOne) ExecX(ctx context.Context)
    func (u *HPViewHistoryUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *HPViewHistoryUpsertOne) IDX(ctx context.Context) int
    func (u *HPViewHistoryUpsertOne) Ignore() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) SetAssetType(v enums.HPAssetType) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) SetContentID(v int) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) SetContentPostAt(v time.Time) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) SetIsFavorite(v bool) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) SetOwnerUserID(v int) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) SetUpdatedAt(v time.Time) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) Update(set func(*HPViewHistoryUpsert)) *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) UpdateAssetType() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) UpdateContentID() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) UpdateContentPostAt() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) UpdateIsFavorite() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) UpdateNewValues() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) UpdateOwnerUserID() *HPViewHistoryUpsertOne
    func (u *HPViewHistoryUpsertOne) UpdateUpdatedAt() *HPViewHistoryUpsertOne
type Hook
type InterceptFunc
type Interceptor
type MutateFunc
type Mutation
type Mutator
type NodeOption
    func WithFixedNodeType(t string) NodeOption
    func WithNodeType(f func(context.Context, int) (string, error)) NodeOption
type Noder
type NotFoundError
    func (e *NotFoundError) Error() string
type NotLoadedError
    func (e *NotLoadedError) Error() string
type NotSingularError
    func (e *NotSingularError) Error() string
type Op
type Option
    func Debug() Option
    func Driver(driver dialect.Driver) Option
    func Log(fn func(...any)) Option
type OrderDirection
type OrderFunc
type PageInfo
type Policy
type Querier
type QuerierFunc
type Query
type QueryContext
type RollbackFunc
    func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error
type RollbackHook
type Rollbacker
type TestEnt
    func (te *TestEnt) String() string
    func (te *TestEnt) Unwrap() *TestEnt
    func (te *TestEnt) Update() *TestEntUpdateOne
    func (te *TestEnt) Value(name string) (ent.Value, error)
type TestEntClient
    func NewTestEntClient(c config) *TestEntClient
    func (c *TestEntClient) Create() *TestEntCreate
    func (c *TestEntClient) CreateBulk(builders ...*TestEntCreate) *TestEntCreateBulk
    func (c *TestEntClient) Delete() *TestEntDelete
    func (c *TestEntClient) DeleteOne(te *TestEnt) *TestEntDeleteOne
    func (c *TestEntClient) DeleteOneID(id int) *TestEntDeleteOne
    func (c *TestEntClient) Get(ctx context.Context, id int) (*TestEnt, error)
    func (c *TestEntClient) GetX(ctx context.Context, id int) *TestEnt
    func (c *TestEntClient) Hooks() []Hook
    func (c *TestEntClient) Intercept(interceptors ...Interceptor)
    func (c *TestEntClient) Interceptors() []Interceptor
    func (c *TestEntClient) Query() *TestEntQuery
    func (c *TestEntClient) Update() *TestEntUpdate
    func (c *TestEntClient) UpdateOne(te *TestEnt) *TestEntUpdateOne
    func (c *TestEntClient) UpdateOneID(id int) *TestEntUpdateOne
    func (c *TestEntClient) Use(hooks ...Hook)
type TestEntCreate
    func (tec *TestEntCreate) Exec(ctx context.Context) error
    func (tec *TestEntCreate) ExecX(ctx context.Context)
    func (tec *TestEntCreate) Mutation() *TestEntMutation
    func (tec *TestEntCreate) OnConflict(opts ...sql.ConflictOption) *TestEntUpsertOne
    func (tec *TestEntCreate) OnConflictColumns(columns ...string) *TestEntUpsertOne
    func (tec *TestEntCreate) Save(ctx context.Context) (*TestEnt, error)
    func (tec *TestEntCreate) SaveX(ctx context.Context) *TestEnt
    func (tec *TestEntCreate) SetBoolField(b bool) *TestEntCreate
    func (tec *TestEntCreate) SetBytesField(b []byte) *TestEntCreate
    func (tec *TestEntCreate) SetEnumField(ee enums.TestEnum) *TestEntCreate
    func (tec *TestEntCreate) SetFloatField(f float64) *TestEntCreate
    func (tec *TestEntCreate) SetInt64Field(i int64) *TestEntCreate
    func (tec *TestEntCreate) SetIntField(i int) *TestEntCreate
    func (tec *TestEntCreate) SetJSONField(jj *jsonfields.TestJSON) *TestEntCreate
    func (tec *TestEntCreate) SetNillableBoolField(b *bool) *TestEntCreate
    func (tec *TestEntCreate) SetNillableEnumField(ee *enums.TestEnum) *TestEntCreate
    func (tec *TestEntCreate) SetNillableFloatField(f *float64) *TestEntCreate
    func (tec *TestEntCreate) SetNillableInt64Field(i *int64) *TestEntCreate
    func (tec *TestEntCreate) SetNillableIntField(i *int) *TestEntCreate
    func (tec *TestEntCreate) SetNillableStringField(s *string) *TestEntCreate
    func (tec *TestEntCreate) SetNillableTextField(s *string) *TestEntCreate
    func (tec *TestEntCreate) SetNillableTimeField(t *time.Time) *TestEntCreate
    func (tec *TestEntCreate) SetStringField(s string) *TestEntCreate
    func (tec *TestEntCreate) SetTextField(s string) *TestEntCreate
    func (tec *TestEntCreate) SetTimeField(t time.Time) *TestEntCreate
type TestEntCreateBulk
    func (tecb *TestEntCreateBulk) Exec(ctx context.Context) error
    func (tecb *TestEntCreateBulk) ExecX(ctx context.Context)
    func (tecb *TestEntCreateBulk) OnConflict(opts ...sql.ConflictOption) *TestEntUpsertBulk
    func (tecb *TestEntCreateBulk) OnConflictColumns(columns ...string) *TestEntUpsertBulk
    func (tecb *TestEntCreateBulk) Save(ctx context.Context) ([]*TestEnt, error)
    func (tecb *TestEntCreateBulk) SaveX(ctx context.Context) []*TestEnt
type TestEntDelete
    func (ted *TestEntDelete) Exec(ctx context.Context) (int, error)
    func (ted *TestEntDelete) ExecX(ctx context.Context) int
    func (ted *TestEntDelete) Where(ps ...predicate.TestEnt) *TestEntDelete
type TestEntDeleteOne
    func (tedo *TestEntDeleteOne) Exec(ctx context.Context) error
    func (tedo *TestEntDeleteOne) ExecX(ctx context.Context)
    func (tedo *TestEntDeleteOne) Where(ps ...predicate.TestEnt) *TestEntDeleteOne
type TestEntFilter
    func (f *TestEntFilter) Where(p entql.P)
    func (f *TestEntFilter) WhereBoolField(p entql.BoolP)
    func (f *TestEntFilter) WhereBytesField(p entql.BytesP)
    func (f *TestEntFilter) WhereEnumField(p entql.StringP)
    func (f *TestEntFilter) WhereFloatField(p entql.Float64P)
    func (f *TestEntFilter) WhereID(p entql.IntP)
    func (f *TestEntFilter) WhereInt64Field(p entql.Int64P)
    func (f *TestEntFilter) WhereIntField(p entql.IntP)
    func (f *TestEntFilter) WhereJSONField(p entql.BytesP)
    func (f *TestEntFilter) WhereStringField(p entql.StringP)
    func (f *TestEntFilter) WhereTextField(p entql.StringP)
    func (f *TestEntFilter) WhereTimeField(p entql.TimeP)
type TestEntGroupBy
    func (tegb *TestEntGroupBy) Aggregate(fns ...AggregateFunc) *TestEntGroupBy
    func (s *TestEntGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *TestEntGroupBy) BoolX(ctx context.Context) bool
    func (s *TestEntGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *TestEntGroupBy) BoolsX(ctx context.Context) []bool
    func (s *TestEntGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *TestEntGroupBy) Float64X(ctx context.Context) float64
    func (s *TestEntGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *TestEntGroupBy) Float64sX(ctx context.Context) []float64
    func (s *TestEntGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *TestEntGroupBy) IntX(ctx context.Context) int
    func (s *TestEntGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *TestEntGroupBy) IntsX(ctx context.Context) []int
    func (tegb *TestEntGroupBy) Scan(ctx context.Context, v any) error
    func (s *TestEntGroupBy) ScanX(ctx context.Context, v any)
    func (s *TestEntGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *TestEntGroupBy) StringX(ctx context.Context) string
    func (s *TestEntGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *TestEntGroupBy) StringsX(ctx context.Context) []string
type TestEntMutation
    func (m *TestEntMutation) AddField(name string, value ent.Value) error
    func (m *TestEntMutation) AddFloatField(f float64)
    func (m *TestEntMutation) AddInt64Field(i int64)
    func (m *TestEntMutation) AddIntField(i int)
    func (m *TestEntMutation) AddedEdges() []string
    func (m *TestEntMutation) AddedField(name string) (ent.Value, bool)
    func (m *TestEntMutation) AddedFields() []string
    func (m *TestEntMutation) AddedFloatField() (r float64, exists bool)
    func (m *TestEntMutation) AddedIDs(name string) []ent.Value
    func (m *TestEntMutation) AddedInt64Field() (r int64, exists bool)
    func (m *TestEntMutation) AddedIntField() (r int, exists bool)
    func (m *TestEntMutation) BoolField() (r bool, exists bool)
    func (m *TestEntMutation) BoolFieldCleared() bool
    func (m *TestEntMutation) BytesField() (r []byte, exists bool)
    func (m *TestEntMutation) BytesFieldCleared() bool
    func (m *TestEntMutation) ClearBoolField()
    func (m *TestEntMutation) ClearBytesField()
    func (m *TestEntMutation) ClearEdge(name string) error
    func (m *TestEntMutation) ClearEnumField()
    func (m *TestEntMutation) ClearField(name string) error
    func (m *TestEntMutation) ClearFloatField()
    func (m *TestEntMutation) ClearInt64Field()
    func (m *TestEntMutation) ClearIntField()
    func (m *TestEntMutation) ClearJSONField()
    func (m *TestEntMutation) ClearStringField()
    func (m *TestEntMutation) ClearTextField()
    func (m *TestEntMutation) ClearTimeField()
    func (m *TestEntMutation) ClearedEdges() []string
    func (m *TestEntMutation) ClearedFields() []string
    func (m TestEntMutation) Client() *Client
    func (m *TestEntMutation) EdgeCleared(name string) bool
    func (m *TestEntMutation) EnumField() (r enums.TestEnum, exists bool)
    func (m *TestEntMutation) EnumFieldCleared() bool
    func (m *TestEntMutation) Field(name string) (ent.Value, bool)
    func (m *TestEntMutation) FieldCleared(name string) bool
    func (m *TestEntMutation) Fields() []string
    func (m *TestEntMutation) Filter() *TestEntFilter
    func (m *TestEntMutation) FloatField() (r float64, exists bool)
    func (m *TestEntMutation) FloatFieldCleared() bool
    func (m *TestEntMutation) ID() (id int, exists bool)
    func (m *TestEntMutation) IDs(ctx context.Context) ([]int, error)
    func (m *TestEntMutation) Int64Field() (r int64, exists bool)
    func (m *TestEntMutation) Int64FieldCleared() bool
    func (m *TestEntMutation) IntField() (r int, exists bool)
    func (m *TestEntMutation) IntFieldCleared() bool
    func (m *TestEntMutation) JSONField() (r *jsonfields.TestJSON, exists bool)
    func (m *TestEntMutation) JSONFieldCleared() bool
    func (m *TestEntMutation) OldBoolField(ctx context.Context) (v *bool, err error)
    func (m *TestEntMutation) OldBytesField(ctx context.Context) (v *[]byte, err error)
    func (m *TestEntMutation) OldEnumField(ctx context.Context) (v enums.TestEnum, err error)
    func (m *TestEntMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *TestEntMutation) OldFloatField(ctx context.Context) (v *float64, err error)
    func (m *TestEntMutation) OldInt64Field(ctx context.Context) (v *int64, err error)
    func (m *TestEntMutation) OldIntField(ctx context.Context) (v *int, err error)
    func (m *TestEntMutation) OldJSONField(ctx context.Context) (v *jsonfields.TestJSON, err error)
    func (m *TestEntMutation) OldStringField(ctx context.Context) (v *string, err error)
    func (m *TestEntMutation) OldTextField(ctx context.Context) (v *string, err error)
    func (m *TestEntMutation) OldTimeField(ctx context.Context) (v *time.Time, err error)
    func (m *TestEntMutation) Op() Op
    func (m *TestEntMutation) RemovedEdges() []string
    func (m *TestEntMutation) RemovedIDs(name string) []ent.Value
    func (m *TestEntMutation) ResetBoolField()
    func (m *TestEntMutation) ResetBytesField()
    func (m *TestEntMutation) ResetEdge(name string) error
    func (m *TestEntMutation) ResetEnumField()
    func (m *TestEntMutation) ResetField(name string) error
    func (m *TestEntMutation) ResetFloatField()
    func (m *TestEntMutation) ResetInt64Field()
    func (m *TestEntMutation) ResetIntField()
    func (m *TestEntMutation) ResetJSONField()
    func (m *TestEntMutation) ResetStringField()
    func (m *TestEntMutation) ResetTextField()
    func (m *TestEntMutation) ResetTimeField()
    func (m *TestEntMutation) SetBoolField(b bool)
    func (m *TestEntMutation) SetBytesField(b []byte)
    func (m *TestEntMutation) SetEnumField(ee enums.TestEnum)
    func (m *TestEntMutation) SetField(name string, value ent.Value) error
    func (m *TestEntMutation) SetFloatField(f float64)
    func (m *TestEntMutation) SetInt64Field(i int64)
    func (m *TestEntMutation) SetIntField(i int)
    func (m *TestEntMutation) SetJSONField(jj *jsonfields.TestJSON)
    func (m *TestEntMutation) SetOp(op Op)
    func (m *TestEntMutation) SetStringField(s string)
    func (m *TestEntMutation) SetTextField(s string)
    func (m *TestEntMutation) SetTimeField(t time.Time)
    func (m *TestEntMutation) StringField() (r string, exists bool)
    func (m *TestEntMutation) StringFieldCleared() bool
    func (m *TestEntMutation) TextField() (r string, exists bool)
    func (m *TestEntMutation) TextFieldCleared() bool
    func (m *TestEntMutation) TimeField() (r time.Time, exists bool)
    func (m *TestEntMutation) TimeFieldCleared() bool
    func (m TestEntMutation) Tx() (*Tx, error)
    func (m *TestEntMutation) Type() string
    func (m *TestEntMutation) Where(ps ...predicate.TestEnt)
    func (m *TestEntMutation) WhereP(ps ...func(*sql.Selector))
type TestEntQuery
    func (teq *TestEntQuery) Aggregate(fns ...AggregateFunc) *TestEntSelect
    func (teq *TestEntQuery) All(ctx context.Context) ([]*TestEnt, error)
    func (teq *TestEntQuery) AllX(ctx context.Context) []*TestEnt
    func (teq *TestEntQuery) Clone() *TestEntQuery
    func (teq *TestEntQuery) Count(ctx context.Context) (int, error)
    func (teq *TestEntQuery) CountX(ctx context.Context) int
    func (teq *TestEntQuery) Exist(ctx context.Context) (bool, error)
    func (teq *TestEntQuery) ExistX(ctx context.Context) bool
    func (teq *TestEntQuery) Filter() *TestEntFilter
    func (teq *TestEntQuery) First(ctx context.Context) (*TestEnt, error)
    func (teq *TestEntQuery) FirstID(ctx context.Context) (id int, err error)
    func (teq *TestEntQuery) FirstIDX(ctx context.Context) int
    func (teq *TestEntQuery) FirstX(ctx context.Context) *TestEnt
    func (teq *TestEntQuery) GroupBy(field string, fields ...string) *TestEntGroupBy
    func (teq *TestEntQuery) IDs(ctx context.Context) (ids []int, err error)
    func (teq *TestEntQuery) IDsX(ctx context.Context) []int
    func (teq *TestEntQuery) Limit(limit int) *TestEntQuery
    func (teq *TestEntQuery) Offset(offset int) *TestEntQuery
    func (teq *TestEntQuery) Only(ctx context.Context) (*TestEnt, error)
    func (teq *TestEntQuery) OnlyID(ctx context.Context) (id int, err error)
    func (teq *TestEntQuery) OnlyIDX(ctx context.Context) int
    func (teq *TestEntQuery) OnlyX(ctx context.Context) *TestEnt
    func (teq *TestEntQuery) Order(o ...testent.Order) *TestEntQuery
    func (teq *TestEntQuery) Select(fields ...string) *TestEntSelect
    func (teq *TestEntQuery) Unique(unique bool) *TestEntQuery
    func (teq *TestEntQuery) Where(ps ...predicate.TestEnt) *TestEntQuery
type TestEntSelect
    func (tes *TestEntSelect) Aggregate(fns ...AggregateFunc) *TestEntSelect
    func (s *TestEntSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *TestEntSelect) BoolX(ctx context.Context) bool
    func (s *TestEntSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *TestEntSelect) BoolsX(ctx context.Context) []bool
    func (s *TestEntSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *TestEntSelect) Float64X(ctx context.Context) float64
    func (s *TestEntSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *TestEntSelect) Float64sX(ctx context.Context) []float64
    func (s *TestEntSelect) Int(ctx context.Context) (_ int, err error)
    func (s *TestEntSelect) IntX(ctx context.Context) int
    func (s *TestEntSelect) Ints(ctx context.Context) ([]int, error)
    func (s *TestEntSelect) IntsX(ctx context.Context) []int
    func (tes *TestEntSelect) Scan(ctx context.Context, v any) error
    func (s *TestEntSelect) ScanX(ctx context.Context, v any)
    func (s *TestEntSelect) String(ctx context.Context) (_ string, err error)
    func (s *TestEntSelect) StringX(ctx context.Context) string
    func (s *TestEntSelect) Strings(ctx context.Context) ([]string, error)
    func (s *TestEntSelect) StringsX(ctx context.Context) []string
type TestEntUpdate
    func (teu *TestEntUpdate) AddFloatField(f float64) *TestEntUpdate
    func (teu *TestEntUpdate) AddInt64Field(i int64) *TestEntUpdate
    func (teu *TestEntUpdate) AddIntField(i int) *TestEntUpdate
    func (teu *TestEntUpdate) ClearBoolField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearBytesField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearEnumField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearFloatField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearInt64Field() *TestEntUpdate
    func (teu *TestEntUpdate) ClearIntField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearJSONField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearStringField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearTextField() *TestEntUpdate
    func (teu *TestEntUpdate) ClearTimeField() *TestEntUpdate
    func (teu *TestEntUpdate) Exec(ctx context.Context) error
    func (teu *TestEntUpdate) ExecX(ctx context.Context)
    func (teu *TestEntUpdate) Mutation() *TestEntMutation
    func (teu *TestEntUpdate) Save(ctx context.Context) (int, error)
    func (teu *TestEntUpdate) SaveX(ctx context.Context) int
    func (teu *TestEntUpdate) SetBoolField(b bool) *TestEntUpdate
    func (teu *TestEntUpdate) SetBytesField(b []byte) *TestEntUpdate
    func (teu *TestEntUpdate) SetEnumField(ee enums.TestEnum) *TestEntUpdate
    func (teu *TestEntUpdate) SetFloatField(f float64) *TestEntUpdate
    func (teu *TestEntUpdate) SetInt64Field(i int64) *TestEntUpdate
    func (teu *TestEntUpdate) SetIntField(i int) *TestEntUpdate
    func (teu *TestEntUpdate) SetJSONField(jj *jsonfields.TestJSON) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableBoolField(b *bool) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableEnumField(ee *enums.TestEnum) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableFloatField(f *float64) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableInt64Field(i *int64) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableIntField(i *int) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableStringField(s *string) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableTextField(s *string) *TestEntUpdate
    func (teu *TestEntUpdate) SetNillableTimeField(t *time.Time) *TestEntUpdate
    func (teu *TestEntUpdate) SetStringField(s string) *TestEntUpdate
    func (teu *TestEntUpdate) SetTextField(s string) *TestEntUpdate
    func (teu *TestEntUpdate) SetTimeField(t time.Time) *TestEntUpdate
    func (teu *TestEntUpdate) Where(ps ...predicate.TestEnt) *TestEntUpdate
type TestEntUpdateOne
    func (teuo *TestEntUpdateOne) AddFloatField(f float64) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) AddInt64Field(i int64) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) AddIntField(i int) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearBoolField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearBytesField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearEnumField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearFloatField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearInt64Field() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearIntField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearJSONField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearStringField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearTextField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) ClearTimeField() *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) Exec(ctx context.Context) error
    func (teuo *TestEntUpdateOne) ExecX(ctx context.Context)
    func (teuo *TestEntUpdateOne) Mutation() *TestEntMutation
    func (teuo *TestEntUpdateOne) Save(ctx context.Context) (*TestEnt, error)
    func (teuo *TestEntUpdateOne) SaveX(ctx context.Context) *TestEnt
    func (teuo *TestEntUpdateOne) Select(field string, fields ...string) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetBoolField(b bool) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetBytesField(b []byte) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetEnumField(ee enums.TestEnum) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetFloatField(f float64) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetInt64Field(i int64) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetIntField(i int) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetJSONField(jj *jsonfields.TestJSON) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableBoolField(b *bool) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableEnumField(ee *enums.TestEnum) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableFloatField(f *float64) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableInt64Field(i *int64) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableIntField(i *int) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableStringField(s *string) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableTextField(s *string) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetNillableTimeField(t *time.Time) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetStringField(s string) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetTextField(s string) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) SetTimeField(t time.Time) *TestEntUpdateOne
    func (teuo *TestEntUpdateOne) Where(ps ...predicate.TestEnt) *TestEntUpdateOne
type TestEntUpsert
    func (u *TestEntUpsert) AddFloatField(v float64) *TestEntUpsert
    func (u *TestEntUpsert) AddInt64Field(v int64) *TestEntUpsert
    func (u *TestEntUpsert) AddIntField(v int) *TestEntUpsert
    func (u *TestEntUpsert) ClearBoolField() *TestEntUpsert
    func (u *TestEntUpsert) ClearBytesField() *TestEntUpsert
    func (u *TestEntUpsert) ClearEnumField() *TestEntUpsert
    func (u *TestEntUpsert) ClearFloatField() *TestEntUpsert
    func (u *TestEntUpsert) ClearInt64Field() *TestEntUpsert
    func (u *TestEntUpsert) ClearIntField() *TestEntUpsert
    func (u *TestEntUpsert) ClearJSONField() *TestEntUpsert
    func (u *TestEntUpsert) ClearStringField() *TestEntUpsert
    func (u *TestEntUpsert) ClearTextField() *TestEntUpsert
    func (u *TestEntUpsert) ClearTimeField() *TestEntUpsert
    func (u *TestEntUpsert) SetBoolField(v bool) *TestEntUpsert
    func (u *TestEntUpsert) SetBytesField(v []byte) *TestEntUpsert
    func (u *TestEntUpsert) SetEnumField(v enums.TestEnum) *TestEntUpsert
    func (u *TestEntUpsert) SetFloatField(v float64) *TestEntUpsert
    func (u *TestEntUpsert) SetInt64Field(v int64) *TestEntUpsert
    func (u *TestEntUpsert) SetIntField(v int) *TestEntUpsert
    func (u *TestEntUpsert) SetJSONField(v *jsonfields.TestJSON) *TestEntUpsert
    func (u *TestEntUpsert) SetStringField(v string) *TestEntUpsert
    func (u *TestEntUpsert) SetTextField(v string) *TestEntUpsert
    func (u *TestEntUpsert) SetTimeField(v time.Time) *TestEntUpsert
    func (u *TestEntUpsert) UpdateBoolField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateBytesField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateEnumField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateFloatField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateInt64Field() *TestEntUpsert
    func (u *TestEntUpsert) UpdateIntField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateJSONField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateStringField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateTextField() *TestEntUpsert
    func (u *TestEntUpsert) UpdateTimeField() *TestEntUpsert
type TestEntUpsertBulk
    func (u *TestEntUpsertBulk) AddFloatField(v float64) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) AddInt64Field(v int64) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) AddIntField(v int) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearBoolField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearBytesField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearEnumField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearFloatField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearInt64Field() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearIntField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearJSONField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearStringField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearTextField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) ClearTimeField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) DoNothing() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) Exec(ctx context.Context) error
    func (u *TestEntUpsertBulk) ExecX(ctx context.Context)
    func (u *TestEntUpsertBulk) Ignore() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetBoolField(v bool) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetBytesField(v []byte) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetEnumField(v enums.TestEnum) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetFloatField(v float64) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetInt64Field(v int64) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetIntField(v int) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetJSONField(v *jsonfields.TestJSON) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetStringField(v string) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetTextField(v string) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) SetTimeField(v time.Time) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) Update(set func(*TestEntUpsert)) *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateBoolField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateBytesField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateEnumField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateFloatField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateInt64Field() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateIntField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateJSONField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateNewValues() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateStringField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateTextField() *TestEntUpsertBulk
    func (u *TestEntUpsertBulk) UpdateTimeField() *TestEntUpsertBulk
type TestEntUpsertOne
    func (u *TestEntUpsertOne) AddFloatField(v float64) *TestEntUpsertOne
    func (u *TestEntUpsertOne) AddInt64Field(v int64) *TestEntUpsertOne
    func (u *TestEntUpsertOne) AddIntField(v int) *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearBoolField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearBytesField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearEnumField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearFloatField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearInt64Field() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearIntField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearJSONField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearStringField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearTextField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) ClearTimeField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) DoNothing() *TestEntUpsertOne
    func (u *TestEntUpsertOne) Exec(ctx context.Context) error
    func (u *TestEntUpsertOne) ExecX(ctx context.Context)
    func (u *TestEntUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *TestEntUpsertOne) IDX(ctx context.Context) int
    func (u *TestEntUpsertOne) Ignore() *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetBoolField(v bool) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetBytesField(v []byte) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetEnumField(v enums.TestEnum) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetFloatField(v float64) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetInt64Field(v int64) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetIntField(v int) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetJSONField(v *jsonfields.TestJSON) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetStringField(v string) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetTextField(v string) *TestEntUpsertOne
    func (u *TestEntUpsertOne) SetTimeField(v time.Time) *TestEntUpsertOne
    func (u *TestEntUpsertOne) Update(set func(*TestEntUpsert)) *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateBoolField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateBytesField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateEnumField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateFloatField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateInt64Field() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateIntField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateJSONField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateNewValues() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateStringField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateTextField() *TestEntUpsertOne
    func (u *TestEntUpsertOne) UpdateTimeField() *TestEntUpsertOne
type TestEnts
type TraverseFunc
type Traverser
type Tx
    func TxFromContext(ctx context.Context) *Tx
    func (tx *Tx) Client() *Client
    func (tx *Tx) Commit() error
    func (tx *Tx) OnCommit(f CommitHook)
    func (tx *Tx) OnRollback(f RollbackHook)
    func (tx *Tx) Rollback() error
type User
    func (u *User) Auth(ctx context.Context) (result []*Auth, err error)
    func (u *User) HpfcEventTickets(ctx context.Context) (result []*HPFCEventTicket, err error)
    func (u *User) HpmemberFollowing(ctx context.Context) (result []*HPFollow, err error)
    func (u *User) HpsortHistory(ctx context.Context) (result []*HPSortHistory, err error)
    func (u *User) HpviewHistory(ctx context.Context) (result []*HPViewHistory, err error)
    func (n *User) IsNode()
    func (u *User) NamedAuth(name string) ([]*Auth, error)
    func (u *User) NamedHpfcEventTickets(name string) ([]*HPFCEventTicket, error)
    func (u *User) NamedHpmemberFollowing(name string) ([]*HPFollow, error)
    func (u *User) NamedHpsortHistory(name string) ([]*HPSortHistory, error)
    func (u *User) NamedHpviewHistory(name string) ([]*HPViewHistory, error)
    func (u *User) NamedNotificationSettings(name string) ([]*UserNotificationSetting, error)
    func (u *User) NotificationSettings(ctx context.Context) (result []*UserNotificationSetting, err error)
    func (u *User) QueryAuth() *AuthQuery
    func (u *User) QueryHpfcEventTickets() *HPFCEventTicketQuery
    func (u *User) QueryHpmemberFollowing() *HPFollowQuery
    func (u *User) QueryHpsortHistory() *HPSortHistoryQuery
    func (u *User) QueryHpviewHistory() *HPViewHistoryQuery
    func (u *User) QueryNotificationSettings() *UserNotificationSettingQuery
    func (u *User) String() string
    func (u *User) ToEdge(order *UserOrder) *UserEdge
    func (u *User) Unwrap() *User
    func (u *User) Update() *UserUpdateOne
    func (u *User) Value(name string) (ent.Value, error)
type UserClient
    func NewUserClient(c config) *UserClient
    func (c *UserClient) Create() *UserCreate
    func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
    func (c *UserClient) Delete() *UserDelete
    func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
    func (c *UserClient) DeleteOneID(id int) *UserDeleteOne
    func (c *UserClient) Get(ctx context.Context, id int) (*User, error)
    func (c *UserClient) GetX(ctx context.Context, id int) *User
    func (c *UserClient) Hooks() []Hook
    func (c *UserClient) Intercept(interceptors ...Interceptor)
    func (c *UserClient) Interceptors() []Interceptor
    func (c *UserClient) Query() *UserQuery
    func (c *UserClient) QueryAuth(u *User) *AuthQuery
    func (c *UserClient) QueryHpfcEventTickets(u *User) *HPFCEventTicketQuery
    func (c *UserClient) QueryHpmemberFollowing(u *User) *HPFollowQuery
    func (c *UserClient) QueryHpsortHistory(u *User) *HPSortHistoryQuery
    func (c *UserClient) QueryHpviewHistory(u *User) *HPViewHistoryQuery
    func (c *UserClient) QueryNotificationSettings(u *User) *UserNotificationSettingQuery
    func (c *UserClient) Update() *UserUpdate
    func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
    func (c *UserClient) UpdateOneID(id int) *UserUpdateOne
    func (c *UserClient) Use(hooks ...Hook)
type UserConnection
type UserCreate
    func (uc *UserCreate) AddAuth(a ...*Auth) *UserCreate
    func (uc *UserCreate) AddAuthIDs(ids ...int) *UserCreate
    func (uc *UserCreate) AddHpfcEventTicketIDs(ids ...int) *UserCreate
    func (uc *UserCreate) AddHpfcEventTickets(h ...*HPFCEventTicket) *UserCreate
    func (uc *UserCreate) AddHpmemberFollowing(h ...*HPFollow) *UserCreate
    func (uc *UserCreate) AddHpmemberFollowingIDs(ids ...int) *UserCreate
    func (uc *UserCreate) AddHpsortHistory(h ...*HPSortHistory) *UserCreate
    func (uc *UserCreate) AddHpsortHistoryIDs(ids ...int) *UserCreate
    func (uc *UserCreate) AddHpviewHistory(h ...*HPViewHistory) *UserCreate
    func (uc *UserCreate) AddHpviewHistoryIDs(ids ...int) *UserCreate
    func (uc *UserCreate) AddNotificationSettingIDs(ids ...int) *UserCreate
    func (uc *UserCreate) AddNotificationSettings(u ...*UserNotificationSetting) *UserCreate
    func (uc *UserCreate) Exec(ctx context.Context) error
    func (uc *UserCreate) ExecX(ctx context.Context)
    func (uc *UserCreate) Mutation() *UserMutation
    func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne
    func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne
    func (uc *UserCreate) Save(ctx context.Context) (*User, error)
    func (uc *UserCreate) SaveX(ctx context.Context) *User
    func (uc *UserCreate) SetAccessToken(s string) *UserCreate
    func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
    func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
    func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate
    func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
    func (uc *UserCreate) SetUsername(s string) *UserCreate
type UserCreateBulk
    func (ucb *UserCreateBulk) Exec(ctx context.Context) error
    func (ucb *UserCreateBulk) ExecX(ctx context.Context)
    func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk
    func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk
    func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)
    func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User
type UserDelete
    func (ud *UserDelete) Exec(ctx context.Context) (int, error)
    func (ud *UserDelete) ExecX(ctx context.Context) int
    func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete
type UserDeleteOne
    func (udo *UserDeleteOne) Exec(ctx context.Context) error
    func (udo *UserDeleteOne) ExecX(ctx context.Context)
    func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne
type UserEdge
type UserEdges
    func (e UserEdges) AuthOrErr() ([]*Auth, error)
    func (e UserEdges) HpfcEventTicketsOrErr() ([]*HPFCEventTicket, error)
    func (e UserEdges) HpmemberFollowingOrErr() ([]*HPFollow, error)
    func (e UserEdges) HpsortHistoryOrErr() ([]*HPSortHistory, error)
    func (e UserEdges) HpviewHistoryOrErr() ([]*HPViewHistory, error)
    func (e UserEdges) NotificationSettingsOrErr() ([]*UserNotificationSetting, error)
type UserFilter
    func (f *UserFilter) Where(p entql.P)
    func (f *UserFilter) WhereAccessToken(p entql.StringP)
    func (f *UserFilter) WhereCreatedAt(p entql.TimeP)
    func (f *UserFilter) WhereHasAuth()
    func (f *UserFilter) WhereHasAuthWith(preds ...predicate.Auth)
    func (f *UserFilter) WhereHasHpfcEventTickets()
    func (f *UserFilter) WhereHasHpfcEventTicketsWith(preds ...predicate.HPFCEventTicket)
    func (f *UserFilter) WhereHasHpmemberFollowing()
    func (f *UserFilter) WhereHasHpmemberFollowingWith(preds ...predicate.HPFollow)
    func (f *UserFilter) WhereHasHpsortHistory()
    func (f *UserFilter) WhereHasHpsortHistoryWith(preds ...predicate.HPSortHistory)
    func (f *UserFilter) WhereHasHpviewHistory()
    func (f *UserFilter) WhereHasHpviewHistoryWith(preds ...predicate.HPViewHistory)
    func (f *UserFilter) WhereHasNotificationSettings()
    func (f *UserFilter) WhereHasNotificationSettingsWith(preds ...predicate.UserNotificationSetting)
    func (f *UserFilter) WhereID(p entql.IntP)
    func (f *UserFilter) WhereUpdatedAt(p entql.TimeP)
    func (f *UserFilter) WhereUsername(p entql.StringP)
type UserGroupBy
    func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
    func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *UserGroupBy) BoolX(ctx context.Context) bool
    func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *UserGroupBy) BoolsX(ctx context.Context) []bool
    func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *UserGroupBy) Float64X(ctx context.Context) float64
    func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *UserGroupBy) Float64sX(ctx context.Context) []float64
    func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *UserGroupBy) IntX(ctx context.Context) int
    func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *UserGroupBy) IntsX(ctx context.Context) []int
    func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
    func (s *UserGroupBy) ScanX(ctx context.Context, v any)
    func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *UserGroupBy) StringX(ctx context.Context) string
    func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *UserGroupBy) StringsX(ctx context.Context) []string
type UserMutation
    func (m *UserMutation) AccessToken() (r string, exists bool)
    func (m *UserMutation) AddAuthIDs(ids ...int)
    func (m *UserMutation) AddField(name string, value ent.Value) error
    func (m *UserMutation) AddHpfcEventTicketIDs(ids ...int)
    func (m *UserMutation) AddHpmemberFollowingIDs(ids ...int)
    func (m *UserMutation) AddHpsortHistoryIDs(ids ...int)
    func (m *UserMutation) AddHpviewHistoryIDs(ids ...int)
    func (m *UserMutation) AddNotificationSettingIDs(ids ...int)
    func (m *UserMutation) AddedEdges() []string
    func (m *UserMutation) AddedField(name string) (ent.Value, bool)
    func (m *UserMutation) AddedFields() []string
    func (m *UserMutation) AddedIDs(name string) []ent.Value
    func (m *UserMutation) AuthCleared() bool
    func (m *UserMutation) AuthIDs() (ids []int)
    func (m *UserMutation) ClearAuth()
    func (m *UserMutation) ClearCreatedAt()
    func (m *UserMutation) ClearEdge(name string) error
    func (m *UserMutation) ClearField(name string) error
    func (m *UserMutation) ClearHpfcEventTickets()
    func (m *UserMutation) ClearHpmemberFollowing()
    func (m *UserMutation) ClearHpsortHistory()
    func (m *UserMutation) ClearHpviewHistory()
    func (m *UserMutation) ClearNotificationSettings()
    func (m *UserMutation) ClearUpdatedAt()
    func (m *UserMutation) ClearedEdges() []string
    func (m *UserMutation) ClearedFields() []string
    func (m UserMutation) Client() *Client
    func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
    func (m *UserMutation) CreatedAtCleared() bool
    func (m *UserMutation) EdgeCleared(name string) bool
    func (m *UserMutation) Field(name string) (ent.Value, bool)
    func (m *UserMutation) FieldCleared(name string) bool
    func (m *UserMutation) Fields() []string
    func (m *UserMutation) Filter() *UserFilter
    func (m *UserMutation) HpfcEventTicketsCleared() bool
    func (m *UserMutation) HpfcEventTicketsIDs() (ids []int)
    func (m *UserMutation) HpmemberFollowingCleared() bool
    func (m *UserMutation) HpmemberFollowingIDs() (ids []int)
    func (m *UserMutation) HpsortHistoryCleared() bool
    func (m *UserMutation) HpsortHistoryIDs() (ids []int)
    func (m *UserMutation) HpviewHistoryCleared() bool
    func (m *UserMutation) HpviewHistoryIDs() (ids []int)
    func (m *UserMutation) ID() (id int, exists bool)
    func (m *UserMutation) IDs(ctx context.Context) ([]int, error)
    func (m *UserMutation) NotificationSettingsCleared() bool
    func (m *UserMutation) NotificationSettingsIDs() (ids []int)
    func (m *UserMutation) OldAccessToken(ctx context.Context) (v string, err error)
    func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error)
    func (m *UserMutation) Op() Op
    func (m *UserMutation) RemoveAuthIDs(ids ...int)
    func (m *UserMutation) RemoveHpfcEventTicketIDs(ids ...int)
    func (m *UserMutation) RemoveHpmemberFollowingIDs(ids ...int)
    func (m *UserMutation) RemoveHpsortHistoryIDs(ids ...int)
    func (m *UserMutation) RemoveHpviewHistoryIDs(ids ...int)
    func (m *UserMutation) RemoveNotificationSettingIDs(ids ...int)
    func (m *UserMutation) RemovedAuthIDs() (ids []int)
    func (m *UserMutation) RemovedEdges() []string
    func (m *UserMutation) RemovedHpfcEventTicketsIDs() (ids []int)
    func (m *UserMutation) RemovedHpmemberFollowingIDs() (ids []int)
    func (m *UserMutation) RemovedHpsortHistoryIDs() (ids []int)
    func (m *UserMutation) RemovedHpviewHistoryIDs() (ids []int)
    func (m *UserMutation) RemovedIDs(name string) []ent.Value
    func (m *UserMutation) RemovedNotificationSettingsIDs() (ids []int)
    func (m *UserMutation) ResetAccessToken()
    func (m *UserMutation) ResetAuth()
    func (m *UserMutation) ResetCreatedAt()
    func (m *UserMutation) ResetEdge(name string) error
    func (m *UserMutation) ResetField(name string) error
    func (m *UserMutation) ResetHpfcEventTickets()
    func (m *UserMutation) ResetHpmemberFollowing()
    func (m *UserMutation) ResetHpsortHistory()
    func (m *UserMutation) ResetHpviewHistory()
    func (m *UserMutation) ResetNotificationSettings()
    func (m *UserMutation) ResetUpdatedAt()
    func (m *UserMutation) ResetUsername()
    func (m *UserMutation) SetAccessToken(s string)
    func (m *UserMutation) SetCreatedAt(t time.Time)
    func (m *UserMutation) SetField(name string, value ent.Value) error
    func (m *UserMutation) SetOp(op Op)
    func (m *UserMutation) SetUpdatedAt(t time.Time)
    func (m *UserMutation) SetUsername(s string)
    func (m UserMutation) Tx() (*Tx, error)
    func (m *UserMutation) Type() string
    func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *UserMutation) UpdatedAtCleared() bool
    func (m *UserMutation) Username() (r string, exists bool)
    func (m *UserMutation) Where(ps ...predicate.User)
    func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
type UserNotificationLog
    func (unl *UserNotificationLog) NamedReceivers(name string) ([]*UserNotificationSetting, error)
    func (unl *UserNotificationLog) QueryReceivers() *UserNotificationSettingQuery
    func (unl *UserNotificationLog) String() string
    func (unl *UserNotificationLog) Unwrap() *UserNotificationLog
    func (unl *UserNotificationLog) Update() *UserNotificationLogUpdateOne
    func (unl *UserNotificationLog) Value(name string) (ent.Value, error)
type UserNotificationLogClient
    func NewUserNotificationLogClient(c config) *UserNotificationLogClient
    func (c *UserNotificationLogClient) Create() *UserNotificationLogCreate
    func (c *UserNotificationLogClient) CreateBulk(builders ...*UserNotificationLogCreate) *UserNotificationLogCreateBulk
    func (c *UserNotificationLogClient) Delete() *UserNotificationLogDelete
    func (c *UserNotificationLogClient) DeleteOne(unl *UserNotificationLog) *UserNotificationLogDeleteOne
    func (c *UserNotificationLogClient) DeleteOneID(id int) *UserNotificationLogDeleteOne
    func (c *UserNotificationLogClient) Get(ctx context.Context, id int) (*UserNotificationLog, error)
    func (c *UserNotificationLogClient) GetX(ctx context.Context, id int) *UserNotificationLog
    func (c *UserNotificationLogClient) Hooks() []Hook
    func (c *UserNotificationLogClient) Intercept(interceptors ...Interceptor)
    func (c *UserNotificationLogClient) Interceptors() []Interceptor
    func (c *UserNotificationLogClient) Query() *UserNotificationLogQuery
    func (c *UserNotificationLogClient) QueryReceivers(unl *UserNotificationLog) *UserNotificationSettingQuery
    func (c *UserNotificationLogClient) Update() *UserNotificationLogUpdate
    func (c *UserNotificationLogClient) UpdateOne(unl *UserNotificationLog) *UserNotificationLogUpdateOne
    func (c *UserNotificationLogClient) UpdateOneID(id int) *UserNotificationLogUpdateOne
    func (c *UserNotificationLogClient) Use(hooks ...Hook)
type UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) AddReceiverIDs(ids ...int) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) AddReceivers(u ...*UserNotificationSetting) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) Exec(ctx context.Context) error
    func (unlc *UserNotificationLogCreate) ExecX(ctx context.Context)
    func (unlc *UserNotificationLogCreate) Mutation() *UserNotificationLogMutation
    func (unlc *UserNotificationLogCreate) OnConflict(opts ...sql.ConflictOption) *UserNotificationLogUpsertOne
    func (unlc *UserNotificationLogCreate) OnConflictColumns(columns ...string) *UserNotificationLogUpsertOne
    func (unlc *UserNotificationLogCreate) Save(ctx context.Context) (*UserNotificationLog, error)
    func (unlc *UserNotificationLogCreate) SaveX(ctx context.Context) *UserNotificationLog
    func (unlc *UserNotificationLogCreate) SetCreatedAt(t time.Time) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetExpectedDeliveryTime(t time.Time) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetIsTest(b bool) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetKey(s string) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetNillableCreatedAt(t *time.Time) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetNillableStatus(ens *enums.UserNotificationStatus) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetNillableStatusMessage(s *string) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetNillableUpdatedAt(t *time.Time) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetStatus(ens enums.UserNotificationStatus) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetStatusMessage(s string) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetTrigger(s string) *UserNotificationLogCreate
    func (unlc *UserNotificationLogCreate) SetUpdatedAt(t time.Time) *UserNotificationLogCreate
type UserNotificationLogCreateBulk
    func (unlcb *UserNotificationLogCreateBulk) Exec(ctx context.Context) error
    func (unlcb *UserNotificationLogCreateBulk) ExecX(ctx context.Context)
    func (unlcb *UserNotificationLogCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNotificationLogUpsertBulk
    func (unlcb *UserNotificationLogCreateBulk) OnConflictColumns(columns ...string) *UserNotificationLogUpsertBulk
    func (unlcb *UserNotificationLogCreateBulk) Save(ctx context.Context) ([]*UserNotificationLog, error)
    func (unlcb *UserNotificationLogCreateBulk) SaveX(ctx context.Context) []*UserNotificationLog
type UserNotificationLogDelete
    func (unld *UserNotificationLogDelete) Exec(ctx context.Context) (int, error)
    func (unld *UserNotificationLogDelete) ExecX(ctx context.Context) int
    func (unld *UserNotificationLogDelete) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogDelete
type UserNotificationLogDeleteOne
    func (unldo *UserNotificationLogDeleteOne) Exec(ctx context.Context) error
    func (unldo *UserNotificationLogDeleteOne) ExecX(ctx context.Context)
    func (unldo *UserNotificationLogDeleteOne) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogDeleteOne
type UserNotificationLogEdges
    func (e UserNotificationLogEdges) ReceiversOrErr() ([]*UserNotificationSetting, error)
type UserNotificationLogFilter
    func (f *UserNotificationLogFilter) Where(p entql.P)
    func (f *UserNotificationLogFilter) WhereCreatedAt(p entql.TimeP)
    func (f *UserNotificationLogFilter) WhereExpectedDeliveryTime(p entql.TimeP)
    func (f *UserNotificationLogFilter) WhereHasReceivers()
    func (f *UserNotificationLogFilter) WhereHasReceiversWith(preds ...predicate.UserNotificationSetting)
    func (f *UserNotificationLogFilter) WhereID(p entql.IntP)
    func (f *UserNotificationLogFilter) WhereIsTest(p entql.BoolP)
    func (f *UserNotificationLogFilter) WhereKey(p entql.StringP)
    func (f *UserNotificationLogFilter) WhereReactNavigationMessage(p entql.BytesP)
    func (f *UserNotificationLogFilter) WhereStatus(p entql.StringP)
    func (f *UserNotificationLogFilter) WhereStatusMessage(p entql.StringP)
    func (f *UserNotificationLogFilter) WhereTrigger(p entql.StringP)
    func (f *UserNotificationLogFilter) WhereUpdatedAt(p entql.TimeP)
type UserNotificationLogGroupBy
    func (unlgb *UserNotificationLogGroupBy) Aggregate(fns ...AggregateFunc) *UserNotificationLogGroupBy
    func (s *UserNotificationLogGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *UserNotificationLogGroupBy) BoolX(ctx context.Context) bool
    func (s *UserNotificationLogGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *UserNotificationLogGroupBy) BoolsX(ctx context.Context) []bool
    func (s *UserNotificationLogGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *UserNotificationLogGroupBy) Float64X(ctx context.Context) float64
    func (s *UserNotificationLogGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *UserNotificationLogGroupBy) Float64sX(ctx context.Context) []float64
    func (s *UserNotificationLogGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *UserNotificationLogGroupBy) IntX(ctx context.Context) int
    func (s *UserNotificationLogGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *UserNotificationLogGroupBy) IntsX(ctx context.Context) []int
    func (unlgb *UserNotificationLogGroupBy) Scan(ctx context.Context, v any) error
    func (s *UserNotificationLogGroupBy) ScanX(ctx context.Context, v any)
    func (s *UserNotificationLogGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *UserNotificationLogGroupBy) StringX(ctx context.Context) string
    func (s *UserNotificationLogGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *UserNotificationLogGroupBy) StringsX(ctx context.Context) []string
type UserNotificationLogMutation
    func (m *UserNotificationLogMutation) AddField(name string, value ent.Value) error
    func (m *UserNotificationLogMutation) AddReceiverIDs(ids ...int)
    func (m *UserNotificationLogMutation) AddedEdges() []string
    func (m *UserNotificationLogMutation) AddedField(name string) (ent.Value, bool)
    func (m *UserNotificationLogMutation) AddedFields() []string
    func (m *UserNotificationLogMutation) AddedIDs(name string) []ent.Value
    func (m *UserNotificationLogMutation) ClearCreatedAt()
    func (m *UserNotificationLogMutation) ClearEdge(name string) error
    func (m *UserNotificationLogMutation) ClearField(name string) error
    func (m *UserNotificationLogMutation) ClearReceivers()
    func (m *UserNotificationLogMutation) ClearUpdatedAt()
    func (m *UserNotificationLogMutation) ClearedEdges() []string
    func (m *UserNotificationLogMutation) ClearedFields() []string
    func (m UserNotificationLogMutation) Client() *Client
    func (m *UserNotificationLogMutation) CreatedAt() (r time.Time, exists bool)
    func (m *UserNotificationLogMutation) CreatedAtCleared() bool
    func (m *UserNotificationLogMutation) EdgeCleared(name string) bool
    func (m *UserNotificationLogMutation) ExpectedDeliveryTime() (r time.Time, exists bool)
    func (m *UserNotificationLogMutation) Field(name string) (ent.Value, bool)
    func (m *UserNotificationLogMutation) FieldCleared(name string) bool
    func (m *UserNotificationLogMutation) Fields() []string
    func (m *UserNotificationLogMutation) Filter() *UserNotificationLogFilter
    func (m *UserNotificationLogMutation) ID() (id int, exists bool)
    func (m *UserNotificationLogMutation) IDs(ctx context.Context) ([]int, error)
    func (m *UserNotificationLogMutation) IsTest() (r bool, exists bool)
    func (m *UserNotificationLogMutation) Key() (r string, exists bool)
    func (m *UserNotificationLogMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *UserNotificationLogMutation) OldExpectedDeliveryTime(ctx context.Context) (v time.Time, err error)
    func (m *UserNotificationLogMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *UserNotificationLogMutation) OldIsTest(ctx context.Context) (v bool, err error)
    func (m *UserNotificationLogMutation) OldKey(ctx context.Context) (v string, err error)
    func (m *UserNotificationLogMutation) OldReactNavigationMessage(ctx context.Context) (v jsonfields.ReactNavigationPush, err error)
    func (m *UserNotificationLogMutation) OldStatus(ctx context.Context) (v enums.UserNotificationStatus, err error)
    func (m *UserNotificationLogMutation) OldStatusMessage(ctx context.Context) (v string, err error)
    func (m *UserNotificationLogMutation) OldTrigger(ctx context.Context) (v string, err error)
    func (m *UserNotificationLogMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *UserNotificationLogMutation) Op() Op
    func (m *UserNotificationLogMutation) ReactNavigationMessage() (r jsonfields.ReactNavigationPush, exists bool)
    func (m *UserNotificationLogMutation) ReceiversCleared() bool
    func (m *UserNotificationLogMutation) ReceiversIDs() (ids []int)
    func (m *UserNotificationLogMutation) RemoveReceiverIDs(ids ...int)
    func (m *UserNotificationLogMutation) RemovedEdges() []string
    func (m *UserNotificationLogMutation) RemovedIDs(name string) []ent.Value
    func (m *UserNotificationLogMutation) RemovedReceiversIDs() (ids []int)
    func (m *UserNotificationLogMutation) ResetCreatedAt()
    func (m *UserNotificationLogMutation) ResetEdge(name string) error
    func (m *UserNotificationLogMutation) ResetExpectedDeliveryTime()
    func (m *UserNotificationLogMutation) ResetField(name string) error
    func (m *UserNotificationLogMutation) ResetIsTest()
    func (m *UserNotificationLogMutation) ResetKey()
    func (m *UserNotificationLogMutation) ResetReactNavigationMessage()
    func (m *UserNotificationLogMutation) ResetReceivers()
    func (m *UserNotificationLogMutation) ResetStatus()
    func (m *UserNotificationLogMutation) ResetStatusMessage()
    func (m *UserNotificationLogMutation) ResetTrigger()
    func (m *UserNotificationLogMutation) ResetUpdatedAt()
    func (m *UserNotificationLogMutation) SetCreatedAt(t time.Time)
    func (m *UserNotificationLogMutation) SetExpectedDeliveryTime(t time.Time)
    func (m *UserNotificationLogMutation) SetField(name string, value ent.Value) error
    func (m *UserNotificationLogMutation) SetIsTest(b bool)
    func (m *UserNotificationLogMutation) SetKey(s string)
    func (m *UserNotificationLogMutation) SetOp(op Op)
    func (m *UserNotificationLogMutation) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush)
    func (m *UserNotificationLogMutation) SetStatus(ens enums.UserNotificationStatus)
    func (m *UserNotificationLogMutation) SetStatusMessage(s string)
    func (m *UserNotificationLogMutation) SetTrigger(s string)
    func (m *UserNotificationLogMutation) SetUpdatedAt(t time.Time)
    func (m *UserNotificationLogMutation) Status() (r enums.UserNotificationStatus, exists bool)
    func (m *UserNotificationLogMutation) StatusMessage() (r string, exists bool)
    func (m *UserNotificationLogMutation) Trigger() (r string, exists bool)
    func (m UserNotificationLogMutation) Tx() (*Tx, error)
    func (m *UserNotificationLogMutation) Type() string
    func (m *UserNotificationLogMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *UserNotificationLogMutation) UpdatedAtCleared() bool
    func (m *UserNotificationLogMutation) Where(ps ...predicate.UserNotificationLog)
    func (m *UserNotificationLogMutation) WhereP(ps ...func(*sql.Selector))
type UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) Aggregate(fns ...AggregateFunc) *UserNotificationLogSelect
    func (unlq *UserNotificationLogQuery) All(ctx context.Context) ([]*UserNotificationLog, error)
    func (unlq *UserNotificationLogQuery) AllX(ctx context.Context) []*UserNotificationLog
    func (unlq *UserNotificationLogQuery) Clone() *UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) Count(ctx context.Context) (int, error)
    func (unlq *UserNotificationLogQuery) CountX(ctx context.Context) int
    func (unlq *UserNotificationLogQuery) Exist(ctx context.Context) (bool, error)
    func (unlq *UserNotificationLogQuery) ExistX(ctx context.Context) bool
    func (unlq *UserNotificationLogQuery) Filter() *UserNotificationLogFilter
    func (unlq *UserNotificationLogQuery) First(ctx context.Context) (*UserNotificationLog, error)
    func (unlq *UserNotificationLogQuery) FirstID(ctx context.Context) (id int, err error)
    func (unlq *UserNotificationLogQuery) FirstIDX(ctx context.Context) int
    func (unlq *UserNotificationLogQuery) FirstX(ctx context.Context) *UserNotificationLog
    func (unlq *UserNotificationLogQuery) GroupBy(field string, fields ...string) *UserNotificationLogGroupBy
    func (unlq *UserNotificationLogQuery) IDs(ctx context.Context) (ids []int, err error)
    func (unlq *UserNotificationLogQuery) IDsX(ctx context.Context) []int
    func (unlq *UserNotificationLogQuery) Limit(limit int) *UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) Offset(offset int) *UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) Only(ctx context.Context) (*UserNotificationLog, error)
    func (unlq *UserNotificationLogQuery) OnlyID(ctx context.Context) (id int, err error)
    func (unlq *UserNotificationLogQuery) OnlyIDX(ctx context.Context) int
    func (unlq *UserNotificationLogQuery) OnlyX(ctx context.Context) *UserNotificationLog
    func (unlq *UserNotificationLogQuery) Order(o ...usernotificationlog.Order) *UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) QueryReceivers() *UserNotificationSettingQuery
    func (unlq *UserNotificationLogQuery) Select(fields ...string) *UserNotificationLogSelect
    func (unlq *UserNotificationLogQuery) Unique(unique bool) *UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) WithNamedReceivers(name string, opts ...func(*UserNotificationSettingQuery)) *UserNotificationLogQuery
    func (unlq *UserNotificationLogQuery) WithReceivers(opts ...func(*UserNotificationSettingQuery)) *UserNotificationLogQuery
type UserNotificationLogSelect
    func (unls *UserNotificationLogSelect) Aggregate(fns ...AggregateFunc) *UserNotificationLogSelect
    func (s *UserNotificationLogSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *UserNotificationLogSelect) BoolX(ctx context.Context) bool
    func (s *UserNotificationLogSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *UserNotificationLogSelect) BoolsX(ctx context.Context) []bool
    func (s *UserNotificationLogSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *UserNotificationLogSelect) Float64X(ctx context.Context) float64
    func (s *UserNotificationLogSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *UserNotificationLogSelect) Float64sX(ctx context.Context) []float64
    func (s *UserNotificationLogSelect) Int(ctx context.Context) (_ int, err error)
    func (s *UserNotificationLogSelect) IntX(ctx context.Context) int
    func (s *UserNotificationLogSelect) Ints(ctx context.Context) ([]int, error)
    func (s *UserNotificationLogSelect) IntsX(ctx context.Context) []int
    func (unls *UserNotificationLogSelect) Scan(ctx context.Context, v any) error
    func (s *UserNotificationLogSelect) ScanX(ctx context.Context, v any)
    func (s *UserNotificationLogSelect) String(ctx context.Context) (_ string, err error)
    func (s *UserNotificationLogSelect) StringX(ctx context.Context) string
    func (s *UserNotificationLogSelect) Strings(ctx context.Context) ([]string, error)
    func (s *UserNotificationLogSelect) StringsX(ctx context.Context) []string
type UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) AddReceiverIDs(ids ...int) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) AddReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) ClearReceivers() *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) ClearUpdatedAt() *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) Exec(ctx context.Context) error
    func (unlu *UserNotificationLogUpdate) ExecX(ctx context.Context)
    func (unlu *UserNotificationLogUpdate) Mutation() *UserNotificationLogMutation
    func (unlu *UserNotificationLogUpdate) RemoveReceiverIDs(ids ...int) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) RemoveReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) Save(ctx context.Context) (int, error)
    func (unlu *UserNotificationLogUpdate) SaveX(ctx context.Context) int
    func (unlu *UserNotificationLogUpdate) SetExpectedDeliveryTime(t time.Time) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetIsTest(b bool) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetNillableStatus(ens *enums.UserNotificationStatus) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetNillableStatusMessage(s *string) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetNillableUpdatedAt(t *time.Time) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetStatus(ens enums.UserNotificationStatus) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetStatusMessage(s string) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) SetUpdatedAt(t time.Time) *UserNotificationLogUpdate
    func (unlu *UserNotificationLogUpdate) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogUpdate
type UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) AddReceiverIDs(ids ...int) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) AddReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) ClearReceivers() *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) ClearUpdatedAt() *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) Exec(ctx context.Context) error
    func (unluo *UserNotificationLogUpdateOne) ExecX(ctx context.Context)
    func (unluo *UserNotificationLogUpdateOne) Mutation() *UserNotificationLogMutation
    func (unluo *UserNotificationLogUpdateOne) RemoveReceiverIDs(ids ...int) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) RemoveReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) Save(ctx context.Context) (*UserNotificationLog, error)
    func (unluo *UserNotificationLogUpdateOne) SaveX(ctx context.Context) *UserNotificationLog
    func (unluo *UserNotificationLogUpdateOne) Select(field string, fields ...string) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetExpectedDeliveryTime(t time.Time) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetIsTest(b bool) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetNillableStatus(ens *enums.UserNotificationStatus) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetNillableStatusMessage(s *string) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetNillableUpdatedAt(t *time.Time) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetStatus(ens enums.UserNotificationStatus) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetStatusMessage(s string) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) SetUpdatedAt(t time.Time) *UserNotificationLogUpdateOne
    func (unluo *UserNotificationLogUpdateOne) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogUpdateOne
type UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) ClearUpdatedAt() *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) SetExpectedDeliveryTime(v time.Time) *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) SetIsTest(v bool) *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) SetReactNavigationMessage(v jsonfields.ReactNavigationPush) *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) SetStatus(v enums.UserNotificationStatus) *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) SetStatusMessage(v string) *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) SetUpdatedAt(v time.Time) *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) UpdateExpectedDeliveryTime() *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) UpdateIsTest() *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) UpdateReactNavigationMessage() *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) UpdateStatus() *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) UpdateStatusMessage() *UserNotificationLogUpsert
    func (u *UserNotificationLogUpsert) UpdateUpdatedAt() *UserNotificationLogUpsert
type UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) ClearUpdatedAt() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) DoNothing() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) Exec(ctx context.Context) error
    func (u *UserNotificationLogUpsertBulk) ExecX(ctx context.Context)
    func (u *UserNotificationLogUpsertBulk) Ignore() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) SetExpectedDeliveryTime(v time.Time) *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) SetIsTest(v bool) *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) SetReactNavigationMessage(v jsonfields.ReactNavigationPush) *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) SetStatus(v enums.UserNotificationStatus) *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) SetStatusMessage(v string) *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) SetUpdatedAt(v time.Time) *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) Update(set func(*UserNotificationLogUpsert)) *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) UpdateExpectedDeliveryTime() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) UpdateIsTest() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) UpdateNewValues() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) UpdateReactNavigationMessage() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) UpdateStatus() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) UpdateStatusMessage() *UserNotificationLogUpsertBulk
    func (u *UserNotificationLogUpsertBulk) UpdateUpdatedAt() *UserNotificationLogUpsertBulk
type UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) ClearUpdatedAt() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) DoNothing() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) Exec(ctx context.Context) error
    func (u *UserNotificationLogUpsertOne) ExecX(ctx context.Context)
    func (u *UserNotificationLogUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *UserNotificationLogUpsertOne) IDX(ctx context.Context) int
    func (u *UserNotificationLogUpsertOne) Ignore() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) SetExpectedDeliveryTime(v time.Time) *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) SetIsTest(v bool) *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) SetReactNavigationMessage(v jsonfields.ReactNavigationPush) *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) SetStatus(v enums.UserNotificationStatus) *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) SetStatusMessage(v string) *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) SetUpdatedAt(v time.Time) *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) Update(set func(*UserNotificationLogUpsert)) *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) UpdateExpectedDeliveryTime() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) UpdateIsTest() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) UpdateNewValues() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) UpdateReactNavigationMessage() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) UpdateStatus() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) UpdateStatusMessage() *UserNotificationLogUpsertOne
    func (u *UserNotificationLogUpsertOne) UpdateUpdatedAt() *UserNotificationLogUpsertOne
type UserNotificationLogs
type UserNotificationSetting
    func (n *UserNotificationSetting) IsNode()
    func (uns *UserNotificationSetting) NamedNotificationLogs(name string) ([]*UserNotificationLog, error)
    func (uns *UserNotificationSetting) QueryNotificationLogs() *UserNotificationLogQuery
    func (uns *UserNotificationSetting) QueryUser() *UserQuery
    func (uns *UserNotificationSetting) String() string
    func (uns *UserNotificationSetting) ToEdge(order *UserNotificationSettingOrder) *UserNotificationSettingEdge
    func (uns *UserNotificationSetting) Unwrap() *UserNotificationSetting
    func (uns *UserNotificationSetting) Update() *UserNotificationSettingUpdateOne
    func (uns *UserNotificationSetting) User(ctx context.Context) (*User, error)
    func (uns *UserNotificationSetting) Value(name string) (ent.Value, error)
type UserNotificationSettingClient
    func NewUserNotificationSettingClient(c config) *UserNotificationSettingClient
    func (c *UserNotificationSettingClient) Create() *UserNotificationSettingCreate
    func (c *UserNotificationSettingClient) CreateBulk(builders ...*UserNotificationSettingCreate) *UserNotificationSettingCreateBulk
    func (c *UserNotificationSettingClient) Delete() *UserNotificationSettingDelete
    func (c *UserNotificationSettingClient) DeleteOne(uns *UserNotificationSetting) *UserNotificationSettingDeleteOne
    func (c *UserNotificationSettingClient) DeleteOneID(id int) *UserNotificationSettingDeleteOne
    func (c *UserNotificationSettingClient) Get(ctx context.Context, id int) (*UserNotificationSetting, error)
    func (c *UserNotificationSettingClient) GetX(ctx context.Context, id int) *UserNotificationSetting
    func (c *UserNotificationSettingClient) Hooks() []Hook
    func (c *UserNotificationSettingClient) Intercept(interceptors ...Interceptor)
    func (c *UserNotificationSettingClient) Interceptors() []Interceptor
    func (c *UserNotificationSettingClient) Query() *UserNotificationSettingQuery
    func (c *UserNotificationSettingClient) QueryNotificationLogs(uns *UserNotificationSetting) *UserNotificationLogQuery
    func (c *UserNotificationSettingClient) QueryUser(uns *UserNotificationSetting) *UserQuery
    func (c *UserNotificationSettingClient) Update() *UserNotificationSettingUpdate
    func (c *UserNotificationSettingClient) UpdateOne(uns *UserNotificationSetting) *UserNotificationSettingUpdateOne
    func (c *UserNotificationSettingClient) UpdateOneID(id int) *UserNotificationSettingUpdateOne
    func (c *UserNotificationSettingClient) Use(hooks ...Hook)
type UserNotificationSettingConnection
type UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) AddNotificationLogIDs(ids ...int) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) AddNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) Exec(ctx context.Context) error
    func (unsc *UserNotificationSettingCreate) ExecX(ctx context.Context)
    func (unsc *UserNotificationSettingCreate) Mutation() *UserNotificationSettingMutation
    func (unsc *UserNotificationSettingCreate) OnConflict(opts ...sql.ConflictOption) *UserNotificationSettingUpsertOne
    func (unsc *UserNotificationSettingCreate) OnConflictColumns(columns ...string) *UserNotificationSettingUpsertOne
    func (unsc *UserNotificationSettingCreate) Save(ctx context.Context) (*UserNotificationSetting, error)
    func (unsc *UserNotificationSettingCreate) SaveX(ctx context.Context) *UserNotificationSetting
    func (unsc *UserNotificationSettingCreate) SetCreatedAt(t time.Time) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetEnableNewPosts(b bool) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetEnablePaymentDue(b bool) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetEnablePaymentStart(b bool) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetName(s string) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetNillableCreatedAt(t *time.Time) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetNillableOwnerUserID(i *int) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetNillableUpdatedAt(t *time.Time) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetNillableUserID(id *int) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetOwnerUserID(i int) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetSlug(s string) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetToken(s string) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetUpdatedAt(t time.Time) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetUser(u *User) *UserNotificationSettingCreate
    func (unsc *UserNotificationSettingCreate) SetUserID(id int) *UserNotificationSettingCreate
type UserNotificationSettingCreateBulk
    func (unscb *UserNotificationSettingCreateBulk) Exec(ctx context.Context) error
    func (unscb *UserNotificationSettingCreateBulk) ExecX(ctx context.Context)
    func (unscb *UserNotificationSettingCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNotificationSettingUpsertBulk
    func (unscb *UserNotificationSettingCreateBulk) OnConflictColumns(columns ...string) *UserNotificationSettingUpsertBulk
    func (unscb *UserNotificationSettingCreateBulk) Save(ctx context.Context) ([]*UserNotificationSetting, error)
    func (unscb *UserNotificationSettingCreateBulk) SaveX(ctx context.Context) []*UserNotificationSetting
type UserNotificationSettingDelete
    func (unsd *UserNotificationSettingDelete) Exec(ctx context.Context) (int, error)
    func (unsd *UserNotificationSettingDelete) ExecX(ctx context.Context) int
    func (unsd *UserNotificationSettingDelete) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingDelete
type UserNotificationSettingDeleteOne
    func (unsdo *UserNotificationSettingDeleteOne) Exec(ctx context.Context) error
    func (unsdo *UserNotificationSettingDeleteOne) ExecX(ctx context.Context)
    func (unsdo *UserNotificationSettingDeleteOne) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingDeleteOne
type UserNotificationSettingEdge
type UserNotificationSettingEdges
    func (e UserNotificationSettingEdges) NotificationLogsOrErr() ([]*UserNotificationLog, error)
    func (e UserNotificationSettingEdges) UserOrErr() (*User, error)
type UserNotificationSettingFilter
    func (f *UserNotificationSettingFilter) Where(p entql.P)
    func (f *UserNotificationSettingFilter) WhereCreatedAt(p entql.TimeP)
    func (f *UserNotificationSettingFilter) WhereEnableNewPosts(p entql.BoolP)
    func (f *UserNotificationSettingFilter) WhereEnablePaymentDue(p entql.BoolP)
    func (f *UserNotificationSettingFilter) WhereEnablePaymentStart(p entql.BoolP)
    func (f *UserNotificationSettingFilter) WhereHasNotificationLogs()
    func (f *UserNotificationSettingFilter) WhereHasNotificationLogsWith(preds ...predicate.UserNotificationLog)
    func (f *UserNotificationSettingFilter) WhereHasUser()
    func (f *UserNotificationSettingFilter) WhereHasUserWith(preds ...predicate.User)
    func (f *UserNotificationSettingFilter) WhereID(p entql.IntP)
    func (f *UserNotificationSettingFilter) WhereName(p entql.StringP)
    func (f *UserNotificationSettingFilter) WhereOwnerUserID(p entql.IntP)
    func (f *UserNotificationSettingFilter) WhereSlug(p entql.StringP)
    func (f *UserNotificationSettingFilter) WhereToken(p entql.StringP)
    func (f *UserNotificationSettingFilter) WhereUpdatedAt(p entql.TimeP)
type UserNotificationSettingGroupBy
    func (unsgb *UserNotificationSettingGroupBy) Aggregate(fns ...AggregateFunc) *UserNotificationSettingGroupBy
    func (s *UserNotificationSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)
    func (s *UserNotificationSettingGroupBy) BoolX(ctx context.Context) bool
    func (s *UserNotificationSettingGroupBy) Bools(ctx context.Context) ([]bool, error)
    func (s *UserNotificationSettingGroupBy) BoolsX(ctx context.Context) []bool
    func (s *UserNotificationSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)
    func (s *UserNotificationSettingGroupBy) Float64X(ctx context.Context) float64
    func (s *UserNotificationSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)
    func (s *UserNotificationSettingGroupBy) Float64sX(ctx context.Context) []float64
    func (s *UserNotificationSettingGroupBy) Int(ctx context.Context) (_ int, err error)
    func (s *UserNotificationSettingGroupBy) IntX(ctx context.Context) int
    func (s *UserNotificationSettingGroupBy) Ints(ctx context.Context) ([]int, error)
    func (s *UserNotificationSettingGroupBy) IntsX(ctx context.Context) []int
    func (unsgb *UserNotificationSettingGroupBy) Scan(ctx context.Context, v any) error
    func (s *UserNotificationSettingGroupBy) ScanX(ctx context.Context, v any)
    func (s *UserNotificationSettingGroupBy) String(ctx context.Context) (_ string, err error)
    func (s *UserNotificationSettingGroupBy) StringX(ctx context.Context) string
    func (s *UserNotificationSettingGroupBy) Strings(ctx context.Context) ([]string, error)
    func (s *UserNotificationSettingGroupBy) StringsX(ctx context.Context) []string
type UserNotificationSettingMutation
    func (m *UserNotificationSettingMutation) AddField(name string, value ent.Value) error
    func (m *UserNotificationSettingMutation) AddNotificationLogIDs(ids ...int)
    func (m *UserNotificationSettingMutation) AddedEdges() []string
    func (m *UserNotificationSettingMutation) AddedField(name string) (ent.Value, bool)
    func (m *UserNotificationSettingMutation) AddedFields() []string
    func (m *UserNotificationSettingMutation) AddedIDs(name string) []ent.Value
    func (m *UserNotificationSettingMutation) ClearCreatedAt()
    func (m *UserNotificationSettingMutation) ClearEdge(name string) error
    func (m *UserNotificationSettingMutation) ClearField(name string) error
    func (m *UserNotificationSettingMutation) ClearNotificationLogs()
    func (m *UserNotificationSettingMutation) ClearOwnerUserID()
    func (m *UserNotificationSettingMutation) ClearUpdatedAt()
    func (m *UserNotificationSettingMutation) ClearUser()
    func (m *UserNotificationSettingMutation) ClearedEdges() []string
    func (m *UserNotificationSettingMutation) ClearedFields() []string
    func (m UserNotificationSettingMutation) Client() *Client
    func (m *UserNotificationSettingMutation) CreatedAt() (r time.Time, exists bool)
    func (m *UserNotificationSettingMutation) CreatedAtCleared() bool
    func (m *UserNotificationSettingMutation) EdgeCleared(name string) bool
    func (m *UserNotificationSettingMutation) EnableNewPosts() (r bool, exists bool)
    func (m *UserNotificationSettingMutation) EnablePaymentDue() (r bool, exists bool)
    func (m *UserNotificationSettingMutation) EnablePaymentStart() (r bool, exists bool)
    func (m *UserNotificationSettingMutation) Field(name string) (ent.Value, bool)
    func (m *UserNotificationSettingMutation) FieldCleared(name string) bool
    func (m *UserNotificationSettingMutation) Fields() []string
    func (m *UserNotificationSettingMutation) Filter() *UserNotificationSettingFilter
    func (m *UserNotificationSettingMutation) ID() (id int, exists bool)
    func (m *UserNotificationSettingMutation) IDs(ctx context.Context) ([]int, error)
    func (m *UserNotificationSettingMutation) Name() (r string, exists bool)
    func (m *UserNotificationSettingMutation) NotificationLogsCleared() bool
    func (m *UserNotificationSettingMutation) NotificationLogsIDs() (ids []int)
    func (m *UserNotificationSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
    func (m *UserNotificationSettingMutation) OldEnableNewPosts(ctx context.Context) (v bool, err error)
    func (m *UserNotificationSettingMutation) OldEnablePaymentDue(ctx context.Context) (v bool, err error)
    func (m *UserNotificationSettingMutation) OldEnablePaymentStart(ctx context.Context) (v bool, err error)
    func (m *UserNotificationSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
    func (m *UserNotificationSettingMutation) OldName(ctx context.Context) (v string, err error)
    func (m *UserNotificationSettingMutation) OldOwnerUserID(ctx context.Context) (v *int, err error)
    func (m *UserNotificationSettingMutation) OldSlug(ctx context.Context) (v string, err error)
    func (m *UserNotificationSettingMutation) OldToken(ctx context.Context) (v string, err error)
    func (m *UserNotificationSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
    func (m *UserNotificationSettingMutation) Op() Op
    func (m *UserNotificationSettingMutation) OwnerUserID() (r int, exists bool)
    func (m *UserNotificationSettingMutation) OwnerUserIDCleared() bool
    func (m *UserNotificationSettingMutation) RemoveNotificationLogIDs(ids ...int)
    func (m *UserNotificationSettingMutation) RemovedEdges() []string
    func (m *UserNotificationSettingMutation) RemovedIDs(name string) []ent.Value
    func (m *UserNotificationSettingMutation) RemovedNotificationLogsIDs() (ids []int)
    func (m *UserNotificationSettingMutation) ResetCreatedAt()
    func (m *UserNotificationSettingMutation) ResetEdge(name string) error
    func (m *UserNotificationSettingMutation) ResetEnableNewPosts()
    func (m *UserNotificationSettingMutation) ResetEnablePaymentDue()
    func (m *UserNotificationSettingMutation) ResetEnablePaymentStart()
    func (m *UserNotificationSettingMutation) ResetField(name string) error
    func (m *UserNotificationSettingMutation) ResetName()
    func (m *UserNotificationSettingMutation) ResetNotificationLogs()
    func (m *UserNotificationSettingMutation) ResetOwnerUserID()
    func (m *UserNotificationSettingMutation) ResetSlug()
    func (m *UserNotificationSettingMutation) ResetToken()
    func (m *UserNotificationSettingMutation) ResetUpdatedAt()
    func (m *UserNotificationSettingMutation) ResetUser()
    func (m *UserNotificationSettingMutation) SetCreatedAt(t time.Time)
    func (m *UserNotificationSettingMutation) SetEnableNewPosts(b bool)
    func (m *UserNotificationSettingMutation) SetEnablePaymentDue(b bool)
    func (m *UserNotificationSettingMutation) SetEnablePaymentStart(b bool)
    func (m *UserNotificationSettingMutation) SetField(name string, value ent.Value) error
    func (m *UserNotificationSettingMutation) SetName(s string)
    func (m *UserNotificationSettingMutation) SetOp(op Op)
    func (m *UserNotificationSettingMutation) SetOwnerUserID(i int)
    func (m *UserNotificationSettingMutation) SetSlug(s string)
    func (m *UserNotificationSettingMutation) SetToken(s string)
    func (m *UserNotificationSettingMutation) SetUpdatedAt(t time.Time)
    func (m *UserNotificationSettingMutation) SetUserID(id int)
    func (m *UserNotificationSettingMutation) Slug() (r string, exists bool)
    func (m *UserNotificationSettingMutation) Token() (r string, exists bool)
    func (m UserNotificationSettingMutation) Tx() (*Tx, error)
    func (m *UserNotificationSettingMutation) Type() string
    func (m *UserNotificationSettingMutation) UpdatedAt() (r time.Time, exists bool)
    func (m *UserNotificationSettingMutation) UpdatedAtCleared() bool
    func (m *UserNotificationSettingMutation) UserCleared() bool
    func (m *UserNotificationSettingMutation) UserID() (id int, exists bool)
    func (m *UserNotificationSettingMutation) UserIDs() (ids []int)
    func (m *UserNotificationSettingMutation) Where(ps ...predicate.UserNotificationSetting)
    func (m *UserNotificationSettingMutation) WhereP(ps ...func(*sql.Selector))
type UserNotificationSettingOrder
type UserNotificationSettingOrderField
type UserNotificationSettingPaginateOption
    func WithUserNotificationSettingFilter(filter func(*UserNotificationSettingQuery) (*UserNotificationSettingQuery, error)) UserNotificationSettingPaginateOption
    func WithUserNotificationSettingOrder(order *UserNotificationSettingOrder) UserNotificationSettingPaginateOption
type UserNotificationSettingQuery
    func (unsq *UserNotificationSettingQuery) Aggregate(fns ...AggregateFunc) *UserNotificationSettingSelect
    func (unsq *UserNotificationSettingQuery) All(ctx context.Context) ([]*UserNotificationSetting, error)
    func (unsq *UserNotificationSettingQuery) AllX(ctx context.Context) []*UserNotificationSetting
    func (unsq *UserNotificationSettingQuery) Clone() *UserNotificationSettingQuery
    func (uns *UserNotificationSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserNotificationSettingQuery, error)
    func (unsq *UserNotificationSettingQuery) Count(ctx context.Context) (int, error)
    func (unsq *UserNotificationSettingQuery) CountX(ctx context.Context) int
    func (unsq *UserNotificationSettingQuery) Exist(ctx context.Context) (bool, error)
    func (unsq *UserNotificationSettingQuery) ExistX(ctx context.Context) bool
    func (unsq *UserNotificationSettingQuery) Filter() *UserNotificationSettingFilter
    func (unsq *UserNotificationSettingQuery) First(ctx context.Context) (*UserNotificationSetting, error)
    func (unsq *UserNotificationSettingQuery) FirstID(ctx context.Context) (id int, err error)
    func (unsq *UserNotificationSettingQuery) FirstIDX(ctx context.Context) int
    func (unsq *UserNotificationSettingQuery) FirstX(ctx context.Context) *UserNotificationSetting
    func (unsq *UserNotificationSettingQuery) GroupBy(field string, fields ...string) *UserNotificationSettingGroupBy
    func (unsq *UserNotificationSettingQuery) IDs(ctx context.Context) (ids []int, err error)
    func (unsq *UserNotificationSettingQuery) IDsX(ctx context.Context) []int
    func (unsq *UserNotificationSettingQuery) Limit(limit int) *UserNotificationSettingQuery
    func (unsq *UserNotificationSettingQuery) Offset(offset int) *UserNotificationSettingQuery
    func (unsq *UserNotificationSettingQuery) Only(ctx context.Context) (*UserNotificationSetting, error)
    func (unsq *UserNotificationSettingQuery) OnlyID(ctx context.Context) (id int, err error)
    func (unsq *UserNotificationSettingQuery) OnlyIDX(ctx context.Context) int
    func (unsq *UserNotificationSettingQuery) OnlyX(ctx context.Context) *UserNotificationSetting
    func (unsq *UserNotificationSettingQuery) Order(o ...usernotificationsetting.Order) *UserNotificationSettingQuery
    func (uns *UserNotificationSettingQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...UserNotificationSettingPaginateOption) (*UserNotificationSettingConnection, error)
    func (unsq *UserNotificationSettingQuery) QueryNotificationLogs() *UserNotificationLogQuery
    func (unsq *UserNotificationSettingQuery) QueryUser() *UserQuery
    func (unsq *UserNotificationSettingQuery) Select(fields ...string) *UserNotificationSettingSelect
    func (unsq *UserNotificationSettingQuery) Unique(unique bool) *UserNotificationSettingQuery
    func (unsq *UserNotificationSettingQuery) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingQuery
    func (unsq *UserNotificationSettingQuery) WithNamedNotificationLogs(name string, opts ...func(*UserNotificationLogQuery)) *UserNotificationSettingQuery
    func (unsq *UserNotificationSettingQuery) WithNotificationLogs(opts ...func(*UserNotificationLogQuery)) *UserNotificationSettingQuery
    func (unsq *UserNotificationSettingQuery) WithUser(opts ...func(*UserQuery)) *UserNotificationSettingQuery
type UserNotificationSettingSelect
    func (unss *UserNotificationSettingSelect) Aggregate(fns ...AggregateFunc) *UserNotificationSettingSelect
    func (s *UserNotificationSettingSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *UserNotificationSettingSelect) BoolX(ctx context.Context) bool
    func (s *UserNotificationSettingSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *UserNotificationSettingSelect) BoolsX(ctx context.Context) []bool
    func (s *UserNotificationSettingSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *UserNotificationSettingSelect) Float64X(ctx context.Context) float64
    func (s *UserNotificationSettingSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *UserNotificationSettingSelect) Float64sX(ctx context.Context) []float64
    func (s *UserNotificationSettingSelect) Int(ctx context.Context) (_ int, err error)
    func (s *UserNotificationSettingSelect) IntX(ctx context.Context) int
    func (s *UserNotificationSettingSelect) Ints(ctx context.Context) ([]int, error)
    func (s *UserNotificationSettingSelect) IntsX(ctx context.Context) []int
    func (unss *UserNotificationSettingSelect) Scan(ctx context.Context, v any) error
    func (s *UserNotificationSettingSelect) ScanX(ctx context.Context, v any)
    func (s *UserNotificationSettingSelect) String(ctx context.Context) (_ string, err error)
    func (s *UserNotificationSettingSelect) StringX(ctx context.Context) string
    func (s *UserNotificationSettingSelect) Strings(ctx context.Context) ([]string, error)
    func (s *UserNotificationSettingSelect) StringsX(ctx context.Context) []string
type UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) AddNotificationLogIDs(ids ...int) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) AddNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) ClearNotificationLogs() *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) ClearOwnerUserID() *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) ClearUpdatedAt() *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) ClearUser() *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) Exec(ctx context.Context) error
    func (unsu *UserNotificationSettingUpdate) ExecX(ctx context.Context)
    func (unsu *UserNotificationSettingUpdate) Mutation() *UserNotificationSettingMutation
    func (unsu *UserNotificationSettingUpdate) RemoveNotificationLogIDs(ids ...int) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) RemoveNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) Save(ctx context.Context) (int, error)
    func (unsu *UserNotificationSettingUpdate) SaveX(ctx context.Context) int
    func (unsu *UserNotificationSettingUpdate) SetEnableNewPosts(b bool) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetEnablePaymentDue(b bool) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetEnablePaymentStart(b bool) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetName(s string) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetNillableOwnerUserID(i *int) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetNillableUpdatedAt(t *time.Time) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetNillableUserID(id *int) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetOwnerUserID(i int) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetSlug(s string) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetToken(s string) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetUpdatedAt(t time.Time) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetUser(u *User) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) SetUserID(id int) *UserNotificationSettingUpdate
    func (unsu *UserNotificationSettingUpdate) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingUpdate
type UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) AddNotificationLogIDs(ids ...int) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) AddNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) ClearNotificationLogs() *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) ClearOwnerUserID() *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) ClearUpdatedAt() *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) ClearUser() *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) Exec(ctx context.Context) error
    func (unsuo *UserNotificationSettingUpdateOne) ExecX(ctx context.Context)
    func (unsuo *UserNotificationSettingUpdateOne) Mutation() *UserNotificationSettingMutation
    func (unsuo *UserNotificationSettingUpdateOne) RemoveNotificationLogIDs(ids ...int) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) RemoveNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) Save(ctx context.Context) (*UserNotificationSetting, error)
    func (unsuo *UserNotificationSettingUpdateOne) SaveX(ctx context.Context) *UserNotificationSetting
    func (unsuo *UserNotificationSettingUpdateOne) Select(field string, fields ...string) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetEnableNewPosts(b bool) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetEnablePaymentDue(b bool) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetEnablePaymentStart(b bool) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetName(s string) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetNillableOwnerUserID(i *int) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetNillableUpdatedAt(t *time.Time) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetNillableUserID(id *int) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetOwnerUserID(i int) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetSlug(s string) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetToken(s string) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetUpdatedAt(t time.Time) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetUser(u *User) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) SetUserID(id int) *UserNotificationSettingUpdateOne
    func (unsuo *UserNotificationSettingUpdateOne) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingUpdateOne
type UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) ClearOwnerUserID() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) ClearUpdatedAt() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetEnableNewPosts(v bool) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetEnablePaymentDue(v bool) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetEnablePaymentStart(v bool) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetName(v string) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetOwnerUserID(v int) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetSlug(v string) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetToken(v string) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) SetUpdatedAt(v time.Time) *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateEnableNewPosts() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateEnablePaymentDue() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateEnablePaymentStart() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateName() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateOwnerUserID() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateSlug() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateToken() *UserNotificationSettingUpsert
    func (u *UserNotificationSettingUpsert) UpdateUpdatedAt() *UserNotificationSettingUpsert
type UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) ClearOwnerUserID() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) ClearUpdatedAt() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) DoNothing() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) Exec(ctx context.Context) error
    func (u *UserNotificationSettingUpsertBulk) ExecX(ctx context.Context)
    func (u *UserNotificationSettingUpsertBulk) Ignore() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetEnableNewPosts(v bool) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetEnablePaymentDue(v bool) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetEnablePaymentStart(v bool) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetName(v string) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetOwnerUserID(v int) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetSlug(v string) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetToken(v string) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) SetUpdatedAt(v time.Time) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) Update(set func(*UserNotificationSettingUpsert)) *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateEnableNewPosts() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateEnablePaymentDue() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateEnablePaymentStart() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateName() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateNewValues() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateOwnerUserID() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateSlug() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateToken() *UserNotificationSettingUpsertBulk
    func (u *UserNotificationSettingUpsertBulk) UpdateUpdatedAt() *UserNotificationSettingUpsertBulk
type UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) ClearOwnerUserID() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) ClearUpdatedAt() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) DoNothing() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) Exec(ctx context.Context) error
    func (u *UserNotificationSettingUpsertOne) ExecX(ctx context.Context)
    func (u *UserNotificationSettingUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *UserNotificationSettingUpsertOne) IDX(ctx context.Context) int
    func (u *UserNotificationSettingUpsertOne) Ignore() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetEnableNewPosts(v bool) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetEnablePaymentDue(v bool) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetEnablePaymentStart(v bool) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetName(v string) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetOwnerUserID(v int) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetSlug(v string) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetToken(v string) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) SetUpdatedAt(v time.Time) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) Update(set func(*UserNotificationSettingUpsert)) *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateEnableNewPosts() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateEnablePaymentDue() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateEnablePaymentStart() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateName() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateNewValues() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateOwnerUserID() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateSlug() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateToken() *UserNotificationSettingUpsertOne
    func (u *UserNotificationSettingUpsertOne) UpdateUpdatedAt() *UserNotificationSettingUpsertOne
type UserNotificationSettings
type UserOrder
type UserOrderField
type UserPaginateOption
    func WithUserFilter(filter func(*UserQuery) (*UserQuery, error)) UserPaginateOption
    func WithUserOrder(order *UserOrder) UserPaginateOption
type UserQuery
    func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
    func (uq *UserQuery) All(ctx context.Context) ([]*User, error)
    func (uq *UserQuery) AllX(ctx context.Context) []*User
    func (uq *UserQuery) Clone() *UserQuery
    func (u *UserQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserQuery, error)
    func (uq *UserQuery) Count(ctx context.Context) (int, error)
    func (uq *UserQuery) CountX(ctx context.Context) int
    func (uq *UserQuery) Exist(ctx context.Context) (bool, error)
    func (uq *UserQuery) ExistX(ctx context.Context) bool
    func (uq *UserQuery) Filter() *UserFilter
    func (uq *UserQuery) First(ctx context.Context) (*User, error)
    func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error)
    func (uq *UserQuery) FirstIDX(ctx context.Context) int
    func (uq *UserQuery) FirstX(ctx context.Context) *User
    func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
    func (uq *UserQuery) IDs(ctx context.Context) (ids []int, err error)
    func (uq *UserQuery) IDsX(ctx context.Context) []int
    func (uq *UserQuery) Limit(limit int) *UserQuery
    func (uq *UserQuery) Offset(offset int) *UserQuery
    func (uq *UserQuery) Only(ctx context.Context) (*User, error)
    func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error)
    func (uq *UserQuery) OnlyIDX(ctx context.Context) int
    func (uq *UserQuery) OnlyX(ctx context.Context) *User
    func (uq *UserQuery) Order(o ...user.Order) *UserQuery
    func (u *UserQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...UserPaginateOption) (*UserConnection, error)
    func (uq *UserQuery) QueryAuth() *AuthQuery
    func (uq *UserQuery) QueryHpfcEventTickets() *HPFCEventTicketQuery
    func (uq *UserQuery) QueryHpmemberFollowing() *HPFollowQuery
    func (uq *UserQuery) QueryHpsortHistory() *HPSortHistoryQuery
    func (uq *UserQuery) QueryHpviewHistory() *HPViewHistoryQuery
    func (uq *UserQuery) QueryNotificationSettings() *UserNotificationSettingQuery
    func (uq *UserQuery) Select(fields ...string) *UserSelect
    func (uq *UserQuery) Unique(unique bool) *UserQuery
    func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery
    func (uq *UserQuery) WithAuth(opts ...func(*AuthQuery)) *UserQuery
    func (uq *UserQuery) WithHpfcEventTickets(opts ...func(*HPFCEventTicketQuery)) *UserQuery
    func (uq *UserQuery) WithHpmemberFollowing(opts ...func(*HPFollowQuery)) *UserQuery
    func (uq *UserQuery) WithHpsortHistory(opts ...func(*HPSortHistoryQuery)) *UserQuery
    func (uq *UserQuery) WithHpviewHistory(opts ...func(*HPViewHistoryQuery)) *UserQuery
    func (uq *UserQuery) WithNamedAuth(name string, opts ...func(*AuthQuery)) *UserQuery
    func (uq *UserQuery) WithNamedHpfcEventTickets(name string, opts ...func(*HPFCEventTicketQuery)) *UserQuery
    func (uq *UserQuery) WithNamedHpmemberFollowing(name string, opts ...func(*HPFollowQuery)) *UserQuery
    func (uq *UserQuery) WithNamedHpsortHistory(name string, opts ...func(*HPSortHistoryQuery)) *UserQuery
    func (uq *UserQuery) WithNamedHpviewHistory(name string, opts ...func(*HPViewHistoryQuery)) *UserQuery
    func (uq *UserQuery) WithNamedNotificationSettings(name string, opts ...func(*UserNotificationSettingQuery)) *UserQuery
    func (uq *UserQuery) WithNotificationSettings(opts ...func(*UserNotificationSettingQuery)) *UserQuery
type UserSelect
    func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
    func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)
    func (s *UserSelect) BoolX(ctx context.Context) bool
    func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)
    func (s *UserSelect) BoolsX(ctx context.Context) []bool
    func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)
    func (s *UserSelect) Float64X(ctx context.Context) float64
    func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)
    func (s *UserSelect) Float64sX(ctx context.Context) []float64
    func (s *UserSelect) Int(ctx context.Context) (_ int, err error)
    func (s *UserSelect) IntX(ctx context.Context) int
    func (s *UserSelect) Ints(ctx context.Context) ([]int, error)
    func (s *UserSelect) IntsX(ctx context.Context) []int
    func (us *UserSelect) Scan(ctx context.Context, v any) error
    func (s *UserSelect) ScanX(ctx context.Context, v any)
    func (s *UserSelect) String(ctx context.Context) (_ string, err error)
    func (s *UserSelect) StringX(ctx context.Context) string
    func (s *UserSelect) Strings(ctx context.Context) ([]string, error)
    func (s *UserSelect) StringsX(ctx context.Context) []string
type UserUpdate
    func (uu *UserUpdate) AddAuth(a ...*Auth) *UserUpdate
    func (uu *UserUpdate) AddAuthIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) AddHpfcEventTicketIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) AddHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdate
    func (uu *UserUpdate) AddHpmemberFollowing(h ...*HPFollow) *UserUpdate
    func (uu *UserUpdate) AddHpmemberFollowingIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) AddHpsortHistory(h ...*HPSortHistory) *UserUpdate
    func (uu *UserUpdate) AddHpsortHistoryIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) AddHpviewHistory(h ...*HPViewHistory) *UserUpdate
    func (uu *UserUpdate) AddHpviewHistoryIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) AddNotificationSettingIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) AddNotificationSettings(u ...*UserNotificationSetting) *UserUpdate
    func (uu *UserUpdate) ClearAuth() *UserUpdate
    func (uu *UserUpdate) ClearHpfcEventTickets() *UserUpdate
    func (uu *UserUpdate) ClearHpmemberFollowing() *UserUpdate
    func (uu *UserUpdate) ClearHpsortHistory() *UserUpdate
    func (uu *UserUpdate) ClearHpviewHistory() *UserUpdate
    func (uu *UserUpdate) ClearNotificationSettings() *UserUpdate
    func (uu *UserUpdate) ClearUpdatedAt() *UserUpdate
    func (uu *UserUpdate) Exec(ctx context.Context) error
    func (uu *UserUpdate) ExecX(ctx context.Context)
    func (uu *UserUpdate) Mutation() *UserMutation
    func (uu *UserUpdate) RemoveAuth(a ...*Auth) *UserUpdate
    func (uu *UserUpdate) RemoveAuthIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) RemoveHpfcEventTicketIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdate
    func (uu *UserUpdate) RemoveHpmemberFollowing(h ...*HPFollow) *UserUpdate
    func (uu *UserUpdate) RemoveHpmemberFollowingIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) RemoveHpsortHistory(h ...*HPSortHistory) *UserUpdate
    func (uu *UserUpdate) RemoveHpsortHistoryIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) RemoveHpviewHistory(h ...*HPViewHistory) *UserUpdate
    func (uu *UserUpdate) RemoveHpviewHistoryIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) RemoveNotificationSettingIDs(ids ...int) *UserUpdate
    func (uu *UserUpdate) RemoveNotificationSettings(u ...*UserNotificationSetting) *UserUpdate
    func (uu *UserUpdate) Save(ctx context.Context) (int, error)
    func (uu *UserUpdate) SaveX(ctx context.Context) int
    func (uu *UserUpdate) SetAccessToken(s string) *UserUpdate
    func (uu *UserUpdate) SetNillableUpdatedAt(t *time.Time) *UserUpdate
    func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
    func (uu *UserUpdate) SetUsername(s string) *UserUpdate
    func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
type UserUpdateOne
    func (uuo *UserUpdateOne) AddAuth(a ...*Auth) *UserUpdateOne
    func (uuo *UserUpdateOne) AddAuthIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpfcEventTicketIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpmemberFollowing(h ...*HPFollow) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpmemberFollowingIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpsortHistory(h ...*HPSortHistory) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpsortHistoryIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpviewHistory(h ...*HPViewHistory) *UserUpdateOne
    func (uuo *UserUpdateOne) AddHpviewHistoryIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) AddNotificationSettingIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) AddNotificationSettings(u ...*UserNotificationSetting) *UserUpdateOne
    func (uuo *UserUpdateOne) ClearAuth() *UserUpdateOne
    func (uuo *UserUpdateOne) ClearHpfcEventTickets() *UserUpdateOne
    func (uuo *UserUpdateOne) ClearHpmemberFollowing() *UserUpdateOne
    func (uuo *UserUpdateOne) ClearHpsortHistory() *UserUpdateOne
    func (uuo *UserUpdateOne) ClearHpviewHistory() *UserUpdateOne
    func (uuo *UserUpdateOne) ClearNotificationSettings() *UserUpdateOne
    func (uuo *UserUpdateOne) ClearUpdatedAt() *UserUpdateOne
    func (uuo *UserUpdateOne) Exec(ctx context.Context) error
    func (uuo *UserUpdateOne) ExecX(ctx context.Context)
    func (uuo *UserUpdateOne) Mutation() *UserMutation
    func (uuo *UserUpdateOne) RemoveAuth(a ...*Auth) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveAuthIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpfcEventTicketIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpmemberFollowing(h ...*HPFollow) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpmemberFollowingIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpsortHistory(h ...*HPSortHistory) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpsortHistoryIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpviewHistory(h ...*HPViewHistory) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveHpviewHistoryIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveNotificationSettingIDs(ids ...int) *UserUpdateOne
    func (uuo *UserUpdateOne) RemoveNotificationSettings(u ...*UserNotificationSetting) *UserUpdateOne
    func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
    func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
    func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
    func (uuo *UserUpdateOne) SetAccessToken(s string) *UserUpdateOne
    func (uuo *UserUpdateOne) SetNillableUpdatedAt(t *time.Time) *UserUpdateOne
    func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
    func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne
    func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
type UserUpsert
    func (u *UserUpsert) ClearUpdatedAt() *UserUpsert
    func (u *UserUpsert) SetAccessToken(v string) *UserUpsert
    func (u *UserUpsert) SetUpdatedAt(v time.Time) *UserUpsert
    func (u *UserUpsert) SetUsername(v string) *UserUpsert
    func (u *UserUpsert) UpdateAccessToken() *UserUpsert
    func (u *UserUpsert) UpdateUpdatedAt() *UserUpsert
    func (u *UserUpsert) UpdateUsername() *UserUpsert
type UserUpsertBulk
    func (u *UserUpsertBulk) ClearUpdatedAt() *UserUpsertBulk
    func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk
    func (u *UserUpsertBulk) Exec(ctx context.Context) error
    func (u *UserUpsertBulk) ExecX(ctx context.Context)
    func (u *UserUpsertBulk) Ignore() *UserUpsertBulk
    func (u *UserUpsertBulk) SetAccessToken(v string) *UserUpsertBulk
    func (u *UserUpsertBulk) SetUpdatedAt(v time.Time) *UserUpsertBulk
    func (u *UserUpsertBulk) SetUsername(v string) *UserUpsertBulk
    func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk
    func (u *UserUpsertBulk) UpdateAccessToken() *UserUpsertBulk
    func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk
    func (u *UserUpsertBulk) UpdateUpdatedAt() *UserUpsertBulk
    func (u *UserUpsertBulk) UpdateUsername() *UserUpsertBulk
type UserUpsertOne
    func (u *UserUpsertOne) ClearUpdatedAt() *UserUpsertOne
    func (u *UserUpsertOne) DoNothing() *UserUpsertOne
    func (u *UserUpsertOne) Exec(ctx context.Context) error
    func (u *UserUpsertOne) ExecX(ctx context.Context)
    func (u *UserUpsertOne) ID(ctx context.Context) (id int, err error)
    func (u *UserUpsertOne) IDX(ctx context.Context) int
    func (u *UserUpsertOne) Ignore() *UserUpsertOne
    func (u *UserUpsertOne) SetAccessToken(v string) *UserUpsertOne
    func (u *UserUpsertOne) SetUpdatedAt(v time.Time) *UserUpsertOne
    func (u *UserUpsertOne) SetUsername(v string) *UserUpsertOne
    func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne
    func (u *UserUpsertOne) UpdateAccessToken() *UserUpsertOne
    func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne
    func (u *UserUpsertOne) UpdateUpdatedAt() *UserUpsertOne
    func (u *UserUpsertOne) UpdateUsername() *UserUpsertOne
type Users
type ValidationError
    func (e *ValidationError) Error() string
    func (e *ValidationError) Unwrap() error
type Value

Package files

auth.go auth_create.go auth_delete.go auth_query.go auth_update.go client.go ent.go entql.go gql_collection.go gql_edge.go gql_node.go gql_pagination.go gql_transaction.go hpameblopost.go hpameblopost_create.go hpameblopost_delete.go hpameblopost_query.go hpameblopost_update.go hpartist.go hpartist_create.go hpartist_delete.go hpartist_query.go hpartist_update.go hpasset.go hpasset_create.go hpasset_delete.go hpasset_query.go hpasset_update.go hpblob.go hpblob_create.go hpblob_delete.go hpblob_query.go hpblob_update.go hpelineupmallitem.go hpelineupmallitem_create.go hpelineupmallitem_delete.go hpelineupmallitem_query.go hpelineupmallitem_update.go hpevent.go hpevent_create.go hpevent_delete.go hpevent_query.go hpevent_update.go hpfceventticket.go hpfceventticket_create.go hpfceventticket_delete.go hpfceventticket_query.go hpfceventticket_update.go hpfeeditem.go hpfeeditem_create.go hpfeeditem_delete.go hpfeeditem_query.go hpfeeditem_update.go hpfollow.go hpfollow_create.go hpfollow_delete.go hpfollow_query.go hpfollow_update.go hpigpost.go hpigpost_create.go hpigpost_delete.go hpigpost_query.go hpigpost_update.go hpmember.go hpmember_create.go hpmember_delete.go hpmember_query.go hpmember_update.go hpsorthistory.go hpsorthistory_create.go hpsorthistory_delete.go hpsorthistory_query.go hpsorthistory_update.go hpviewhistory.go hpviewhistory_create.go hpviewhistory_delete.go hpviewhistory_query.go hpviewhistory_update.go mutation.go runtime.go testent.go testent_create.go testent_delete.go testent_query.go testent_update.go tx.go user.go user_create.go user_delete.go user_query.go user_update.go usernotificationlog.go usernotificationlog_create.go usernotificationlog_delete.go usernotificationlog_query.go usernotificationlog_update.go usernotificationsetting.go usernotificationsetting_create.go usernotificationsetting_delete.go usernotificationsetting_query.go usernotificationsetting_update.go

Constants

const (
    // Operation types.
    OpCreate    = ent.OpCreate
    OpDelete    = ent.OpDelete
    OpDeleteOne = ent.OpDeleteOne
    OpUpdate    = ent.OpUpdate
    OpUpdateOne = ent.OpUpdateOne

    // Node types.
    TypeAuth                    = "Auth"
    TypeHPAmebloPost            = "HPAmebloPost"
    TypeHPArtist                = "HPArtist"
    TypeHPAsset                 = "HPAsset"
    TypeHPBlob                  = "HPBlob"
    TypeHPElineupMallItem       = "HPElineupMallItem"
    TypeHPEvent                 = "HPEvent"
    TypeHPFCEventTicket         = "HPFCEventTicket"
    TypeHPFeedItem              = "HPFeedItem"
    TypeHPFollow                = "HPFollow"
    TypeHPIgPost                = "HPIgPost"
    TypeHPMember                = "HPMember"
    TypeHPSortHistory           = "HPSortHistory"
    TypeHPViewHistory           = "HPViewHistory"
    TypeTestEnt                 = "TestEnt"
    TypeUser                    = "User"
    TypeUserNotificationLog     = "UserNotificationLog"
    TypeUserNotificationSetting = "UserNotificationSetting"
)

Variables

DefaultAuthOrder is the default ordering of Auth.

var DefaultAuthOrder = &AuthOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &AuthOrderField{
        field: auth.FieldID,
        toCursor: func(a *Auth) Cursor {
            return Cursor{ID: a.ID}
        },
    },
}

DefaultHPAmebloPostOrder is the default ordering of HPAmebloPost.

var DefaultHPAmebloPostOrder = &HPAmebloPostOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPAmebloPostOrderField{
        field: hpameblopost.FieldID,
        toCursor: func(hap *HPAmebloPost) Cursor {
            return Cursor{ID: hap.ID}
        },
    },
}

DefaultHPArtistOrder is the default ordering of HPArtist.

var DefaultHPArtistOrder = &HPArtistOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPArtistOrderField{
        field: hpartist.FieldID,
        toCursor: func(ha *HPArtist) Cursor {
            return Cursor{ID: ha.ID}
        },
    },
}

DefaultHPBlobOrder is the default ordering of HPBlob.

var DefaultHPBlobOrder = &HPBlobOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPBlobOrderField{
        field: hpblob.FieldID,
        toCursor: func(hb *HPBlob) Cursor {
            return Cursor{ID: hb.ID}
        },
    },
}

DefaultHPElineupMallItemOrder is the default ordering of HPElineupMallItem.

var DefaultHPElineupMallItemOrder = &HPElineupMallItemOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPElineupMallItemOrderField{
        field: hpelineupmallitem.FieldID,
        toCursor: func(hemi *HPElineupMallItem) Cursor {
            return Cursor{ID: hemi.ID}
        },
    },
}

DefaultHPEventOrder is the default ordering of HPEvent.

var DefaultHPEventOrder = &HPEventOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPEventOrderField{
        field: hpevent.FieldID,
        toCursor: func(he *HPEvent) Cursor {
            return Cursor{ID: he.ID}
        },
    },
}

DefaultHPFCEventTicketOrder is the default ordering of HPFCEventTicket.

var DefaultHPFCEventTicketOrder = &HPFCEventTicketOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPFCEventTicketOrderField{
        field: hpfceventticket.FieldID,
        toCursor: func(het *HPFCEventTicket) Cursor {
            return Cursor{ID: het.ID}
        },
    },
}

DefaultHPFeedItemOrder is the default ordering of HPFeedItem.

var DefaultHPFeedItemOrder = &HPFeedItemOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPFeedItemOrderField{
        field: hpfeeditem.FieldID,
        toCursor: func(hfi *HPFeedItem) Cursor {
            return Cursor{ID: hfi.ID}
        },
    },
}

DefaultHPFollowOrder is the default ordering of HPFollow.

var DefaultHPFollowOrder = &HPFollowOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPFollowOrderField{
        field: hpfollow.FieldID,
        toCursor: func(hf *HPFollow) Cursor {
            return Cursor{ID: hf.ID}
        },
    },
}

DefaultHPIgPostOrder is the default ordering of HPIgPost.

var DefaultHPIgPostOrder = &HPIgPostOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPIgPostOrderField{
        field: hpigpost.FieldID,
        toCursor: func(hip *HPIgPost) Cursor {
            return Cursor{ID: hip.ID}
        },
    },
}

DefaultHPMemberOrder is the default ordering of HPMember.

var DefaultHPMemberOrder = &HPMemberOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPMemberOrderField{
        field: hpmember.FieldID,
        toCursor: func(hm *HPMember) Cursor {
            return Cursor{ID: hm.ID}
        },
    },
}

DefaultHPSortHistoryOrder is the default ordering of HPSortHistory.

var DefaultHPSortHistoryOrder = &HPSortHistoryOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPSortHistoryOrderField{
        field: hpsorthistory.FieldID,
        toCursor: func(hsh *HPSortHistory) Cursor {
            return Cursor{ID: hsh.ID}
        },
    },
}

DefaultHPViewHistoryOrder is the default ordering of HPViewHistory.

var DefaultHPViewHistoryOrder = &HPViewHistoryOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &HPViewHistoryOrderField{
        field: hpviewhistory.FieldID,
        toCursor: func(hvh *HPViewHistory) Cursor {
            return Cursor{ID: hvh.ID}
        },
    },
}

DefaultUserNotificationSettingOrder is the default ordering of UserNotificationSetting.

var DefaultUserNotificationSettingOrder = &UserNotificationSettingOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &UserNotificationSettingOrderField{
        field: usernotificationsetting.FieldID,
        toCursor: func(uns *UserNotificationSetting) Cursor {
            return Cursor{ID: uns.ID}
        },
    },
}

DefaultUserOrder is the default ordering of User.

var DefaultUserOrder = &UserOrder{
    Direction: entgql.OrderDirectionAsc,
    Field: &UserOrderField{
        field: user.FieldID,
        toCursor: func(u *User) Cursor {
            return Cursor{ID: u.ID}
        },
    },
}
var (
    // HPFeedItemOrderFieldPostAt orders HPFeedItem by post_at.
    HPFeedItemOrderFieldPostAt = &HPFeedItemOrderField{
        field: hpfeeditem.FieldPostAt,
        toCursor: func(hfi *HPFeedItem) Cursor {
            return Cursor{
                ID:    hfi.ID,
                Value: hfi.PostAt,
            }
        },
    }
)

func Asc

func Asc(fields ...string) func(*sql.Selector)

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) func(*sql.Selector)

Desc applies the given fields in DESC order.

func IsConstraintError

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

func OpenTxFromContext

func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error)

OpenTxFromContext open transactions from client stored in context.

type AggregateFunc

AggregateFunc applies an aggregation step on the group-by traversal/selector.

type AggregateFunc func(*sql.Selector) string

func As

func As(fn AggregateFunc, end string) AggregateFunc

As is a pseudo aggregation function for renaming another other functions with custom names. For example:

GroupBy(field1, field2).
Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")).
Scan(ctx, &v)

func Count

func Count() AggregateFunc

Count applies the "count" aggregation function on each group.

func Max

func Max(field string) AggregateFunc

Max applies the "max" aggregation function on the given field of each group.

func Mean

func Mean(field string) AggregateFunc

Mean applies the "mean" aggregation function on the given field of each group.

func Min

func Min(field string) AggregateFunc

Min applies the "min" aggregation function on the given field of each group.

func Sum

func Sum(field string) AggregateFunc

Sum applies the "sum" aggregation function on the given field of each group.

type Auth

Auth is the model entity for the Auth schema.

type Auth struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // oauth provider name
    ProviderName string `json:"provider_name,omitempty"`
    // user id that the provider uses
    ProviderUserID string `json:"provider_user_id,omitempty"`
    // access token
    AccessToken string `json:"-"`
    // refresh token
    RefreshToken string `json:"-"`
    // token expire
    ExpireAt time.Time `json:"expire_at,omitempty"`
    // oauth scope
    Scope []string `json:"scope,omitempty"`
    // owner user id
    OwnerUserID int `json:"owner_user_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the AuthQuery when eager-loading is set.
    Edges AuthEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*Auth) IsNode

func (n *Auth) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*Auth) QueryUser

func (a *Auth) QueryUser() *UserQuery

QueryUser queries the "user" edge of the Auth entity.

func (*Auth) String

func (a *Auth) String() string

String implements the fmt.Stringer.

func (*Auth) ToEdge

func (a *Auth) ToEdge(order *AuthOrder) *AuthEdge

ToEdge converts Auth into AuthEdge.

func (*Auth) Unwrap

func (a *Auth) Unwrap() *Auth

Unwrap unwraps the Auth entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Auth) Update

func (a *Auth) Update() *AuthUpdateOne

Update returns a builder for updating this Auth. Note that you need to call Auth.Unwrap() before calling this method if this Auth was returned from a transaction, and the transaction was committed or rolled back.

func (*Auth) Value

func (a *Auth) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Auth. This includes values selected through modifiers, order, etc.

type AuthClient

AuthClient is a client for the Auth schema.

type AuthClient struct {
    // contains filtered or unexported fields
}

func NewAuthClient

func NewAuthClient(c config) *AuthClient

NewAuthClient returns a client for the Auth from the given config.

func (*AuthClient) Create

func (c *AuthClient) Create() *AuthCreate

Create returns a builder for creating a Auth entity.

func (*AuthClient) CreateBulk

func (c *AuthClient) CreateBulk(builders ...*AuthCreate) *AuthCreateBulk

CreateBulk returns a builder for creating a bulk of Auth entities.

func (*AuthClient) Delete

func (c *AuthClient) Delete() *AuthDelete

Delete returns a delete builder for Auth.

func (*AuthClient) DeleteOne

func (c *AuthClient) DeleteOne(a *Auth) *AuthDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*AuthClient) DeleteOneID

func (c *AuthClient) DeleteOneID(id int) *AuthDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*AuthClient) Get

func (c *AuthClient) Get(ctx context.Context, id int) (*Auth, error)

Get returns a Auth entity by its id.

func (*AuthClient) GetX

func (c *AuthClient) GetX(ctx context.Context, id int) *Auth

GetX is like Get, but panics if an error occurs.

func (*AuthClient) Hooks

func (c *AuthClient) Hooks() []Hook

Hooks returns the client hooks.

func (*AuthClient) Intercept

func (c *AuthClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `auth.Intercept(f(g(h())))`.

func (*AuthClient) Interceptors

func (c *AuthClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*AuthClient) Query

func (c *AuthClient) Query() *AuthQuery

Query returns a query builder for Auth.

func (*AuthClient) QueryUser

func (c *AuthClient) QueryUser(a *Auth) *UserQuery

QueryUser queries the user edge of a Auth.

func (*AuthClient) Update

func (c *AuthClient) Update() *AuthUpdate

Update returns an update builder for Auth.

func (*AuthClient) UpdateOne

func (c *AuthClient) UpdateOne(a *Auth) *AuthUpdateOne

UpdateOne returns an update builder for the given entity.

func (*AuthClient) UpdateOneID

func (c *AuthClient) UpdateOneID(id int) *AuthUpdateOne

UpdateOneID returns an update builder for the given id.

func (*AuthClient) Use

func (c *AuthClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `auth.Hooks(f(g(h())))`.

type AuthConnection

AuthConnection is the connection containing edges to Auth.

type AuthConnection struct {
    Edges      []*AuthEdge `json:"edges"`
    PageInfo   PageInfo    `json:"pageInfo"`
    TotalCount int         `json:"totalCount"`
}

type AuthCreate

AuthCreate is the builder for creating a Auth entity.

type AuthCreate struct {
    // contains filtered or unexported fields
}

func (*AuthCreate) Exec

func (ac *AuthCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*AuthCreate) ExecX

func (ac *AuthCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AuthCreate) Mutation

func (ac *AuthCreate) Mutation() *AuthMutation

Mutation returns the AuthMutation object of the builder.

func (*AuthCreate) OnConflict

func (ac *AuthCreate) OnConflict(opts ...sql.ConflictOption) *AuthUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Auth.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.AuthUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*AuthCreate) OnConflictColumns

func (ac *AuthCreate) OnConflictColumns(columns ...string) *AuthUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Auth.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*AuthCreate) Save

func (ac *AuthCreate) Save(ctx context.Context) (*Auth, error)

Save creates the Auth in the database.

func (*AuthCreate) SaveX

func (ac *AuthCreate) SaveX(ctx context.Context) *Auth

SaveX calls Save and panics if Save returns an error.

func (*AuthCreate) SetAccessToken

func (ac *AuthCreate) SetAccessToken(s string) *AuthCreate

SetAccessToken sets the "access_token" field.

func (*AuthCreate) SetCreatedAt

func (ac *AuthCreate) SetCreatedAt(t time.Time) *AuthCreate

SetCreatedAt sets the "created_at" field.

func (*AuthCreate) SetExpireAt

func (ac *AuthCreate) SetExpireAt(t time.Time) *AuthCreate

SetExpireAt sets the "expire_at" field.

func (*AuthCreate) SetNillableCreatedAt

func (ac *AuthCreate) SetNillableCreatedAt(t *time.Time) *AuthCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*AuthCreate) SetNillableExpireAt

func (ac *AuthCreate) SetNillableExpireAt(t *time.Time) *AuthCreate

SetNillableExpireAt sets the "expire_at" field if the given value is not nil.

func (*AuthCreate) SetNillableOwnerUserID

func (ac *AuthCreate) SetNillableOwnerUserID(i *int) *AuthCreate

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*AuthCreate) SetNillableRefreshToken

func (ac *AuthCreate) SetNillableRefreshToken(s *string) *AuthCreate

SetNillableRefreshToken sets the "refresh_token" field if the given value is not nil.

func (*AuthCreate) SetNillableUpdatedAt

func (ac *AuthCreate) SetNillableUpdatedAt(t *time.Time) *AuthCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*AuthCreate) SetNillableUserID

func (ac *AuthCreate) SetNillableUserID(id *int) *AuthCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*AuthCreate) SetOwnerUserID

func (ac *AuthCreate) SetOwnerUserID(i int) *AuthCreate

SetOwnerUserID sets the "owner_user_id" field.

func (*AuthCreate) SetProviderName

func (ac *AuthCreate) SetProviderName(s string) *AuthCreate

SetProviderName sets the "provider_name" field.

func (*AuthCreate) SetProviderUserID

func (ac *AuthCreate) SetProviderUserID(s string) *AuthCreate

SetProviderUserID sets the "provider_user_id" field.

func (*AuthCreate) SetRefreshToken

func (ac *AuthCreate) SetRefreshToken(s string) *AuthCreate

SetRefreshToken sets the "refresh_token" field.

func (*AuthCreate) SetScope

func (ac *AuthCreate) SetScope(s []string) *AuthCreate

SetScope sets the "scope" field.

func (*AuthCreate) SetUpdatedAt

func (ac *AuthCreate) SetUpdatedAt(t time.Time) *AuthCreate

SetUpdatedAt sets the "updated_at" field.

func (*AuthCreate) SetUser

func (ac *AuthCreate) SetUser(u *User) *AuthCreate

SetUser sets the "user" edge to the User entity.

func (*AuthCreate) SetUserID

func (ac *AuthCreate) SetUserID(id int) *AuthCreate

SetUserID sets the "user" edge to the User entity by ID.

type AuthCreateBulk

AuthCreateBulk is the builder for creating many Auth entities in bulk.

type AuthCreateBulk struct {
    // contains filtered or unexported fields
}

func (*AuthCreateBulk) Exec

func (acb *AuthCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*AuthCreateBulk) ExecX

func (acb *AuthCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AuthCreateBulk) OnConflict

func (acb *AuthCreateBulk) OnConflict(opts ...sql.ConflictOption) *AuthUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Auth.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.AuthUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*AuthCreateBulk) OnConflictColumns

func (acb *AuthCreateBulk) OnConflictColumns(columns ...string) *AuthUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Auth.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*AuthCreateBulk) Save

func (acb *AuthCreateBulk) Save(ctx context.Context) ([]*Auth, error)

Save creates the Auth entities in the database.

func (*AuthCreateBulk) SaveX

func (acb *AuthCreateBulk) SaveX(ctx context.Context) []*Auth

SaveX is like Save, but panics if an error occurs.

type AuthDelete

AuthDelete is the builder for deleting a Auth entity.

type AuthDelete struct {
    // contains filtered or unexported fields
}

func (*AuthDelete) Exec

func (ad *AuthDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*AuthDelete) ExecX

func (ad *AuthDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*AuthDelete) Where

func (ad *AuthDelete) Where(ps ...predicate.Auth) *AuthDelete

Where appends a list predicates to the AuthDelete builder.

type AuthDeleteOne

AuthDeleteOne is the builder for deleting a single Auth entity.

type AuthDeleteOne struct {
    // contains filtered or unexported fields
}

func (*AuthDeleteOne) Exec

func (ado *AuthDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*AuthDeleteOne) ExecX

func (ado *AuthDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AuthDeleteOne) Where

func (ado *AuthDeleteOne) Where(ps ...predicate.Auth) *AuthDeleteOne

Where appends a list predicates to the AuthDelete builder.

type AuthEdge

AuthEdge is the edge representation of Auth.

type AuthEdge struct {
    Node   *Auth  `json:"node"`
    Cursor Cursor `json:"cursor"`
}

type AuthEdges

AuthEdges holds the relations/edges for other nodes in the graph.

type AuthEdges struct {
    // User holds the value of the user edge.
    User *User `json:"user,omitempty"`
    // contains filtered or unexported fields
}

func (AuthEdges) UserOrErr

func (e AuthEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type AuthFilter

AuthFilter provides a generic filtering capability at runtime for AuthQuery.

type AuthFilter struct {
    // contains filtered or unexported fields
}

func (*AuthFilter) Where

func (f *AuthFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*AuthFilter) WhereAccessToken

func (f *AuthFilter) WhereAccessToken(p entql.StringP)

WhereAccessToken applies the entql string predicate on the access_token field.

func (*AuthFilter) WhereCreatedAt

func (f *AuthFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*AuthFilter) WhereExpireAt

func (f *AuthFilter) WhereExpireAt(p entql.TimeP)

WhereExpireAt applies the entql time.Time predicate on the expire_at field.

func (*AuthFilter) WhereHasUser

func (f *AuthFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*AuthFilter) WhereHasUserWith

func (f *AuthFilter) WhereHasUserWith(preds ...predicate.User)

WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates).

func (*AuthFilter) WhereID

func (f *AuthFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*AuthFilter) WhereOwnerUserID

func (f *AuthFilter) WhereOwnerUserID(p entql.IntP)

WhereOwnerUserID applies the entql int predicate on the owner_user_id field.

func (*AuthFilter) WhereProviderName

func (f *AuthFilter) WhereProviderName(p entql.StringP)

WhereProviderName applies the entql string predicate on the provider_name field.

func (*AuthFilter) WhereProviderUserID

func (f *AuthFilter) WhereProviderUserID(p entql.StringP)

WhereProviderUserID applies the entql string predicate on the provider_user_id field.

func (*AuthFilter) WhereRefreshToken

func (f *AuthFilter) WhereRefreshToken(p entql.StringP)

WhereRefreshToken applies the entql string predicate on the refresh_token field.

func (*AuthFilter) WhereScope

func (f *AuthFilter) WhereScope(p entql.BytesP)

WhereScope applies the entql json.RawMessage predicate on the scope field.

func (*AuthFilter) WhereUpdatedAt

func (f *AuthFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type AuthGroupBy

AuthGroupBy is the group-by builder for Auth entities.

type AuthGroupBy struct {
    // contains filtered or unexported fields
}

func (*AuthGroupBy) Aggregate

func (agb *AuthGroupBy) Aggregate(fns ...AggregateFunc) *AuthGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*AuthGroupBy) Bool

func (s *AuthGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) BoolX

func (s *AuthGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*AuthGroupBy) Bools

func (s *AuthGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) BoolsX

func (s *AuthGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*AuthGroupBy) Float64

func (s *AuthGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) Float64X

func (s *AuthGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*AuthGroupBy) Float64s

func (s *AuthGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) Float64sX

func (s *AuthGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*AuthGroupBy) Int

func (s *AuthGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) IntX

func (s *AuthGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*AuthGroupBy) Ints

func (s *AuthGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) IntsX

func (s *AuthGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*AuthGroupBy) Scan

func (agb *AuthGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*AuthGroupBy) ScanX

func (s *AuthGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*AuthGroupBy) String

func (s *AuthGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) StringX

func (s *AuthGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*AuthGroupBy) Strings

func (s *AuthGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*AuthGroupBy) StringsX

func (s *AuthGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type AuthMutation

AuthMutation represents an operation that mutates the Auth nodes in the graph.

type AuthMutation struct {
    // contains filtered or unexported fields
}

func (*AuthMutation) AccessToken

func (m *AuthMutation) AccessToken() (r string, exists bool)

AccessToken returns the value of the "access_token" field in the mutation.

func (*AuthMutation) AddField

func (m *AuthMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*AuthMutation) AddedEdges

func (m *AuthMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*AuthMutation) AddedField

func (m *AuthMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*AuthMutation) AddedFields

func (m *AuthMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*AuthMutation) AddedIDs

func (m *AuthMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*AuthMutation) AppendScope

func (m *AuthMutation) AppendScope(s []string)

AppendScope adds s to the "scope" field.

func (*AuthMutation) AppendedScope

func (m *AuthMutation) AppendedScope() ([]string, bool)

AppendedScope returns the list of values that were appended to the "scope" field in this mutation.

func (*AuthMutation) ClearCreatedAt

func (m *AuthMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*AuthMutation) ClearEdge

func (m *AuthMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*AuthMutation) ClearExpireAt

func (m *AuthMutation) ClearExpireAt()

ClearExpireAt clears the value of the "expire_at" field.

func (*AuthMutation) ClearField

func (m *AuthMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*AuthMutation) ClearOwnerUserID

func (m *AuthMutation) ClearOwnerUserID()

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*AuthMutation) ClearRefreshToken

func (m *AuthMutation) ClearRefreshToken()

ClearRefreshToken clears the value of the "refresh_token" field.

func (*AuthMutation) ClearScope

func (m *AuthMutation) ClearScope()

ClearScope clears the value of the "scope" field.

func (*AuthMutation) ClearUpdatedAt

func (m *AuthMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*AuthMutation) ClearUser

func (m *AuthMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*AuthMutation) ClearedEdges

func (m *AuthMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*AuthMutation) ClearedFields

func (m *AuthMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (AuthMutation) Client

func (m AuthMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*AuthMutation) CreatedAt

func (m *AuthMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*AuthMutation) CreatedAtCleared

func (m *AuthMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*AuthMutation) EdgeCleared

func (m *AuthMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*AuthMutation) ExpireAt

func (m *AuthMutation) ExpireAt() (r time.Time, exists bool)

ExpireAt returns the value of the "expire_at" field in the mutation.

func (*AuthMutation) ExpireAtCleared

func (m *AuthMutation) ExpireAtCleared() bool

ExpireAtCleared returns if the "expire_at" field was cleared in this mutation.

func (*AuthMutation) Field

func (m *AuthMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*AuthMutation) FieldCleared

func (m *AuthMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*AuthMutation) Fields

func (m *AuthMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*AuthMutation) Filter

func (m *AuthMutation) Filter() *AuthFilter

Filter returns an entql.Where implementation to apply filters on the AuthMutation builder.

func (*AuthMutation) ID

func (m *AuthMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*AuthMutation) IDs

func (m *AuthMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*AuthMutation) OldAccessToken

func (m *AuthMutation) OldAccessToken(ctx context.Context) (v string, err error)

OldAccessToken returns the old "access_token" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldCreatedAt

func (m *AuthMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldExpireAt

func (m *AuthMutation) OldExpireAt(ctx context.Context) (v time.Time, err error)

OldExpireAt returns the old "expire_at" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldField

func (m *AuthMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*AuthMutation) OldOwnerUserID

func (m *AuthMutation) OldOwnerUserID(ctx context.Context) (v int, err error)

OldOwnerUserID returns the old "owner_user_id" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldProviderName

func (m *AuthMutation) OldProviderName(ctx context.Context) (v string, err error)

OldProviderName returns the old "provider_name" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldProviderUserID

func (m *AuthMutation) OldProviderUserID(ctx context.Context) (v string, err error)

OldProviderUserID returns the old "provider_user_id" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldRefreshToken

func (m *AuthMutation) OldRefreshToken(ctx context.Context) (v string, err error)

OldRefreshToken returns the old "refresh_token" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldScope

func (m *AuthMutation) OldScope(ctx context.Context) (v []string, err error)

OldScope returns the old "scope" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) OldUpdatedAt

func (m *AuthMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Auth entity. If the Auth object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AuthMutation) Op

func (m *AuthMutation) Op() Op

Op returns the operation name.

func (*AuthMutation) OwnerUserID

func (m *AuthMutation) OwnerUserID() (r int, exists bool)

OwnerUserID returns the value of the "owner_user_id" field in the mutation.

func (*AuthMutation) OwnerUserIDCleared

func (m *AuthMutation) OwnerUserIDCleared() bool

OwnerUserIDCleared returns if the "owner_user_id" field was cleared in this mutation.

func (*AuthMutation) ProviderName

func (m *AuthMutation) ProviderName() (r string, exists bool)

ProviderName returns the value of the "provider_name" field in the mutation.

func (*AuthMutation) ProviderUserID

func (m *AuthMutation) ProviderUserID() (r string, exists bool)

ProviderUserID returns the value of the "provider_user_id" field in the mutation.

func (*AuthMutation) RefreshToken

func (m *AuthMutation) RefreshToken() (r string, exists bool)

RefreshToken returns the value of the "refresh_token" field in the mutation.

func (*AuthMutation) RefreshTokenCleared

func (m *AuthMutation) RefreshTokenCleared() bool

RefreshTokenCleared returns if the "refresh_token" field was cleared in this mutation.

func (*AuthMutation) RemovedEdges

func (m *AuthMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*AuthMutation) RemovedIDs

func (m *AuthMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*AuthMutation) ResetAccessToken

func (m *AuthMutation) ResetAccessToken()

ResetAccessToken resets all changes to the "access_token" field.

func (*AuthMutation) ResetCreatedAt

func (m *AuthMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*AuthMutation) ResetEdge

func (m *AuthMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*AuthMutation) ResetExpireAt

func (m *AuthMutation) ResetExpireAt()

ResetExpireAt resets all changes to the "expire_at" field.

func (*AuthMutation) ResetField

func (m *AuthMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*AuthMutation) ResetOwnerUserID

func (m *AuthMutation) ResetOwnerUserID()

ResetOwnerUserID resets all changes to the "owner_user_id" field.

func (*AuthMutation) ResetProviderName

func (m *AuthMutation) ResetProviderName()

ResetProviderName resets all changes to the "provider_name" field.

func (*AuthMutation) ResetProviderUserID

func (m *AuthMutation) ResetProviderUserID()

ResetProviderUserID resets all changes to the "provider_user_id" field.

func (*AuthMutation) ResetRefreshToken

func (m *AuthMutation) ResetRefreshToken()

ResetRefreshToken resets all changes to the "refresh_token" field.

func (*AuthMutation) ResetScope

func (m *AuthMutation) ResetScope()

ResetScope resets all changes to the "scope" field.

func (*AuthMutation) ResetUpdatedAt

func (m *AuthMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*AuthMutation) ResetUser

func (m *AuthMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*AuthMutation) Scope

func (m *AuthMutation) Scope() (r []string, exists bool)

Scope returns the value of the "scope" field in the mutation.

func (*AuthMutation) ScopeCleared

func (m *AuthMutation) ScopeCleared() bool

ScopeCleared returns if the "scope" field was cleared in this mutation.

func (*AuthMutation) SetAccessToken

func (m *AuthMutation) SetAccessToken(s string)

SetAccessToken sets the "access_token" field.

func (*AuthMutation) SetCreatedAt

func (m *AuthMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*AuthMutation) SetExpireAt

func (m *AuthMutation) SetExpireAt(t time.Time)

SetExpireAt sets the "expire_at" field.

func (*AuthMutation) SetField

func (m *AuthMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*AuthMutation) SetOp

func (m *AuthMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*AuthMutation) SetOwnerUserID

func (m *AuthMutation) SetOwnerUserID(i int)

SetOwnerUserID sets the "owner_user_id" field.

func (*AuthMutation) SetProviderName

func (m *AuthMutation) SetProviderName(s string)

SetProviderName sets the "provider_name" field.

func (*AuthMutation) SetProviderUserID

func (m *AuthMutation) SetProviderUserID(s string)

SetProviderUserID sets the "provider_user_id" field.

func (*AuthMutation) SetRefreshToken

func (m *AuthMutation) SetRefreshToken(s string)

SetRefreshToken sets the "refresh_token" field.

func (*AuthMutation) SetScope

func (m *AuthMutation) SetScope(s []string)

SetScope sets the "scope" field.

func (*AuthMutation) SetUpdatedAt

func (m *AuthMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*AuthMutation) SetUserID

func (m *AuthMutation) SetUserID(id int)

SetUserID sets the "user" edge to the User entity by id.

func (AuthMutation) Tx

func (m AuthMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*AuthMutation) Type

func (m *AuthMutation) Type() string

Type returns the node type of this mutation (Auth).

func (*AuthMutation) UpdatedAt

func (m *AuthMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*AuthMutation) UpdatedAtCleared

func (m *AuthMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*AuthMutation) UserCleared

func (m *AuthMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*AuthMutation) UserID

func (m *AuthMutation) UserID() (id int, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*AuthMutation) UserIDs

func (m *AuthMutation) UserIDs() (ids []int)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*AuthMutation) Where

func (m *AuthMutation) Where(ps ...predicate.Auth)

Where appends a list predicates to the AuthMutation builder.

func (*AuthMutation) WhereP

func (m *AuthMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the AuthMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type AuthOrder

AuthOrder defines the ordering of Auth.

type AuthOrder struct {
    Direction OrderDirection  `json:"direction"`
    Field     *AuthOrderField `json:"field"`
}

type AuthOrderField

AuthOrderField defines the ordering field of Auth.

type AuthOrderField struct {
    // contains filtered or unexported fields
}

type AuthPaginateOption

AuthPaginateOption enables pagination customization.

type AuthPaginateOption func(*authPager) error

func WithAuthFilter

func WithAuthFilter(filter func(*AuthQuery) (*AuthQuery, error)) AuthPaginateOption

WithAuthFilter configures pagination filter.

func WithAuthOrder

func WithAuthOrder(order *AuthOrder) AuthPaginateOption

WithAuthOrder configures pagination ordering.

type AuthQuery

AuthQuery is the builder for querying Auth entities.

type AuthQuery struct {
    // contains filtered or unexported fields
}

func (*AuthQuery) Aggregate

func (aq *AuthQuery) Aggregate(fns ...AggregateFunc) *AuthSelect

Aggregate returns a AuthSelect configured with the given aggregations.

func (*AuthQuery) All

func (aq *AuthQuery) All(ctx context.Context) ([]*Auth, error)

All executes the query and returns a list of Auths.

func (*AuthQuery) AllX

func (aq *AuthQuery) AllX(ctx context.Context) []*Auth

AllX is like All, but panics if an error occurs.

func (*AuthQuery) Clone

func (aq *AuthQuery) Clone() *AuthQuery

Clone returns a duplicate of the AuthQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*AuthQuery) CollectFields

func (a *AuthQuery) CollectFields(ctx context.Context, satisfies ...string) (*AuthQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*AuthQuery) Count

func (aq *AuthQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*AuthQuery) CountX

func (aq *AuthQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*AuthQuery) Exist

func (aq *AuthQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*AuthQuery) ExistX

func (aq *AuthQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*AuthQuery) Filter

func (aq *AuthQuery) Filter() *AuthFilter

Filter returns a Filter implementation to apply filters on the AuthQuery builder.

func (*AuthQuery) First

func (aq *AuthQuery) First(ctx context.Context) (*Auth, error)

First returns the first Auth entity from the query. Returns a *NotFoundError when no Auth was found.

func (*AuthQuery) FirstID

func (aq *AuthQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Auth ID from the query. Returns a *NotFoundError when no Auth ID was found.

func (*AuthQuery) FirstIDX

func (aq *AuthQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*AuthQuery) FirstX

func (aq *AuthQuery) FirstX(ctx context.Context) *Auth

FirstX is like First, but panics if an error occurs.

func (*AuthQuery) GroupBy

func (aq *AuthQuery) GroupBy(field string, fields ...string) *AuthGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Auth.Query().
	GroupBy(auth.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*AuthQuery) IDs

func (aq *AuthQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Auth IDs.

func (*AuthQuery) IDsX

func (aq *AuthQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*AuthQuery) Limit

func (aq *AuthQuery) Limit(limit int) *AuthQuery

Limit the number of records to be returned by this query.

func (*AuthQuery) Offset

func (aq *AuthQuery) Offset(offset int) *AuthQuery

Offset to start from.

func (*AuthQuery) Only

func (aq *AuthQuery) Only(ctx context.Context) (*Auth, error)

Only returns a single Auth entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Auth entity is found. Returns a *NotFoundError when no Auth entities are found.

func (*AuthQuery) OnlyID

func (aq *AuthQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Auth ID in the query. Returns a *NotSingularError when more than one Auth ID is found. Returns a *NotFoundError when no entities are found.

func (*AuthQuery) OnlyIDX

func (aq *AuthQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*AuthQuery) OnlyX

func (aq *AuthQuery) OnlyX(ctx context.Context) *Auth

OnlyX is like Only, but panics if an error occurs.

func (*AuthQuery) Order

func (aq *AuthQuery) Order(o ...auth.Order) *AuthQuery

Order specifies how the records should be ordered.

func (*AuthQuery) Paginate

func (a *AuthQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...AuthPaginateOption,
) (*AuthConnection, error)

Paginate executes the query and returns a relay based cursor connection to Auth.

func (*AuthQuery) QueryUser

func (aq *AuthQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*AuthQuery) Select

func (aq *AuthQuery) Select(fields ...string) *AuthSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Auth.Query().
	Select(auth.FieldCreatedAt).
	Scan(ctx, &v)

func (*AuthQuery) Unique

func (aq *AuthQuery) Unique(unique bool) *AuthQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*AuthQuery) Where

func (aq *AuthQuery) Where(ps ...predicate.Auth) *AuthQuery

Where adds a new predicate for the AuthQuery builder.

func (*AuthQuery) WithUser

func (aq *AuthQuery) WithUser(opts ...func(*UserQuery)) *AuthQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type AuthSelect

AuthSelect is the builder for selecting fields of Auth entities.

type AuthSelect struct {
    *AuthQuery
    // contains filtered or unexported fields
}

func (*AuthSelect) Aggregate

func (as *AuthSelect) Aggregate(fns ...AggregateFunc) *AuthSelect

Aggregate adds the given aggregation functions to the selector query.

func (*AuthSelect) Bool

func (s *AuthSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*AuthSelect) BoolX

func (s *AuthSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*AuthSelect) Bools

func (s *AuthSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*AuthSelect) BoolsX

func (s *AuthSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*AuthSelect) Float64

func (s *AuthSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*AuthSelect) Float64X

func (s *AuthSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*AuthSelect) Float64s

func (s *AuthSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*AuthSelect) Float64sX

func (s *AuthSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*AuthSelect) Int

func (s *AuthSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*AuthSelect) IntX

func (s *AuthSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*AuthSelect) Ints

func (s *AuthSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*AuthSelect) IntsX

func (s *AuthSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*AuthSelect) Scan

func (as *AuthSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*AuthSelect) ScanX

func (s *AuthSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*AuthSelect) String

func (s *AuthSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*AuthSelect) StringX

func (s *AuthSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*AuthSelect) Strings

func (s *AuthSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*AuthSelect) StringsX

func (s *AuthSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type AuthUpdate

AuthUpdate is the builder for updating Auth entities.

type AuthUpdate struct {
    // contains filtered or unexported fields
}

func (*AuthUpdate) AppendScope

func (au *AuthUpdate) AppendScope(s []string) *AuthUpdate

AppendScope appends s to the "scope" field.

func (*AuthUpdate) ClearExpireAt

func (au *AuthUpdate) ClearExpireAt() *AuthUpdate

ClearExpireAt clears the value of the "expire_at" field.

func (*AuthUpdate) ClearOwnerUserID

func (au *AuthUpdate) ClearOwnerUserID() *AuthUpdate

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*AuthUpdate) ClearRefreshToken

func (au *AuthUpdate) ClearRefreshToken() *AuthUpdate

ClearRefreshToken clears the value of the "refresh_token" field.

func (*AuthUpdate) ClearScope

func (au *AuthUpdate) ClearScope() *AuthUpdate

ClearScope clears the value of the "scope" field.

func (*AuthUpdate) ClearUpdatedAt

func (au *AuthUpdate) ClearUpdatedAt() *AuthUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*AuthUpdate) ClearUser

func (au *AuthUpdate) ClearUser() *AuthUpdate

ClearUser clears the "user" edge to the User entity.

func (*AuthUpdate) Exec

func (au *AuthUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*AuthUpdate) ExecX

func (au *AuthUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AuthUpdate) Mutation

func (au *AuthUpdate) Mutation() *AuthMutation

Mutation returns the AuthMutation object of the builder.

func (*AuthUpdate) Save

func (au *AuthUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*AuthUpdate) SaveX

func (au *AuthUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*AuthUpdate) SetAccessToken

func (au *AuthUpdate) SetAccessToken(s string) *AuthUpdate

SetAccessToken sets the "access_token" field.

func (*AuthUpdate) SetExpireAt

func (au *AuthUpdate) SetExpireAt(t time.Time) *AuthUpdate

SetExpireAt sets the "expire_at" field.

func (*AuthUpdate) SetNillableExpireAt

func (au *AuthUpdate) SetNillableExpireAt(t *time.Time) *AuthUpdate

SetNillableExpireAt sets the "expire_at" field if the given value is not nil.

func (*AuthUpdate) SetNillableOwnerUserID

func (au *AuthUpdate) SetNillableOwnerUserID(i *int) *AuthUpdate

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*AuthUpdate) SetNillableRefreshToken

func (au *AuthUpdate) SetNillableRefreshToken(s *string) *AuthUpdate

SetNillableRefreshToken sets the "refresh_token" field if the given value is not nil.

func (*AuthUpdate) SetNillableUpdatedAt

func (au *AuthUpdate) SetNillableUpdatedAt(t *time.Time) *AuthUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*AuthUpdate) SetNillableUserID

func (au *AuthUpdate) SetNillableUserID(id *int) *AuthUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*AuthUpdate) SetOwnerUserID

func (au *AuthUpdate) SetOwnerUserID(i int) *AuthUpdate

SetOwnerUserID sets the "owner_user_id" field.

func (*AuthUpdate) SetProviderName

func (au *AuthUpdate) SetProviderName(s string) *AuthUpdate

SetProviderName sets the "provider_name" field.

func (*AuthUpdate) SetProviderUserID

func (au *AuthUpdate) SetProviderUserID(s string) *AuthUpdate

SetProviderUserID sets the "provider_user_id" field.

func (*AuthUpdate) SetRefreshToken

func (au *AuthUpdate) SetRefreshToken(s string) *AuthUpdate

SetRefreshToken sets the "refresh_token" field.

func (*AuthUpdate) SetScope

func (au *AuthUpdate) SetScope(s []string) *AuthUpdate

SetScope sets the "scope" field.

func (*AuthUpdate) SetUpdatedAt

func (au *AuthUpdate) SetUpdatedAt(t time.Time) *AuthUpdate

SetUpdatedAt sets the "updated_at" field.

func (*AuthUpdate) SetUser

func (au *AuthUpdate) SetUser(u *User) *AuthUpdate

SetUser sets the "user" edge to the User entity.

func (*AuthUpdate) SetUserID

func (au *AuthUpdate) SetUserID(id int) *AuthUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*AuthUpdate) Where

func (au *AuthUpdate) Where(ps ...predicate.Auth) *AuthUpdate

Where appends a list predicates to the AuthUpdate builder.

type AuthUpdateOne

AuthUpdateOne is the builder for updating a single Auth entity.

type AuthUpdateOne struct {
    // contains filtered or unexported fields
}

func (*AuthUpdateOne) AppendScope

func (auo *AuthUpdateOne) AppendScope(s []string) *AuthUpdateOne

AppendScope appends s to the "scope" field.

func (*AuthUpdateOne) ClearExpireAt

func (auo *AuthUpdateOne) ClearExpireAt() *AuthUpdateOne

ClearExpireAt clears the value of the "expire_at" field.

func (*AuthUpdateOne) ClearOwnerUserID

func (auo *AuthUpdateOne) ClearOwnerUserID() *AuthUpdateOne

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*AuthUpdateOne) ClearRefreshToken

func (auo *AuthUpdateOne) ClearRefreshToken() *AuthUpdateOne

ClearRefreshToken clears the value of the "refresh_token" field.

func (*AuthUpdateOne) ClearScope

func (auo *AuthUpdateOne) ClearScope() *AuthUpdateOne

ClearScope clears the value of the "scope" field.

func (*AuthUpdateOne) ClearUpdatedAt

func (auo *AuthUpdateOne) ClearUpdatedAt() *AuthUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*AuthUpdateOne) ClearUser

func (auo *AuthUpdateOne) ClearUser() *AuthUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*AuthUpdateOne) Exec

func (auo *AuthUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*AuthUpdateOne) ExecX

func (auo *AuthUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AuthUpdateOne) Mutation

func (auo *AuthUpdateOne) Mutation() *AuthMutation

Mutation returns the AuthMutation object of the builder.

func (*AuthUpdateOne) Save

func (auo *AuthUpdateOne) Save(ctx context.Context) (*Auth, error)

Save executes the query and returns the updated Auth entity.

func (*AuthUpdateOne) SaveX

func (auo *AuthUpdateOne) SaveX(ctx context.Context) *Auth

SaveX is like Save, but panics if an error occurs.

func (*AuthUpdateOne) Select

func (auo *AuthUpdateOne) Select(field string, fields ...string) *AuthUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*AuthUpdateOne) SetAccessToken

func (auo *AuthUpdateOne) SetAccessToken(s string) *AuthUpdateOne

SetAccessToken sets the "access_token" field.

func (*AuthUpdateOne) SetExpireAt

func (auo *AuthUpdateOne) SetExpireAt(t time.Time) *AuthUpdateOne

SetExpireAt sets the "expire_at" field.

func (*AuthUpdateOne) SetNillableExpireAt

func (auo *AuthUpdateOne) SetNillableExpireAt(t *time.Time) *AuthUpdateOne

SetNillableExpireAt sets the "expire_at" field if the given value is not nil.

func (*AuthUpdateOne) SetNillableOwnerUserID

func (auo *AuthUpdateOne) SetNillableOwnerUserID(i *int) *AuthUpdateOne

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*AuthUpdateOne) SetNillableRefreshToken

func (auo *AuthUpdateOne) SetNillableRefreshToken(s *string) *AuthUpdateOne

SetNillableRefreshToken sets the "refresh_token" field if the given value is not nil.

func (*AuthUpdateOne) SetNillableUpdatedAt

func (auo *AuthUpdateOne) SetNillableUpdatedAt(t *time.Time) *AuthUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*AuthUpdateOne) SetNillableUserID

func (auo *AuthUpdateOne) SetNillableUserID(id *int) *AuthUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*AuthUpdateOne) SetOwnerUserID

func (auo *AuthUpdateOne) SetOwnerUserID(i int) *AuthUpdateOne

SetOwnerUserID sets the "owner_user_id" field.

func (*AuthUpdateOne) SetProviderName

func (auo *AuthUpdateOne) SetProviderName(s string) *AuthUpdateOne

SetProviderName sets the "provider_name" field.

func (*AuthUpdateOne) SetProviderUserID

func (auo *AuthUpdateOne) SetProviderUserID(s string) *AuthUpdateOne

SetProviderUserID sets the "provider_user_id" field.

func (*AuthUpdateOne) SetRefreshToken

func (auo *AuthUpdateOne) SetRefreshToken(s string) *AuthUpdateOne

SetRefreshToken sets the "refresh_token" field.

func (*AuthUpdateOne) SetScope

func (auo *AuthUpdateOne) SetScope(s []string) *AuthUpdateOne

SetScope sets the "scope" field.

func (*AuthUpdateOne) SetUpdatedAt

func (auo *AuthUpdateOne) SetUpdatedAt(t time.Time) *AuthUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*AuthUpdateOne) SetUser

func (auo *AuthUpdateOne) SetUser(u *User) *AuthUpdateOne

SetUser sets the "user" edge to the User entity.

func (*AuthUpdateOne) SetUserID

func (auo *AuthUpdateOne) SetUserID(id int) *AuthUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*AuthUpdateOne) Where

func (auo *AuthUpdateOne) Where(ps ...predicate.Auth) *AuthUpdateOne

Where appends a list predicates to the AuthUpdate builder.

type AuthUpsert

AuthUpsert is the "OnConflict" setter.

type AuthUpsert struct {
    *sql.UpdateSet
}

func (*AuthUpsert) ClearExpireAt

func (u *AuthUpsert) ClearExpireAt() *AuthUpsert

ClearExpireAt clears the value of the "expire_at" field.

func (*AuthUpsert) ClearOwnerUserID

func (u *AuthUpsert) ClearOwnerUserID() *AuthUpsert

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*AuthUpsert) ClearRefreshToken

func (u *AuthUpsert) ClearRefreshToken() *AuthUpsert

ClearRefreshToken clears the value of the "refresh_token" field.

func (*AuthUpsert) ClearScope

func (u *AuthUpsert) ClearScope() *AuthUpsert

ClearScope clears the value of the "scope" field.

func (*AuthUpsert) ClearUpdatedAt

func (u *AuthUpsert) ClearUpdatedAt() *AuthUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*AuthUpsert) SetAccessToken

func (u *AuthUpsert) SetAccessToken(v string) *AuthUpsert

SetAccessToken sets the "access_token" field.

func (*AuthUpsert) SetExpireAt

func (u *AuthUpsert) SetExpireAt(v time.Time) *AuthUpsert

SetExpireAt sets the "expire_at" field.

func (*AuthUpsert) SetOwnerUserID

func (u *AuthUpsert) SetOwnerUserID(v int) *AuthUpsert

SetOwnerUserID sets the "owner_user_id" field.

func (*AuthUpsert) SetProviderName

func (u *AuthUpsert) SetProviderName(v string) *AuthUpsert

SetProviderName sets the "provider_name" field.

func (*AuthUpsert) SetProviderUserID

func (u *AuthUpsert) SetProviderUserID(v string) *AuthUpsert

SetProviderUserID sets the "provider_user_id" field.

func (*AuthUpsert) SetRefreshToken

func (u *AuthUpsert) SetRefreshToken(v string) *AuthUpsert

SetRefreshToken sets the "refresh_token" field.

func (*AuthUpsert) SetScope

func (u *AuthUpsert) SetScope(v []string) *AuthUpsert

SetScope sets the "scope" field.

func (*AuthUpsert) SetUpdatedAt

func (u *AuthUpsert) SetUpdatedAt(v time.Time) *AuthUpsert

SetUpdatedAt sets the "updated_at" field.

func (*AuthUpsert) UpdateAccessToken

func (u *AuthUpsert) UpdateAccessToken() *AuthUpsert

UpdateAccessToken sets the "access_token" field to the value that was provided on create.

func (*AuthUpsert) UpdateExpireAt

func (u *AuthUpsert) UpdateExpireAt() *AuthUpsert

UpdateExpireAt sets the "expire_at" field to the value that was provided on create.

func (*AuthUpsert) UpdateOwnerUserID

func (u *AuthUpsert) UpdateOwnerUserID() *AuthUpsert

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*AuthUpsert) UpdateProviderName

func (u *AuthUpsert) UpdateProviderName() *AuthUpsert

UpdateProviderName sets the "provider_name" field to the value that was provided on create.

func (*AuthUpsert) UpdateProviderUserID

func (u *AuthUpsert) UpdateProviderUserID() *AuthUpsert

UpdateProviderUserID sets the "provider_user_id" field to the value that was provided on create.

func (*AuthUpsert) UpdateRefreshToken

func (u *AuthUpsert) UpdateRefreshToken() *AuthUpsert

UpdateRefreshToken sets the "refresh_token" field to the value that was provided on create.

func (*AuthUpsert) UpdateScope

func (u *AuthUpsert) UpdateScope() *AuthUpsert

UpdateScope sets the "scope" field to the value that was provided on create.

func (*AuthUpsert) UpdateUpdatedAt

func (u *AuthUpsert) UpdateUpdatedAt() *AuthUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type AuthUpsertBulk

AuthUpsertBulk is the builder for "upsert"-ing a bulk of Auth nodes.

type AuthUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*AuthUpsertBulk) ClearExpireAt

func (u *AuthUpsertBulk) ClearExpireAt() *AuthUpsertBulk

ClearExpireAt clears the value of the "expire_at" field.

func (*AuthUpsertBulk) ClearOwnerUserID

func (u *AuthUpsertBulk) ClearOwnerUserID() *AuthUpsertBulk

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*AuthUpsertBulk) ClearRefreshToken

func (u *AuthUpsertBulk) ClearRefreshToken() *AuthUpsertBulk

ClearRefreshToken clears the value of the "refresh_token" field.

func (*AuthUpsertBulk) ClearScope

func (u *AuthUpsertBulk) ClearScope() *AuthUpsertBulk

ClearScope clears the value of the "scope" field.

func (*AuthUpsertBulk) ClearUpdatedAt

func (u *AuthUpsertBulk) ClearUpdatedAt() *AuthUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*AuthUpsertBulk) DoNothing

func (u *AuthUpsertBulk) DoNothing() *AuthUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*AuthUpsertBulk) Exec

func (u *AuthUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*AuthUpsertBulk) ExecX

func (u *AuthUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AuthUpsertBulk) Ignore

func (u *AuthUpsertBulk) Ignore() *AuthUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Auth.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*AuthUpsertBulk) SetAccessToken

func (u *AuthUpsertBulk) SetAccessToken(v string) *AuthUpsertBulk

SetAccessToken sets the "access_token" field.

func (*AuthUpsertBulk) SetExpireAt

func (u *AuthUpsertBulk) SetExpireAt(v time.Time) *AuthUpsertBulk

SetExpireAt sets the "expire_at" field.

func (*AuthUpsertBulk) SetOwnerUserID

func (u *AuthUpsertBulk) SetOwnerUserID(v int) *AuthUpsertBulk

SetOwnerUserID sets the "owner_user_id" field.

func (*AuthUpsertBulk) SetProviderName

func (u *AuthUpsertBulk) SetProviderName(v string) *AuthUpsertBulk

SetProviderName sets the "provider_name" field.

func (*AuthUpsertBulk) SetProviderUserID

func (u *AuthUpsertBulk) SetProviderUserID(v string) *AuthUpsertBulk

SetProviderUserID sets the "provider_user_id" field.

func (*AuthUpsertBulk) SetRefreshToken

func (u *AuthUpsertBulk) SetRefreshToken(v string) *AuthUpsertBulk

SetRefreshToken sets the "refresh_token" field.

func (*AuthUpsertBulk) SetScope

func (u *AuthUpsertBulk) SetScope(v []string) *AuthUpsertBulk

SetScope sets the "scope" field.

func (*AuthUpsertBulk) SetUpdatedAt

func (u *AuthUpsertBulk) SetUpdatedAt(v time.Time) *AuthUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*AuthUpsertBulk) Update

func (u *AuthUpsertBulk) Update(set func(*AuthUpsert)) *AuthUpsertBulk

Update allows overriding fields `UPDATE` values. See the AuthCreateBulk.OnConflict documentation for more info.

func (*AuthUpsertBulk) UpdateAccessToken

func (u *AuthUpsertBulk) UpdateAccessToken() *AuthUpsertBulk

UpdateAccessToken sets the "access_token" field to the value that was provided on create.

func (*AuthUpsertBulk) UpdateExpireAt

func (u *AuthUpsertBulk) UpdateExpireAt() *AuthUpsertBulk

UpdateExpireAt sets the "expire_at" field to the value that was provided on create.

func (*AuthUpsertBulk) UpdateNewValues

func (u *AuthUpsertBulk) UpdateNewValues() *AuthUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Auth.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*AuthUpsertBulk) UpdateOwnerUserID

func (u *AuthUpsertBulk) UpdateOwnerUserID() *AuthUpsertBulk

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*AuthUpsertBulk) UpdateProviderName

func (u *AuthUpsertBulk) UpdateProviderName() *AuthUpsertBulk

UpdateProviderName sets the "provider_name" field to the value that was provided on create.

func (*AuthUpsertBulk) UpdateProviderUserID

func (u *AuthUpsertBulk) UpdateProviderUserID() *AuthUpsertBulk

UpdateProviderUserID sets the "provider_user_id" field to the value that was provided on create.

func (*AuthUpsertBulk) UpdateRefreshToken

func (u *AuthUpsertBulk) UpdateRefreshToken() *AuthUpsertBulk

UpdateRefreshToken sets the "refresh_token" field to the value that was provided on create.

func (*AuthUpsertBulk) UpdateScope

func (u *AuthUpsertBulk) UpdateScope() *AuthUpsertBulk

UpdateScope sets the "scope" field to the value that was provided on create.

func (*AuthUpsertBulk) UpdateUpdatedAt

func (u *AuthUpsertBulk) UpdateUpdatedAt() *AuthUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type AuthUpsertOne

AuthUpsertOne is the builder for "upsert"-ing

one Auth node.
type AuthUpsertOne struct {
    // contains filtered or unexported fields
}

func (*AuthUpsertOne) ClearExpireAt

func (u *AuthUpsertOne) ClearExpireAt() *AuthUpsertOne

ClearExpireAt clears the value of the "expire_at" field.

func (*AuthUpsertOne) ClearOwnerUserID

func (u *AuthUpsertOne) ClearOwnerUserID() *AuthUpsertOne

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*AuthUpsertOne) ClearRefreshToken

func (u *AuthUpsertOne) ClearRefreshToken() *AuthUpsertOne

ClearRefreshToken clears the value of the "refresh_token" field.

func (*AuthUpsertOne) ClearScope

func (u *AuthUpsertOne) ClearScope() *AuthUpsertOne

ClearScope clears the value of the "scope" field.

func (*AuthUpsertOne) ClearUpdatedAt

func (u *AuthUpsertOne) ClearUpdatedAt() *AuthUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*AuthUpsertOne) DoNothing

func (u *AuthUpsertOne) DoNothing() *AuthUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*AuthUpsertOne) Exec

func (u *AuthUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*AuthUpsertOne) ExecX

func (u *AuthUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AuthUpsertOne) ID

func (u *AuthUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*AuthUpsertOne) IDX

func (u *AuthUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*AuthUpsertOne) Ignore

func (u *AuthUpsertOne) Ignore() *AuthUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Auth.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*AuthUpsertOne) SetAccessToken

func (u *AuthUpsertOne) SetAccessToken(v string) *AuthUpsertOne

SetAccessToken sets the "access_token" field.

func (*AuthUpsertOne) SetExpireAt

func (u *AuthUpsertOne) SetExpireAt(v time.Time) *AuthUpsertOne

SetExpireAt sets the "expire_at" field.

func (*AuthUpsertOne) SetOwnerUserID

func (u *AuthUpsertOne) SetOwnerUserID(v int) *AuthUpsertOne

SetOwnerUserID sets the "owner_user_id" field.

func (*AuthUpsertOne) SetProviderName

func (u *AuthUpsertOne) SetProviderName(v string) *AuthUpsertOne

SetProviderName sets the "provider_name" field.

func (*AuthUpsertOne) SetProviderUserID

func (u *AuthUpsertOne) SetProviderUserID(v string) *AuthUpsertOne

SetProviderUserID sets the "provider_user_id" field.

func (*AuthUpsertOne) SetRefreshToken

func (u *AuthUpsertOne) SetRefreshToken(v string) *AuthUpsertOne

SetRefreshToken sets the "refresh_token" field.

func (*AuthUpsertOne) SetScope

func (u *AuthUpsertOne) SetScope(v []string) *AuthUpsertOne

SetScope sets the "scope" field.

func (*AuthUpsertOne) SetUpdatedAt

func (u *AuthUpsertOne) SetUpdatedAt(v time.Time) *AuthUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*AuthUpsertOne) Update

func (u *AuthUpsertOne) Update(set func(*AuthUpsert)) *AuthUpsertOne

Update allows overriding fields `UPDATE` values. See the AuthCreate.OnConflict documentation for more info.

func (*AuthUpsertOne) UpdateAccessToken

func (u *AuthUpsertOne) UpdateAccessToken() *AuthUpsertOne

UpdateAccessToken sets the "access_token" field to the value that was provided on create.

func (*AuthUpsertOne) UpdateExpireAt

func (u *AuthUpsertOne) UpdateExpireAt() *AuthUpsertOne

UpdateExpireAt sets the "expire_at" field to the value that was provided on create.

func (*AuthUpsertOne) UpdateNewValues

func (u *AuthUpsertOne) UpdateNewValues() *AuthUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Auth.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*AuthUpsertOne) UpdateOwnerUserID

func (u *AuthUpsertOne) UpdateOwnerUserID() *AuthUpsertOne

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*AuthUpsertOne) UpdateProviderName

func (u *AuthUpsertOne) UpdateProviderName() *AuthUpsertOne

UpdateProviderName sets the "provider_name" field to the value that was provided on create.

func (*AuthUpsertOne) UpdateProviderUserID

func (u *AuthUpsertOne) UpdateProviderUserID() *AuthUpsertOne

UpdateProviderUserID sets the "provider_user_id" field to the value that was provided on create.

func (*AuthUpsertOne) UpdateRefreshToken

func (u *AuthUpsertOne) UpdateRefreshToken() *AuthUpsertOne

UpdateRefreshToken sets the "refresh_token" field to the value that was provided on create.

func (*AuthUpsertOne) UpdateScope

func (u *AuthUpsertOne) UpdateScope() *AuthUpsertOne

UpdateScope sets the "scope" field to the value that was provided on create.

func (*AuthUpsertOne) UpdateUpdatedAt

func (u *AuthUpsertOne) UpdateUpdatedAt() *AuthUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Auths

Auths is a parsable slice of Auth.

type Auths []*Auth

type Client

Client is the client that holds all ent builders.

type Client struct {

    // Schema is the client for creating, migrating and dropping schema.
    Schema *migrate.Schema
    // Auth is the client for interacting with the Auth builders.
    Auth *AuthClient
    // HPAmebloPost is the client for interacting with the HPAmebloPost builders.
    HPAmebloPost *HPAmebloPostClient
    // HPArtist is the client for interacting with the HPArtist builders.
    HPArtist *HPArtistClient
    // HPAsset is the client for interacting with the HPAsset builders.
    HPAsset *HPAssetClient
    // HPBlob is the client for interacting with the HPBlob builders.
    HPBlob *HPBlobClient
    // HPElineupMallItem is the client for interacting with the HPElineupMallItem builders.
    HPElineupMallItem *HPElineupMallItemClient
    // HPEvent is the client for interacting with the HPEvent builders.
    HPEvent *HPEventClient
    // HPFCEventTicket is the client for interacting with the HPFCEventTicket builders.
    HPFCEventTicket *HPFCEventTicketClient
    // HPFeedItem is the client for interacting with the HPFeedItem builders.
    HPFeedItem *HPFeedItemClient
    // HPFollow is the client for interacting with the HPFollow builders.
    HPFollow *HPFollowClient
    // HPIgPost is the client for interacting with the HPIgPost builders.
    HPIgPost *HPIgPostClient
    // HPMember is the client for interacting with the HPMember builders.
    HPMember *HPMemberClient
    // HPSortHistory is the client for interacting with the HPSortHistory builders.
    HPSortHistory *HPSortHistoryClient
    // HPViewHistory is the client for interacting with the HPViewHistory builders.
    HPViewHistory *HPViewHistoryClient
    // TestEnt is the client for interacting with the TestEnt builders.
    TestEnt *TestEntClient
    // User is the client for interacting with the User builders.
    User *UserClient
    // UserNotificationLog is the client for interacting with the UserNotificationLog builders.
    UserNotificationLog *UserNotificationLogClient
    // UserNotificationSetting is the client for interacting with the UserNotificationSetting builders.
    UserNotificationSetting *UserNotificationSettingClient
    // contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.

func (*Client) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	Auth.
	Query().
	Count(ctx)

func (*Client) Intercept

func (c *Client) Intercept(interceptors ...Interceptor)

Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.

func (*Client) Mutate

func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)

Mutate implements the ent.Mutator interface.

func (*Client) Noder

func (c *Client) Noder(ctx context.Context, id int, opts ...NodeOption) (_ Noder, err error)

Noder returns a Node by its id. If the NodeType was not provided, it will be derived from the id value according to the universal-id configuration.

c.Noder(ctx, id)
c.Noder(ctx, id, ent.WithNodeType(typeResolver))

func (*Client) Noders

func (c *Client) Noders(ctx context.Context, ids []int, opts ...NodeOption) ([]Noder, error)

func (*Client) OpenTx

func (c *Client) OpenTx(ctx context.Context) (context.Context, driver.Tx, error)

OpenTx opens a transaction and returns a transactional context along with the created transaction.

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CommitFunc

The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.

type CommitFunc func(context.Context, *Tx) error

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:

hook := func(next ent.Committer) ent.Committer {
	return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Commit(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}
type CommitHook func(Committer) Committer

type Committer

Committer is the interface that wraps the Commit method.

type Committer interface {
    Commit(context.Context, *Tx) error
}

type ConstraintError

ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.

type ConstraintError struct {
    // contains filtered or unexported fields
}

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Cursor

Common entgql types.

type Cursor = entgql.Cursor[int]

type HPAmebloPost

HPAmebloPost is the model entity for the HPAmebloPost schema.

type HPAmebloPost struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CrawledAt holds the value of the "crawled_at" field.
    CrawledAt *time.Time `json:"crawled_at,omitempty"`
    // ErrorCount holds the value of the "error_count" field.
    ErrorCount int `json:"error_count,omitempty"`
    // ManuallyModified holds the value of the "manually_modified" field.
    ManuallyModified *jsonfields.ManuallyModified `json:"manually_modified,omitempty"`
    // LastErrorMessage holds the value of the "last_error_message" field.
    LastErrorMessage *string `json:"last_error_message,omitempty"`
    // RecrawlRequired holds the value of the "recrawl_required" field.
    RecrawlRequired bool `json:"recrawl_required,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Path holds the value of the "path" field.
    Path string `json:"path,omitempty"`
    // NextPath holds the value of the "next_path" field.
    NextPath *string `json:"next_path,omitempty"`
    // PrevPath holds the value of the "prev_path" field.
    PrevPath *string `json:"prev_path,omitempty"`
    // ArtistKey holds the value of the "artist_key" field.
    ArtistKey string `json:"artist_key,omitempty"`
    // MemberKey holds the value of the "member_key" field.
    MemberKey *string `json:"member_key,omitempty"`
    // Title holds the value of the "title" field.
    Title string `json:"title,omitempty"`
    // Description holds the value of the "description" field.
    Description string `json:"description,omitempty"`
    // Theme holds the value of the "theme" field.
    Theme *string `json:"theme,omitempty"`
    // PostAt holds the value of the "post_at" field.
    PostAt time.Time `json:"post_at,omitempty"`
    // Source holds the value of the "source" field.
    Source hpameblopost.Source `json:"source,omitempty"`
    // Images holds the value of the "images" field.
    Images []jsonfields.Media `json:"images,omitempty"`
    // Likes holds the value of the "likes" field.
    Likes *int `json:"likes,omitempty"`
    // Comments holds the value of the "comments" field.
    Comments *int `json:"comments,omitempty"`
    // Reblogs holds the value of the "reblogs" field.
    Reblogs *int `json:"reblogs,omitempty"`
    // OwnerArtistID holds the value of the "owner_artist_id" field.
    OwnerArtistID *int `json:"owner_artist_id,omitempty"`
    // OwnerMemberID holds the value of the "owner_member_id" field.
    OwnerMemberID *int `json:"owner_member_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPAmebloPostQuery when eager-loading is set.
    Edges HPAmebloPostEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPAmebloPost) Blobs

func (hap *HPAmebloPost) Blobs(ctx context.Context) (result []*HPBlob, err error)

func (*HPAmebloPost) IsNode

func (n *HPAmebloPost) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPAmebloPost) NamedBlobs

func (hap *HPAmebloPost) NamedBlobs(name string) ([]*HPBlob, error)

NamedBlobs returns the Blobs named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPAmebloPost) NamedTaggedArtists

func (hap *HPAmebloPost) NamedTaggedArtists(name string) ([]*HPArtist, error)

NamedTaggedArtists returns the TaggedArtists named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPAmebloPost) NamedTaggedMembers

func (hap *HPAmebloPost) NamedTaggedMembers(name string) ([]*HPMember, error)

NamedTaggedMembers returns the TaggedMembers named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPAmebloPost) OwnerArtist

func (hap *HPAmebloPost) OwnerArtist(ctx context.Context) (*HPArtist, error)

func (*HPAmebloPost) OwnerMember

func (hap *HPAmebloPost) OwnerMember(ctx context.Context) (*HPMember, error)

func (*HPAmebloPost) QueryAsset

func (hap *HPAmebloPost) QueryAsset() *HPAssetQuery

QueryAsset queries the "asset" edge of the HPAmebloPost entity.

func (*HPAmebloPost) QueryBlobs

func (hap *HPAmebloPost) QueryBlobs() *HPBlobQuery

QueryBlobs queries the "blobs" edge of the HPAmebloPost entity.

func (*HPAmebloPost) QueryOwnerArtist

func (hap *HPAmebloPost) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist queries the "owner_artist" edge of the HPAmebloPost entity.

func (*HPAmebloPost) QueryOwnerMember

func (hap *HPAmebloPost) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember queries the "owner_member" edge of the HPAmebloPost entity.

func (*HPAmebloPost) QueryTaggedArtists

func (hap *HPAmebloPost) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists queries the "tagged_artists" edge of the HPAmebloPost entity.

func (*HPAmebloPost) QueryTaggedMembers

func (hap *HPAmebloPost) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers queries the "tagged_members" edge of the HPAmebloPost entity.

func (*HPAmebloPost) String

func (hap *HPAmebloPost) String() string

String implements the fmt.Stringer.

func (*HPAmebloPost) TaggedArtists

func (hap *HPAmebloPost) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)

func (*HPAmebloPost) TaggedMembers

func (hap *HPAmebloPost) TaggedMembers(ctx context.Context) (result []*HPMember, err error)

func (*HPAmebloPost) ToEdge

func (hap *HPAmebloPost) ToEdge(order *HPAmebloPostOrder) *HPAmebloPostEdge

ToEdge converts HPAmebloPost into HPAmebloPostEdge.

func (*HPAmebloPost) Unwrap

func (hap *HPAmebloPost) Unwrap() *HPAmebloPost

Unwrap unwraps the HPAmebloPost entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPAmebloPost) Update

func (hap *HPAmebloPost) Update() *HPAmebloPostUpdateOne

Update returns a builder for updating this HPAmebloPost. Note that you need to call HPAmebloPost.Unwrap() before calling this method if this HPAmebloPost was returned from a transaction, and the transaction was committed or rolled back.

func (*HPAmebloPost) Value

func (hap *HPAmebloPost) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPAmebloPost. This includes values selected through modifiers, order, etc.

type HPAmebloPostClient

HPAmebloPostClient is a client for the HPAmebloPost schema.

type HPAmebloPostClient struct {
    // contains filtered or unexported fields
}

func NewHPAmebloPostClient

func NewHPAmebloPostClient(c config) *HPAmebloPostClient

NewHPAmebloPostClient returns a client for the HPAmebloPost from the given config.

func (*HPAmebloPostClient) Create

func (c *HPAmebloPostClient) Create() *HPAmebloPostCreate

Create returns a builder for creating a HPAmebloPost entity.

func (*HPAmebloPostClient) CreateBulk

func (c *HPAmebloPostClient) CreateBulk(builders ...*HPAmebloPostCreate) *HPAmebloPostCreateBulk

CreateBulk returns a builder for creating a bulk of HPAmebloPost entities.

func (*HPAmebloPostClient) Delete

func (c *HPAmebloPostClient) Delete() *HPAmebloPostDelete

Delete returns a delete builder for HPAmebloPost.

func (*HPAmebloPostClient) DeleteOne

func (c *HPAmebloPostClient) DeleteOne(hap *HPAmebloPost) *HPAmebloPostDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPAmebloPostClient) DeleteOneID

func (c *HPAmebloPostClient) DeleteOneID(id int) *HPAmebloPostDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPAmebloPostClient) Get

func (c *HPAmebloPostClient) Get(ctx context.Context, id int) (*HPAmebloPost, error)

Get returns a HPAmebloPost entity by its id.

func (*HPAmebloPostClient) GetX

func (c *HPAmebloPostClient) GetX(ctx context.Context, id int) *HPAmebloPost

GetX is like Get, but panics if an error occurs.

func (*HPAmebloPostClient) Hooks

func (c *HPAmebloPostClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPAmebloPostClient) Intercept

func (c *HPAmebloPostClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpameblopost.Intercept(f(g(h())))`.

func (*HPAmebloPostClient) Interceptors

func (c *HPAmebloPostClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPAmebloPostClient) Query

func (c *HPAmebloPostClient) Query() *HPAmebloPostQuery

Query returns a query builder for HPAmebloPost.

func (*HPAmebloPostClient) QueryAsset

func (c *HPAmebloPostClient) QueryAsset(hap *HPAmebloPost) *HPAssetQuery

QueryAsset queries the asset edge of a HPAmebloPost.

func (*HPAmebloPostClient) QueryBlobs

func (c *HPAmebloPostClient) QueryBlobs(hap *HPAmebloPost) *HPBlobQuery

QueryBlobs queries the blobs edge of a HPAmebloPost.

func (*HPAmebloPostClient) QueryOwnerArtist

func (c *HPAmebloPostClient) QueryOwnerArtist(hap *HPAmebloPost) *HPArtistQuery

QueryOwnerArtist queries the owner_artist edge of a HPAmebloPost.

func (*HPAmebloPostClient) QueryOwnerMember

func (c *HPAmebloPostClient) QueryOwnerMember(hap *HPAmebloPost) *HPMemberQuery

QueryOwnerMember queries the owner_member edge of a HPAmebloPost.

func (*HPAmebloPostClient) QueryTaggedArtists

func (c *HPAmebloPostClient) QueryTaggedArtists(hap *HPAmebloPost) *HPArtistQuery

QueryTaggedArtists queries the tagged_artists edge of a HPAmebloPost.

func (*HPAmebloPostClient) QueryTaggedMembers

func (c *HPAmebloPostClient) QueryTaggedMembers(hap *HPAmebloPost) *HPMemberQuery

QueryTaggedMembers queries the tagged_members edge of a HPAmebloPost.

func (*HPAmebloPostClient) Update

func (c *HPAmebloPostClient) Update() *HPAmebloPostUpdate

Update returns an update builder for HPAmebloPost.

func (*HPAmebloPostClient) UpdateOne

func (c *HPAmebloPostClient) UpdateOne(hap *HPAmebloPost) *HPAmebloPostUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPAmebloPostClient) UpdateOneID

func (c *HPAmebloPostClient) UpdateOneID(id int) *HPAmebloPostUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPAmebloPostClient) Use

func (c *HPAmebloPostClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpameblopost.Hooks(f(g(h())))`.

type HPAmebloPostConnection

HPAmebloPostConnection is the connection containing edges to HPAmebloPost.

type HPAmebloPostConnection struct {
    Edges      []*HPAmebloPostEdge `json:"edges"`
    PageInfo   PageInfo            `json:"pageInfo"`
    TotalCount int                 `json:"totalCount"`
}

type HPAmebloPostCreate

HPAmebloPostCreate is the builder for creating a HPAmebloPost entity.

type HPAmebloPostCreate struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostCreate) AddBlobIDs

func (hapc *HPAmebloPostCreate) AddBlobIDs(ids ...int) *HPAmebloPostCreate

AddBlobIDs adds the "blobs" edge to the HPBlob entity by IDs.

func (*HPAmebloPostCreate) AddBlobs

func (hapc *HPAmebloPostCreate) AddBlobs(h ...*HPBlob) *HPAmebloPostCreate

AddBlobs adds the "blobs" edges to the HPBlob entity.

func (*HPAmebloPostCreate) AddTaggedArtistIDs

func (hapc *HPAmebloPostCreate) AddTaggedArtistIDs(ids ...int) *HPAmebloPostCreate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPAmebloPostCreate) AddTaggedArtists

func (hapc *HPAmebloPostCreate) AddTaggedArtists(h ...*HPArtist) *HPAmebloPostCreate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPAmebloPostCreate) AddTaggedMemberIDs

func (hapc *HPAmebloPostCreate) AddTaggedMemberIDs(ids ...int) *HPAmebloPostCreate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPAmebloPostCreate) AddTaggedMembers

func (hapc *HPAmebloPostCreate) AddTaggedMembers(h ...*HPMember) *HPAmebloPostCreate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPAmebloPostCreate) Exec

func (hapc *HPAmebloPostCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAmebloPostCreate) ExecX

func (hapc *HPAmebloPostCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostCreate) Mutation

func (hapc *HPAmebloPostCreate) Mutation() *HPAmebloPostMutation

Mutation returns the HPAmebloPostMutation object of the builder.

func (*HPAmebloPostCreate) OnConflict

func (hapc *HPAmebloPostCreate) OnConflict(opts ...sql.ConflictOption) *HPAmebloPostUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPAmebloPost.Create().
	SetCrawledAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPAmebloPostUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPAmebloPostCreate) OnConflictColumns

func (hapc *HPAmebloPostCreate) OnConflictColumns(columns ...string) *HPAmebloPostUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPAmebloPost.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPAmebloPostCreate) Save

func (hapc *HPAmebloPostCreate) Save(ctx context.Context) (*HPAmebloPost, error)

Save creates the HPAmebloPost in the database.

func (*HPAmebloPostCreate) SaveX

func (hapc *HPAmebloPostCreate) SaveX(ctx context.Context) *HPAmebloPost

SaveX calls Save and panics if Save returns an error.

func (*HPAmebloPostCreate) SetArtistKey

func (hapc *HPAmebloPostCreate) SetArtistKey(s string) *HPAmebloPostCreate

SetArtistKey sets the "artist_key" field.

func (*HPAmebloPostCreate) SetAsset

func (hapc *HPAmebloPostCreate) SetAsset(h *HPAsset) *HPAmebloPostCreate

SetAsset sets the "asset" edge to the HPAsset entity.

func (*HPAmebloPostCreate) SetAssetID

func (hapc *HPAmebloPostCreate) SetAssetID(id int) *HPAmebloPostCreate

SetAssetID sets the "asset" edge to the HPAsset entity by ID.

func (*HPAmebloPostCreate) SetComments

func (hapc *HPAmebloPostCreate) SetComments(i int) *HPAmebloPostCreate

SetComments sets the "comments" field.

func (*HPAmebloPostCreate) SetCrawledAt

func (hapc *HPAmebloPostCreate) SetCrawledAt(t time.Time) *HPAmebloPostCreate

SetCrawledAt sets the "crawled_at" field.

func (*HPAmebloPostCreate) SetCreatedAt

func (hapc *HPAmebloPostCreate) SetCreatedAt(t time.Time) *HPAmebloPostCreate

SetCreatedAt sets the "created_at" field.

func (*HPAmebloPostCreate) SetDescription

func (hapc *HPAmebloPostCreate) SetDescription(s string) *HPAmebloPostCreate

SetDescription sets the "description" field.

func (*HPAmebloPostCreate) SetErrorCount

func (hapc *HPAmebloPostCreate) SetErrorCount(i int) *HPAmebloPostCreate

SetErrorCount sets the "error_count" field.

func (*HPAmebloPostCreate) SetImages

func (hapc *HPAmebloPostCreate) SetImages(j []jsonfields.Media) *HPAmebloPostCreate

SetImages sets the "images" field.

func (*HPAmebloPostCreate) SetLastErrorMessage

func (hapc *HPAmebloPostCreate) SetLastErrorMessage(s string) *HPAmebloPostCreate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPAmebloPostCreate) SetLikes

func (hapc *HPAmebloPostCreate) SetLikes(i int) *HPAmebloPostCreate

SetLikes sets the "likes" field.

func (*HPAmebloPostCreate) SetManuallyModified

func (hapc *HPAmebloPostCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPAmebloPostCreate

SetManuallyModified sets the "manually_modified" field.

func (*HPAmebloPostCreate) SetMemberKey

func (hapc *HPAmebloPostCreate) SetMemberKey(s string) *HPAmebloPostCreate

SetMemberKey sets the "member_key" field.

func (*HPAmebloPostCreate) SetNextPath

func (hapc *HPAmebloPostCreate) SetNextPath(s string) *HPAmebloPostCreate

SetNextPath sets the "next_path" field.

func (*HPAmebloPostCreate) SetNillableAssetID

func (hapc *HPAmebloPostCreate) SetNillableAssetID(id *int) *HPAmebloPostCreate

SetNillableAssetID sets the "asset" edge to the HPAsset entity by ID if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableComments

func (hapc *HPAmebloPostCreate) SetNillableComments(i *int) *HPAmebloPostCreate

SetNillableComments sets the "comments" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableCrawledAt

func (hapc *HPAmebloPostCreate) SetNillableCrawledAt(t *time.Time) *HPAmebloPostCreate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableCreatedAt

func (hapc *HPAmebloPostCreate) SetNillableCreatedAt(t *time.Time) *HPAmebloPostCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableErrorCount

func (hapc *HPAmebloPostCreate) SetNillableErrorCount(i *int) *HPAmebloPostCreate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableLastErrorMessage

func (hapc *HPAmebloPostCreate) SetNillableLastErrorMessage(s *string) *HPAmebloPostCreate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableLikes

func (hapc *HPAmebloPostCreate) SetNillableLikes(i *int) *HPAmebloPostCreate

SetNillableLikes sets the "likes" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableMemberKey

func (hapc *HPAmebloPostCreate) SetNillableMemberKey(s *string) *HPAmebloPostCreate

SetNillableMemberKey sets the "member_key" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableNextPath

func (hapc *HPAmebloPostCreate) SetNillableNextPath(s *string) *HPAmebloPostCreate

SetNillableNextPath sets the "next_path" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableOwnerArtistID

func (hapc *HPAmebloPostCreate) SetNillableOwnerArtistID(i *int) *HPAmebloPostCreate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableOwnerMemberID

func (hapc *HPAmebloPostCreate) SetNillableOwnerMemberID(i *int) *HPAmebloPostCreate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillablePrevPath

func (hapc *HPAmebloPostCreate) SetNillablePrevPath(s *string) *HPAmebloPostCreate

SetNillablePrevPath sets the "prev_path" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableReblogs

func (hapc *HPAmebloPostCreate) SetNillableReblogs(i *int) *HPAmebloPostCreate

SetNillableReblogs sets the "reblogs" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableRecrawlRequired

func (hapc *HPAmebloPostCreate) SetNillableRecrawlRequired(b *bool) *HPAmebloPostCreate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableTheme

func (hapc *HPAmebloPostCreate) SetNillableTheme(s *string) *HPAmebloPostCreate

SetNillableTheme sets the "theme" field if the given value is not nil.

func (*HPAmebloPostCreate) SetNillableUpdatedAt

func (hapc *HPAmebloPostCreate) SetNillableUpdatedAt(t *time.Time) *HPAmebloPostCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPAmebloPostCreate) SetOwnerArtist

func (hapc *HPAmebloPostCreate) SetOwnerArtist(h *HPArtist) *HPAmebloPostCreate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPAmebloPostCreate) SetOwnerArtistID

func (hapc *HPAmebloPostCreate) SetOwnerArtistID(i int) *HPAmebloPostCreate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPAmebloPostCreate) SetOwnerMember

func (hapc *HPAmebloPostCreate) SetOwnerMember(h *HPMember) *HPAmebloPostCreate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPAmebloPostCreate) SetOwnerMemberID

func (hapc *HPAmebloPostCreate) SetOwnerMemberID(i int) *HPAmebloPostCreate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPAmebloPostCreate) SetPath

func (hapc *HPAmebloPostCreate) SetPath(s string) *HPAmebloPostCreate

SetPath sets the "path" field.

func (*HPAmebloPostCreate) SetPostAt

func (hapc *HPAmebloPostCreate) SetPostAt(t time.Time) *HPAmebloPostCreate

SetPostAt sets the "post_at" field.

func (*HPAmebloPostCreate) SetPrevPath

func (hapc *HPAmebloPostCreate) SetPrevPath(s string) *HPAmebloPostCreate

SetPrevPath sets the "prev_path" field.

func (*HPAmebloPostCreate) SetReblogs

func (hapc *HPAmebloPostCreate) SetReblogs(i int) *HPAmebloPostCreate

SetReblogs sets the "reblogs" field.

func (*HPAmebloPostCreate) SetRecrawlRequired

func (hapc *HPAmebloPostCreate) SetRecrawlRequired(b bool) *HPAmebloPostCreate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPAmebloPostCreate) SetSource

func (hapc *HPAmebloPostCreate) SetSource(h hpameblopost.Source) *HPAmebloPostCreate

SetSource sets the "source" field.

func (*HPAmebloPostCreate) SetTheme

func (hapc *HPAmebloPostCreate) SetTheme(s string) *HPAmebloPostCreate

SetTheme sets the "theme" field.

func (*HPAmebloPostCreate) SetTitle

func (hapc *HPAmebloPostCreate) SetTitle(s string) *HPAmebloPostCreate

SetTitle sets the "title" field.

func (*HPAmebloPostCreate) SetUpdatedAt

func (hapc *HPAmebloPostCreate) SetUpdatedAt(t time.Time) *HPAmebloPostCreate

SetUpdatedAt sets the "updated_at" field.

type HPAmebloPostCreateBulk

HPAmebloPostCreateBulk is the builder for creating many HPAmebloPost entities in bulk.

type HPAmebloPostCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostCreateBulk) Exec

func (hapcb *HPAmebloPostCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAmebloPostCreateBulk) ExecX

func (hapcb *HPAmebloPostCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostCreateBulk) OnConflict

func (hapcb *HPAmebloPostCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPAmebloPostUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPAmebloPost.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPAmebloPostUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPAmebloPostCreateBulk) OnConflictColumns

func (hapcb *HPAmebloPostCreateBulk) OnConflictColumns(columns ...string) *HPAmebloPostUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPAmebloPost.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPAmebloPostCreateBulk) Save

func (hapcb *HPAmebloPostCreateBulk) Save(ctx context.Context) ([]*HPAmebloPost, error)

Save creates the HPAmebloPost entities in the database.

func (*HPAmebloPostCreateBulk) SaveX

func (hapcb *HPAmebloPostCreateBulk) SaveX(ctx context.Context) []*HPAmebloPost

SaveX is like Save, but panics if an error occurs.

type HPAmebloPostDelete

HPAmebloPostDelete is the builder for deleting a HPAmebloPost entity.

type HPAmebloPostDelete struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostDelete) Exec

func (hapd *HPAmebloPostDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPAmebloPostDelete) ExecX

func (hapd *HPAmebloPostDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostDelete) Where

func (hapd *HPAmebloPostDelete) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostDelete

Where appends a list predicates to the HPAmebloPostDelete builder.

type HPAmebloPostDeleteOne

HPAmebloPostDeleteOne is the builder for deleting a single HPAmebloPost entity.

type HPAmebloPostDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostDeleteOne) Exec

func (hapdo *HPAmebloPostDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPAmebloPostDeleteOne) ExecX

func (hapdo *HPAmebloPostDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostDeleteOne) Where

func (hapdo *HPAmebloPostDeleteOne) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostDeleteOne

Where appends a list predicates to the HPAmebloPostDelete builder.

type HPAmebloPostEdge

HPAmebloPostEdge is the edge representation of HPAmebloPost.

type HPAmebloPostEdge struct {
    Node   *HPAmebloPost `json:"node"`
    Cursor Cursor        `json:"cursor"`
}

type HPAmebloPostEdges

HPAmebloPostEdges holds the relations/edges for other nodes in the graph.

type HPAmebloPostEdges struct {
    // OwnerArtist holds the value of the owner_artist edge.
    OwnerArtist *HPArtist `json:"owner_artist,omitempty"`
    // OwnerMember holds the value of the owner_member edge.
    OwnerMember *HPMember `json:"owner_member,omitempty"`
    // TaggedArtists holds the value of the tagged_artists edge.
    TaggedArtists []*HPArtist `json:"tagged_artists,omitempty"`
    // TaggedMembers holds the value of the tagged_members edge.
    TaggedMembers []*HPMember `json:"tagged_members,omitempty"`
    // Asset holds the value of the asset edge.
    Asset *HPAsset `json:"asset,omitempty"`
    // Blobs holds the value of the blobs edge.
    Blobs []*HPBlob `json:"blobs,omitempty"`
    // contains filtered or unexported fields
}

func (HPAmebloPostEdges) AssetOrErr

func (e HPAmebloPostEdges) AssetOrErr() (*HPAsset, error)

AssetOrErr returns the Asset value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPAmebloPostEdges) BlobsOrErr

func (e HPAmebloPostEdges) BlobsOrErr() ([]*HPBlob, error)

BlobsOrErr returns the Blobs value or an error if the edge was not loaded in eager-loading.

func (HPAmebloPostEdges) OwnerArtistOrErr

func (e HPAmebloPostEdges) OwnerArtistOrErr() (*HPArtist, error)

OwnerArtistOrErr returns the OwnerArtist value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPAmebloPostEdges) OwnerMemberOrErr

func (e HPAmebloPostEdges) OwnerMemberOrErr() (*HPMember, error)

OwnerMemberOrErr returns the OwnerMember value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPAmebloPostEdges) TaggedArtistsOrErr

func (e HPAmebloPostEdges) TaggedArtistsOrErr() ([]*HPArtist, error)

TaggedArtistsOrErr returns the TaggedArtists value or an error if the edge was not loaded in eager-loading.

func (HPAmebloPostEdges) TaggedMembersOrErr

func (e HPAmebloPostEdges) TaggedMembersOrErr() ([]*HPMember, error)

TaggedMembersOrErr returns the TaggedMembers value or an error if the edge was not loaded in eager-loading.

type HPAmebloPostFilter

HPAmebloPostFilter provides a generic filtering capability at runtime for HPAmebloPostQuery.

type HPAmebloPostFilter struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostFilter) Where

func (f *HPAmebloPostFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPAmebloPostFilter) WhereArtistKey

func (f *HPAmebloPostFilter) WhereArtistKey(p entql.StringP)

WhereArtistKey applies the entql string predicate on the artist_key field.

func (*HPAmebloPostFilter) WhereComments

func (f *HPAmebloPostFilter) WhereComments(p entql.IntP)

WhereComments applies the entql int predicate on the comments field.

func (*HPAmebloPostFilter) WhereCrawledAt

func (f *HPAmebloPostFilter) WhereCrawledAt(p entql.TimeP)

WhereCrawledAt applies the entql time.Time predicate on the crawled_at field.

func (*HPAmebloPostFilter) WhereCreatedAt

func (f *HPAmebloPostFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPAmebloPostFilter) WhereDescription

func (f *HPAmebloPostFilter) WhereDescription(p entql.StringP)

WhereDescription applies the entql string predicate on the description field.

func (*HPAmebloPostFilter) WhereErrorCount

func (f *HPAmebloPostFilter) WhereErrorCount(p entql.IntP)

WhereErrorCount applies the entql int predicate on the error_count field.

func (*HPAmebloPostFilter) WhereHasAsset

func (f *HPAmebloPostFilter) WhereHasAsset()

WhereHasAsset applies a predicate to check if query has an edge asset.

func (*HPAmebloPostFilter) WhereHasAssetWith

func (f *HPAmebloPostFilter) WhereHasAssetWith(preds ...predicate.HPAsset)

WhereHasAssetWith applies a predicate to check if query has an edge asset with a given conditions (other predicates).

func (*HPAmebloPostFilter) WhereHasBlobs

func (f *HPAmebloPostFilter) WhereHasBlobs()

WhereHasBlobs applies a predicate to check if query has an edge blobs.

func (*HPAmebloPostFilter) WhereHasBlobsWith

func (f *HPAmebloPostFilter) WhereHasBlobsWith(preds ...predicate.HPBlob)

WhereHasBlobsWith applies a predicate to check if query has an edge blobs with a given conditions (other predicates).

func (*HPAmebloPostFilter) WhereHasOwnerArtist

func (f *HPAmebloPostFilter) WhereHasOwnerArtist()

WhereHasOwnerArtist applies a predicate to check if query has an edge owner_artist.

func (*HPAmebloPostFilter) WhereHasOwnerArtistWith

func (f *HPAmebloPostFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)

WhereHasOwnerArtistWith applies a predicate to check if query has an edge owner_artist with a given conditions (other predicates).

func (*HPAmebloPostFilter) WhereHasOwnerMember

func (f *HPAmebloPostFilter) WhereHasOwnerMember()

WhereHasOwnerMember applies a predicate to check if query has an edge owner_member.

func (*HPAmebloPostFilter) WhereHasOwnerMemberWith

func (f *HPAmebloPostFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)

WhereHasOwnerMemberWith applies a predicate to check if query has an edge owner_member with a given conditions (other predicates).

func (*HPAmebloPostFilter) WhereHasTaggedArtists

func (f *HPAmebloPostFilter) WhereHasTaggedArtists()

WhereHasTaggedArtists applies a predicate to check if query has an edge tagged_artists.

func (*HPAmebloPostFilter) WhereHasTaggedArtistsWith

func (f *HPAmebloPostFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)

WhereHasTaggedArtistsWith applies a predicate to check if query has an edge tagged_artists with a given conditions (other predicates).

func (*HPAmebloPostFilter) WhereHasTaggedMembers

func (f *HPAmebloPostFilter) WhereHasTaggedMembers()

WhereHasTaggedMembers applies a predicate to check if query has an edge tagged_members.

func (*HPAmebloPostFilter) WhereHasTaggedMembersWith

func (f *HPAmebloPostFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)

WhereHasTaggedMembersWith applies a predicate to check if query has an edge tagged_members with a given conditions (other predicates).

func (*HPAmebloPostFilter) WhereID

func (f *HPAmebloPostFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPAmebloPostFilter) WhereImages

func (f *HPAmebloPostFilter) WhereImages(p entql.BytesP)

WhereImages applies the entql json.RawMessage predicate on the images field.

func (*HPAmebloPostFilter) WhereLastErrorMessage

func (f *HPAmebloPostFilter) WhereLastErrorMessage(p entql.StringP)

WhereLastErrorMessage applies the entql string predicate on the last_error_message field.

func (*HPAmebloPostFilter) WhereLikes

func (f *HPAmebloPostFilter) WhereLikes(p entql.IntP)

WhereLikes applies the entql int predicate on the likes field.

func (*HPAmebloPostFilter) WhereManuallyModified

func (f *HPAmebloPostFilter) WhereManuallyModified(p entql.BytesP)

WhereManuallyModified applies the entql json.RawMessage predicate on the manually_modified field.

func (*HPAmebloPostFilter) WhereMemberKey

func (f *HPAmebloPostFilter) WhereMemberKey(p entql.StringP)

WhereMemberKey applies the entql string predicate on the member_key field.

func (*HPAmebloPostFilter) WhereNextPath

func (f *HPAmebloPostFilter) WhereNextPath(p entql.StringP)

WhereNextPath applies the entql string predicate on the next_path field.

func (*HPAmebloPostFilter) WhereOwnerArtistID

func (f *HPAmebloPostFilter) WhereOwnerArtistID(p entql.IntP)

WhereOwnerArtistID applies the entql int predicate on the owner_artist_id field.

func (*HPAmebloPostFilter) WhereOwnerMemberID

func (f *HPAmebloPostFilter) WhereOwnerMemberID(p entql.IntP)

WhereOwnerMemberID applies the entql int predicate on the owner_member_id field.

func (*HPAmebloPostFilter) WherePath

func (f *HPAmebloPostFilter) WherePath(p entql.StringP)

WherePath applies the entql string predicate on the path field.

func (*HPAmebloPostFilter) WherePostAt

func (f *HPAmebloPostFilter) WherePostAt(p entql.TimeP)

WherePostAt applies the entql time.Time predicate on the post_at field.

func (*HPAmebloPostFilter) WherePrevPath

func (f *HPAmebloPostFilter) WherePrevPath(p entql.StringP)

WherePrevPath applies the entql string predicate on the prev_path field.

func (*HPAmebloPostFilter) WhereReblogs

func (f *HPAmebloPostFilter) WhereReblogs(p entql.IntP)

WhereReblogs applies the entql int predicate on the reblogs field.

func (*HPAmebloPostFilter) WhereRecrawlRequired

func (f *HPAmebloPostFilter) WhereRecrawlRequired(p entql.BoolP)

WhereRecrawlRequired applies the entql bool predicate on the recrawl_required field.

func (*HPAmebloPostFilter) WhereSource

func (f *HPAmebloPostFilter) WhereSource(p entql.StringP)

WhereSource applies the entql string predicate on the source field.

func (*HPAmebloPostFilter) WhereTheme

func (f *HPAmebloPostFilter) WhereTheme(p entql.StringP)

WhereTheme applies the entql string predicate on the theme field.

func (*HPAmebloPostFilter) WhereTitle

func (f *HPAmebloPostFilter) WhereTitle(p entql.StringP)

WhereTitle applies the entql string predicate on the title field.

func (*HPAmebloPostFilter) WhereUpdatedAt

func (f *HPAmebloPostFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPAmebloPostGroupBy

HPAmebloPostGroupBy is the group-by builder for HPAmebloPost entities.

type HPAmebloPostGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostGroupBy) Aggregate

func (hapgb *HPAmebloPostGroupBy) Aggregate(fns ...AggregateFunc) *HPAmebloPostGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPAmebloPostGroupBy) Bool

func (s *HPAmebloPostGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) BoolX

func (s *HPAmebloPostGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPAmebloPostGroupBy) Bools

func (s *HPAmebloPostGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) BoolsX

func (s *HPAmebloPostGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPAmebloPostGroupBy) Float64

func (s *HPAmebloPostGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) Float64X

func (s *HPAmebloPostGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPAmebloPostGroupBy) Float64s

func (s *HPAmebloPostGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) Float64sX

func (s *HPAmebloPostGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPAmebloPostGroupBy) Int

func (s *HPAmebloPostGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) IntX

func (s *HPAmebloPostGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPAmebloPostGroupBy) Ints

func (s *HPAmebloPostGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) IntsX

func (s *HPAmebloPostGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPAmebloPostGroupBy) Scan

func (hapgb *HPAmebloPostGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPAmebloPostGroupBy) ScanX

func (s *HPAmebloPostGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPAmebloPostGroupBy) String

func (s *HPAmebloPostGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) StringX

func (s *HPAmebloPostGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPAmebloPostGroupBy) Strings

func (s *HPAmebloPostGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostGroupBy) StringsX

func (s *HPAmebloPostGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPAmebloPostMutation

HPAmebloPostMutation represents an operation that mutates the HPAmebloPost nodes in the graph.

type HPAmebloPostMutation struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostMutation) AddBlobIDs

func (m *HPAmebloPostMutation) AddBlobIDs(ids ...int)

AddBlobIDs adds the "blobs" edge to the HPBlob entity by ids.

func (*HPAmebloPostMutation) AddComments

func (m *HPAmebloPostMutation) AddComments(i int)

AddComments adds i to the "comments" field.

func (*HPAmebloPostMutation) AddErrorCount

func (m *HPAmebloPostMutation) AddErrorCount(i int)

AddErrorCount adds i to the "error_count" field.

func (*HPAmebloPostMutation) AddField

func (m *HPAmebloPostMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPAmebloPostMutation) AddLikes

func (m *HPAmebloPostMutation) AddLikes(i int)

AddLikes adds i to the "likes" field.

func (*HPAmebloPostMutation) AddReblogs

func (m *HPAmebloPostMutation) AddReblogs(i int)

AddReblogs adds i to the "reblogs" field.

func (*HPAmebloPostMutation) AddTaggedArtistIDs

func (m *HPAmebloPostMutation) AddTaggedArtistIDs(ids ...int)

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by ids.

func (*HPAmebloPostMutation) AddTaggedMemberIDs

func (m *HPAmebloPostMutation) AddTaggedMemberIDs(ids ...int)

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by ids.

func (*HPAmebloPostMutation) AddedComments

func (m *HPAmebloPostMutation) AddedComments() (r int, exists bool)

AddedComments returns the value that was added to the "comments" field in this mutation.

func (*HPAmebloPostMutation) AddedEdges

func (m *HPAmebloPostMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPAmebloPostMutation) AddedErrorCount

func (m *HPAmebloPostMutation) AddedErrorCount() (r int, exists bool)

AddedErrorCount returns the value that was added to the "error_count" field in this mutation.

func (*HPAmebloPostMutation) AddedField

func (m *HPAmebloPostMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPAmebloPostMutation) AddedFields

func (m *HPAmebloPostMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPAmebloPostMutation) AddedIDs

func (m *HPAmebloPostMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPAmebloPostMutation) AddedLikes

func (m *HPAmebloPostMutation) AddedLikes() (r int, exists bool)

AddedLikes returns the value that was added to the "likes" field in this mutation.

func (*HPAmebloPostMutation) AddedReblogs

func (m *HPAmebloPostMutation) AddedReblogs() (r int, exists bool)

AddedReblogs returns the value that was added to the "reblogs" field in this mutation.

func (*HPAmebloPostMutation) AppendImages

func (m *HPAmebloPostMutation) AppendImages(j []jsonfields.Media)

AppendImages adds j to the "images" field.

func (*HPAmebloPostMutation) AppendedImages

func (m *HPAmebloPostMutation) AppendedImages() ([]jsonfields.Media, bool)

AppendedImages returns the list of values that were appended to the "images" field in this mutation.

func (*HPAmebloPostMutation) ArtistKey

func (m *HPAmebloPostMutation) ArtistKey() (r string, exists bool)

ArtistKey returns the value of the "artist_key" field in the mutation.

func (*HPAmebloPostMutation) AssetCleared

func (m *HPAmebloPostMutation) AssetCleared() bool

AssetCleared reports if the "asset" edge to the HPAsset entity was cleared.

func (*HPAmebloPostMutation) AssetID

func (m *HPAmebloPostMutation) AssetID() (id int, exists bool)

AssetID returns the "asset" edge ID in the mutation.

func (*HPAmebloPostMutation) AssetIDs

func (m *HPAmebloPostMutation) AssetIDs() (ids []int)

AssetIDs returns the "asset" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use AssetID instead. It exists only for internal usage by the builders.

func (*HPAmebloPostMutation) BlobsCleared

func (m *HPAmebloPostMutation) BlobsCleared() bool

BlobsCleared reports if the "blobs" edge to the HPBlob entity was cleared.

func (*HPAmebloPostMutation) BlobsIDs

func (m *HPAmebloPostMutation) BlobsIDs() (ids []int)

BlobsIDs returns the "blobs" edge IDs in the mutation.

func (*HPAmebloPostMutation) ClearAsset

func (m *HPAmebloPostMutation) ClearAsset()

ClearAsset clears the "asset" edge to the HPAsset entity.

func (*HPAmebloPostMutation) ClearBlobs

func (m *HPAmebloPostMutation) ClearBlobs()

ClearBlobs clears the "blobs" edge to the HPBlob entity.

func (*HPAmebloPostMutation) ClearComments

func (m *HPAmebloPostMutation) ClearComments()

ClearComments clears the value of the "comments" field.

func (*HPAmebloPostMutation) ClearCrawledAt

func (m *HPAmebloPostMutation) ClearCrawledAt()

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPAmebloPostMutation) ClearCreatedAt

func (m *HPAmebloPostMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPAmebloPostMutation) ClearEdge

func (m *HPAmebloPostMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPAmebloPostMutation) ClearField

func (m *HPAmebloPostMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPAmebloPostMutation) ClearImages

func (m *HPAmebloPostMutation) ClearImages()

ClearImages clears the value of the "images" field.

func (*HPAmebloPostMutation) ClearLastErrorMessage

func (m *HPAmebloPostMutation) ClearLastErrorMessage()

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPAmebloPostMutation) ClearLikes

func (m *HPAmebloPostMutation) ClearLikes()

ClearLikes clears the value of the "likes" field.

func (*HPAmebloPostMutation) ClearManuallyModified

func (m *HPAmebloPostMutation) ClearManuallyModified()

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPAmebloPostMutation) ClearMemberKey

func (m *HPAmebloPostMutation) ClearMemberKey()

ClearMemberKey clears the value of the "member_key" field.

func (*HPAmebloPostMutation) ClearNextPath

func (m *HPAmebloPostMutation) ClearNextPath()

ClearNextPath clears the value of the "next_path" field.

func (*HPAmebloPostMutation) ClearOwnerArtist

func (m *HPAmebloPostMutation) ClearOwnerArtist()

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPAmebloPostMutation) ClearOwnerArtistID

func (m *HPAmebloPostMutation) ClearOwnerArtistID()

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPAmebloPostMutation) ClearOwnerMember

func (m *HPAmebloPostMutation) ClearOwnerMember()

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPAmebloPostMutation) ClearOwnerMemberID

func (m *HPAmebloPostMutation) ClearOwnerMemberID()

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPAmebloPostMutation) ClearPrevPath

func (m *HPAmebloPostMutation) ClearPrevPath()

ClearPrevPath clears the value of the "prev_path" field.

func (*HPAmebloPostMutation) ClearReblogs

func (m *HPAmebloPostMutation) ClearReblogs()

ClearReblogs clears the value of the "reblogs" field.

func (*HPAmebloPostMutation) ClearRecrawlRequired

func (m *HPAmebloPostMutation) ClearRecrawlRequired()

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPAmebloPostMutation) ClearTaggedArtists

func (m *HPAmebloPostMutation) ClearTaggedArtists()

ClearTaggedArtists clears the "tagged_artists" edge to the HPArtist entity.

func (*HPAmebloPostMutation) ClearTaggedMembers

func (m *HPAmebloPostMutation) ClearTaggedMembers()

ClearTaggedMembers clears the "tagged_members" edge to the HPMember entity.

func (*HPAmebloPostMutation) ClearTheme

func (m *HPAmebloPostMutation) ClearTheme()

ClearTheme clears the value of the "theme" field.

func (*HPAmebloPostMutation) ClearUpdatedAt

func (m *HPAmebloPostMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPAmebloPostMutation) ClearedEdges

func (m *HPAmebloPostMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPAmebloPostMutation) ClearedFields

func (m *HPAmebloPostMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPAmebloPostMutation) Client

func (m HPAmebloPostMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPAmebloPostMutation) Comments

func (m *HPAmebloPostMutation) Comments() (r int, exists bool)

Comments returns the value of the "comments" field in the mutation.

func (*HPAmebloPostMutation) CommentsCleared

func (m *HPAmebloPostMutation) CommentsCleared() bool

CommentsCleared returns if the "comments" field was cleared in this mutation.

func (*HPAmebloPostMutation) CrawledAt

func (m *HPAmebloPostMutation) CrawledAt() (r time.Time, exists bool)

CrawledAt returns the value of the "crawled_at" field in the mutation.

func (*HPAmebloPostMutation) CrawledAtCleared

func (m *HPAmebloPostMutation) CrawledAtCleared() bool

CrawledAtCleared returns if the "crawled_at" field was cleared in this mutation.

func (*HPAmebloPostMutation) CreatedAt

func (m *HPAmebloPostMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPAmebloPostMutation) CreatedAtCleared

func (m *HPAmebloPostMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPAmebloPostMutation) Description

func (m *HPAmebloPostMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*HPAmebloPostMutation) EdgeCleared

func (m *HPAmebloPostMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPAmebloPostMutation) ErrorCount

func (m *HPAmebloPostMutation) ErrorCount() (r int, exists bool)

ErrorCount returns the value of the "error_count" field in the mutation.

func (*HPAmebloPostMutation) Field

func (m *HPAmebloPostMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPAmebloPostMutation) FieldCleared

func (m *HPAmebloPostMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPAmebloPostMutation) Fields

func (m *HPAmebloPostMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPAmebloPostMutation) Filter

func (m *HPAmebloPostMutation) Filter() *HPAmebloPostFilter

Filter returns an entql.Where implementation to apply filters on the HPAmebloPostMutation builder.

func (*HPAmebloPostMutation) ID

func (m *HPAmebloPostMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPAmebloPostMutation) IDs

func (m *HPAmebloPostMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPAmebloPostMutation) Images

func (m *HPAmebloPostMutation) Images() (r []jsonfields.Media, exists bool)

Images returns the value of the "images" field in the mutation.

func (*HPAmebloPostMutation) ImagesCleared

func (m *HPAmebloPostMutation) ImagesCleared() bool

ImagesCleared returns if the "images" field was cleared in this mutation.

func (*HPAmebloPostMutation) LastErrorMessage

func (m *HPAmebloPostMutation) LastErrorMessage() (r string, exists bool)

LastErrorMessage returns the value of the "last_error_message" field in the mutation.

func (*HPAmebloPostMutation) LastErrorMessageCleared

func (m *HPAmebloPostMutation) LastErrorMessageCleared() bool

LastErrorMessageCleared returns if the "last_error_message" field was cleared in this mutation.

func (*HPAmebloPostMutation) Likes

func (m *HPAmebloPostMutation) Likes() (r int, exists bool)

Likes returns the value of the "likes" field in the mutation.

func (*HPAmebloPostMutation) LikesCleared

func (m *HPAmebloPostMutation) LikesCleared() bool

LikesCleared returns if the "likes" field was cleared in this mutation.

func (*HPAmebloPostMutation) ManuallyModified

func (m *HPAmebloPostMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)

ManuallyModified returns the value of the "manually_modified" field in the mutation.

func (*HPAmebloPostMutation) ManuallyModifiedCleared

func (m *HPAmebloPostMutation) ManuallyModifiedCleared() bool

ManuallyModifiedCleared returns if the "manually_modified" field was cleared in this mutation.

func (*HPAmebloPostMutation) MemberKey

func (m *HPAmebloPostMutation) MemberKey() (r string, exists bool)

MemberKey returns the value of the "member_key" field in the mutation.

func (*HPAmebloPostMutation) MemberKeyCleared

func (m *HPAmebloPostMutation) MemberKeyCleared() bool

MemberKeyCleared returns if the "member_key" field was cleared in this mutation.

func (*HPAmebloPostMutation) NextPath

func (m *HPAmebloPostMutation) NextPath() (r string, exists bool)

NextPath returns the value of the "next_path" field in the mutation.

func (*HPAmebloPostMutation) NextPathCleared

func (m *HPAmebloPostMutation) NextPathCleared() bool

NextPathCleared returns if the "next_path" field was cleared in this mutation.

func (*HPAmebloPostMutation) OldArtistKey

func (m *HPAmebloPostMutation) OldArtistKey(ctx context.Context) (v string, err error)

OldArtistKey returns the old "artist_key" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldComments

func (m *HPAmebloPostMutation) OldComments(ctx context.Context) (v *int, err error)

OldComments returns the old "comments" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldCrawledAt

func (m *HPAmebloPostMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)

OldCrawledAt returns the old "crawled_at" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldCreatedAt

func (m *HPAmebloPostMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldDescription

func (m *HPAmebloPostMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldErrorCount

func (m *HPAmebloPostMutation) OldErrorCount(ctx context.Context) (v int, err error)

OldErrorCount returns the old "error_count" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldField

func (m *HPAmebloPostMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPAmebloPostMutation) OldImages

func (m *HPAmebloPostMutation) OldImages(ctx context.Context) (v []jsonfields.Media, err error)

OldImages returns the old "images" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldLastErrorMessage

func (m *HPAmebloPostMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)

OldLastErrorMessage returns the old "last_error_message" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldLikes

func (m *HPAmebloPostMutation) OldLikes(ctx context.Context) (v *int, err error)

OldLikes returns the old "likes" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldManuallyModified

func (m *HPAmebloPostMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)

OldManuallyModified returns the old "manually_modified" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldMemberKey

func (m *HPAmebloPostMutation) OldMemberKey(ctx context.Context) (v *string, err error)

OldMemberKey returns the old "member_key" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldNextPath

func (m *HPAmebloPostMutation) OldNextPath(ctx context.Context) (v *string, err error)

OldNextPath returns the old "next_path" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldOwnerArtistID

func (m *HPAmebloPostMutation) OldOwnerArtistID(ctx context.Context) (v *int, err error)

OldOwnerArtistID returns the old "owner_artist_id" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldOwnerMemberID

func (m *HPAmebloPostMutation) OldOwnerMemberID(ctx context.Context) (v *int, err error)

OldOwnerMemberID returns the old "owner_member_id" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldPath

func (m *HPAmebloPostMutation) OldPath(ctx context.Context) (v string, err error)

OldPath returns the old "path" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldPostAt

func (m *HPAmebloPostMutation) OldPostAt(ctx context.Context) (v time.Time, err error)

OldPostAt returns the old "post_at" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldPrevPath

func (m *HPAmebloPostMutation) OldPrevPath(ctx context.Context) (v *string, err error)

OldPrevPath returns the old "prev_path" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldReblogs

func (m *HPAmebloPostMutation) OldReblogs(ctx context.Context) (v *int, err error)

OldReblogs returns the old "reblogs" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldRecrawlRequired

func (m *HPAmebloPostMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)

OldRecrawlRequired returns the old "recrawl_required" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldSource

func (m *HPAmebloPostMutation) OldSource(ctx context.Context) (v hpameblopost.Source, err error)

OldSource returns the old "source" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldTheme

func (m *HPAmebloPostMutation) OldTheme(ctx context.Context) (v *string, err error)

OldTheme returns the old "theme" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldTitle

func (m *HPAmebloPostMutation) OldTitle(ctx context.Context) (v string, err error)

OldTitle returns the old "title" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) OldUpdatedAt

func (m *HPAmebloPostMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPAmebloPost entity. If the HPAmebloPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAmebloPostMutation) Op

func (m *HPAmebloPostMutation) Op() Op

Op returns the operation name.

func (*HPAmebloPostMutation) OwnerArtistCleared

func (m *HPAmebloPostMutation) OwnerArtistCleared() bool

OwnerArtistCleared reports if the "owner_artist" edge to the HPArtist entity was cleared.

func (*HPAmebloPostMutation) OwnerArtistID

func (m *HPAmebloPostMutation) OwnerArtistID() (r int, exists bool)

OwnerArtistID returns the value of the "owner_artist_id" field in the mutation.

func (*HPAmebloPostMutation) OwnerArtistIDCleared

func (m *HPAmebloPostMutation) OwnerArtistIDCleared() bool

OwnerArtistIDCleared returns if the "owner_artist_id" field was cleared in this mutation.

func (*HPAmebloPostMutation) OwnerArtistIDs

func (m *HPAmebloPostMutation) OwnerArtistIDs() (ids []int)

OwnerArtistIDs returns the "owner_artist" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerArtistID instead. It exists only for internal usage by the builders.

func (*HPAmebloPostMutation) OwnerMemberCleared

func (m *HPAmebloPostMutation) OwnerMemberCleared() bool

OwnerMemberCleared reports if the "owner_member" edge to the HPMember entity was cleared.

func (*HPAmebloPostMutation) OwnerMemberID

func (m *HPAmebloPostMutation) OwnerMemberID() (r int, exists bool)

OwnerMemberID returns the value of the "owner_member_id" field in the mutation.

func (*HPAmebloPostMutation) OwnerMemberIDCleared

func (m *HPAmebloPostMutation) OwnerMemberIDCleared() bool

OwnerMemberIDCleared returns if the "owner_member_id" field was cleared in this mutation.

func (*HPAmebloPostMutation) OwnerMemberIDs

func (m *HPAmebloPostMutation) OwnerMemberIDs() (ids []int)

OwnerMemberIDs returns the "owner_member" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerMemberID instead. It exists only for internal usage by the builders.

func (*HPAmebloPostMutation) Path

func (m *HPAmebloPostMutation) Path() (r string, exists bool)

Path returns the value of the "path" field in the mutation.

func (*HPAmebloPostMutation) PostAt

func (m *HPAmebloPostMutation) PostAt() (r time.Time, exists bool)

PostAt returns the value of the "post_at" field in the mutation.

func (*HPAmebloPostMutation) PrevPath

func (m *HPAmebloPostMutation) PrevPath() (r string, exists bool)

PrevPath returns the value of the "prev_path" field in the mutation.

func (*HPAmebloPostMutation) PrevPathCleared

func (m *HPAmebloPostMutation) PrevPathCleared() bool

PrevPathCleared returns if the "prev_path" field was cleared in this mutation.

func (*HPAmebloPostMutation) Reblogs

func (m *HPAmebloPostMutation) Reblogs() (r int, exists bool)

Reblogs returns the value of the "reblogs" field in the mutation.

func (*HPAmebloPostMutation) ReblogsCleared

func (m *HPAmebloPostMutation) ReblogsCleared() bool

ReblogsCleared returns if the "reblogs" field was cleared in this mutation.

func (*HPAmebloPostMutation) RecrawlRequired

func (m *HPAmebloPostMutation) RecrawlRequired() (r bool, exists bool)

RecrawlRequired returns the value of the "recrawl_required" field in the mutation.

func (*HPAmebloPostMutation) RecrawlRequiredCleared

func (m *HPAmebloPostMutation) RecrawlRequiredCleared() bool

RecrawlRequiredCleared returns if the "recrawl_required" field was cleared in this mutation.

func (*HPAmebloPostMutation) RemoveBlobIDs

func (m *HPAmebloPostMutation) RemoveBlobIDs(ids ...int)

RemoveBlobIDs removes the "blobs" edge to the HPBlob entity by IDs.

func (*HPAmebloPostMutation) RemoveTaggedArtistIDs

func (m *HPAmebloPostMutation) RemoveTaggedArtistIDs(ids ...int)

RemoveTaggedArtistIDs removes the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPAmebloPostMutation) RemoveTaggedMemberIDs

func (m *HPAmebloPostMutation) RemoveTaggedMemberIDs(ids ...int)

RemoveTaggedMemberIDs removes the "tagged_members" edge to the HPMember entity by IDs.

func (*HPAmebloPostMutation) RemovedBlobsIDs

func (m *HPAmebloPostMutation) RemovedBlobsIDs() (ids []int)

RemovedBlobs returns the removed IDs of the "blobs" edge to the HPBlob entity.

func (*HPAmebloPostMutation) RemovedEdges

func (m *HPAmebloPostMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPAmebloPostMutation) RemovedIDs

func (m *HPAmebloPostMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPAmebloPostMutation) RemovedTaggedArtistsIDs

func (m *HPAmebloPostMutation) RemovedTaggedArtistsIDs() (ids []int)

RemovedTaggedArtists returns the removed IDs of the "tagged_artists" edge to the HPArtist entity.

func (*HPAmebloPostMutation) RemovedTaggedMembersIDs

func (m *HPAmebloPostMutation) RemovedTaggedMembersIDs() (ids []int)

RemovedTaggedMembers returns the removed IDs of the "tagged_members" edge to the HPMember entity.

func (*HPAmebloPostMutation) ResetArtistKey

func (m *HPAmebloPostMutation) ResetArtistKey()

ResetArtistKey resets all changes to the "artist_key" field.

func (*HPAmebloPostMutation) ResetAsset

func (m *HPAmebloPostMutation) ResetAsset()

ResetAsset resets all changes to the "asset" edge.

func (*HPAmebloPostMutation) ResetBlobs

func (m *HPAmebloPostMutation) ResetBlobs()

ResetBlobs resets all changes to the "blobs" edge.

func (*HPAmebloPostMutation) ResetComments

func (m *HPAmebloPostMutation) ResetComments()

ResetComments resets all changes to the "comments" field.

func (*HPAmebloPostMutation) ResetCrawledAt

func (m *HPAmebloPostMutation) ResetCrawledAt()

ResetCrawledAt resets all changes to the "crawled_at" field.

func (*HPAmebloPostMutation) ResetCreatedAt

func (m *HPAmebloPostMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPAmebloPostMutation) ResetDescription

func (m *HPAmebloPostMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*HPAmebloPostMutation) ResetEdge

func (m *HPAmebloPostMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPAmebloPostMutation) ResetErrorCount

func (m *HPAmebloPostMutation) ResetErrorCount()

ResetErrorCount resets all changes to the "error_count" field.

func (*HPAmebloPostMutation) ResetField

func (m *HPAmebloPostMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPAmebloPostMutation) ResetImages

func (m *HPAmebloPostMutation) ResetImages()

ResetImages resets all changes to the "images" field.

func (*HPAmebloPostMutation) ResetLastErrorMessage

func (m *HPAmebloPostMutation) ResetLastErrorMessage()

ResetLastErrorMessage resets all changes to the "last_error_message" field.

func (*HPAmebloPostMutation) ResetLikes

func (m *HPAmebloPostMutation) ResetLikes()

ResetLikes resets all changes to the "likes" field.

func (*HPAmebloPostMutation) ResetManuallyModified

func (m *HPAmebloPostMutation) ResetManuallyModified()

ResetManuallyModified resets all changes to the "manually_modified" field.

func (*HPAmebloPostMutation) ResetMemberKey

func (m *HPAmebloPostMutation) ResetMemberKey()

ResetMemberKey resets all changes to the "member_key" field.

func (*HPAmebloPostMutation) ResetNextPath

func (m *HPAmebloPostMutation) ResetNextPath()

ResetNextPath resets all changes to the "next_path" field.

func (*HPAmebloPostMutation) ResetOwnerArtist

func (m *HPAmebloPostMutation) ResetOwnerArtist()

ResetOwnerArtist resets all changes to the "owner_artist" edge.

func (*HPAmebloPostMutation) ResetOwnerArtistID

func (m *HPAmebloPostMutation) ResetOwnerArtistID()

ResetOwnerArtistID resets all changes to the "owner_artist_id" field.

func (*HPAmebloPostMutation) ResetOwnerMember

func (m *HPAmebloPostMutation) ResetOwnerMember()

ResetOwnerMember resets all changes to the "owner_member" edge.

func (*HPAmebloPostMutation) ResetOwnerMemberID

func (m *HPAmebloPostMutation) ResetOwnerMemberID()

ResetOwnerMemberID resets all changes to the "owner_member_id" field.

func (*HPAmebloPostMutation) ResetPath

func (m *HPAmebloPostMutation) ResetPath()

ResetPath resets all changes to the "path" field.

func (*HPAmebloPostMutation) ResetPostAt

func (m *HPAmebloPostMutation) ResetPostAt()

ResetPostAt resets all changes to the "post_at" field.

func (*HPAmebloPostMutation) ResetPrevPath

func (m *HPAmebloPostMutation) ResetPrevPath()

ResetPrevPath resets all changes to the "prev_path" field.

func (*HPAmebloPostMutation) ResetReblogs

func (m *HPAmebloPostMutation) ResetReblogs()

ResetReblogs resets all changes to the "reblogs" field.

func (*HPAmebloPostMutation) ResetRecrawlRequired

func (m *HPAmebloPostMutation) ResetRecrawlRequired()

ResetRecrawlRequired resets all changes to the "recrawl_required" field.

func (*HPAmebloPostMutation) ResetSource

func (m *HPAmebloPostMutation) ResetSource()

ResetSource resets all changes to the "source" field.

func (*HPAmebloPostMutation) ResetTaggedArtists

func (m *HPAmebloPostMutation) ResetTaggedArtists()

ResetTaggedArtists resets all changes to the "tagged_artists" edge.

func (*HPAmebloPostMutation) ResetTaggedMembers

func (m *HPAmebloPostMutation) ResetTaggedMembers()

ResetTaggedMembers resets all changes to the "tagged_members" edge.

func (*HPAmebloPostMutation) ResetTheme

func (m *HPAmebloPostMutation) ResetTheme()

ResetTheme resets all changes to the "theme" field.

func (*HPAmebloPostMutation) ResetTitle

func (m *HPAmebloPostMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*HPAmebloPostMutation) ResetUpdatedAt

func (m *HPAmebloPostMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPAmebloPostMutation) SetArtistKey

func (m *HPAmebloPostMutation) SetArtistKey(s string)

SetArtistKey sets the "artist_key" field.

func (*HPAmebloPostMutation) SetAssetID

func (m *HPAmebloPostMutation) SetAssetID(id int)

SetAssetID sets the "asset" edge to the HPAsset entity by id.

func (*HPAmebloPostMutation) SetComments

func (m *HPAmebloPostMutation) SetComments(i int)

SetComments sets the "comments" field.

func (*HPAmebloPostMutation) SetCrawledAt

func (m *HPAmebloPostMutation) SetCrawledAt(t time.Time)

SetCrawledAt sets the "crawled_at" field.

func (*HPAmebloPostMutation) SetCreatedAt

func (m *HPAmebloPostMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPAmebloPostMutation) SetDescription

func (m *HPAmebloPostMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*HPAmebloPostMutation) SetErrorCount

func (m *HPAmebloPostMutation) SetErrorCount(i int)

SetErrorCount sets the "error_count" field.

func (*HPAmebloPostMutation) SetField

func (m *HPAmebloPostMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPAmebloPostMutation) SetImages

func (m *HPAmebloPostMutation) SetImages(j []jsonfields.Media)

SetImages sets the "images" field.

func (*HPAmebloPostMutation) SetLastErrorMessage

func (m *HPAmebloPostMutation) SetLastErrorMessage(s string)

SetLastErrorMessage sets the "last_error_message" field.

func (*HPAmebloPostMutation) SetLikes

func (m *HPAmebloPostMutation) SetLikes(i int)

SetLikes sets the "likes" field.

func (*HPAmebloPostMutation) SetManuallyModified

func (m *HPAmebloPostMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)

SetManuallyModified sets the "manually_modified" field.

func (*HPAmebloPostMutation) SetMemberKey

func (m *HPAmebloPostMutation) SetMemberKey(s string)

SetMemberKey sets the "member_key" field.

func (*HPAmebloPostMutation) SetNextPath

func (m *HPAmebloPostMutation) SetNextPath(s string)

SetNextPath sets the "next_path" field.

func (*HPAmebloPostMutation) SetOp

func (m *HPAmebloPostMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPAmebloPostMutation) SetOwnerArtistID

func (m *HPAmebloPostMutation) SetOwnerArtistID(i int)

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPAmebloPostMutation) SetOwnerMemberID

func (m *HPAmebloPostMutation) SetOwnerMemberID(i int)

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPAmebloPostMutation) SetPath

func (m *HPAmebloPostMutation) SetPath(s string)

SetPath sets the "path" field.

func (*HPAmebloPostMutation) SetPostAt

func (m *HPAmebloPostMutation) SetPostAt(t time.Time)

SetPostAt sets the "post_at" field.

func (*HPAmebloPostMutation) SetPrevPath

func (m *HPAmebloPostMutation) SetPrevPath(s string)

SetPrevPath sets the "prev_path" field.

func (*HPAmebloPostMutation) SetReblogs

func (m *HPAmebloPostMutation) SetReblogs(i int)

SetReblogs sets the "reblogs" field.

func (*HPAmebloPostMutation) SetRecrawlRequired

func (m *HPAmebloPostMutation) SetRecrawlRequired(b bool)

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPAmebloPostMutation) SetSource

func (m *HPAmebloPostMutation) SetSource(h hpameblopost.Source)

SetSource sets the "source" field.

func (*HPAmebloPostMutation) SetTheme

func (m *HPAmebloPostMutation) SetTheme(s string)

SetTheme sets the "theme" field.

func (*HPAmebloPostMutation) SetTitle

func (m *HPAmebloPostMutation) SetTitle(s string)

SetTitle sets the "title" field.

func (*HPAmebloPostMutation) SetUpdatedAt

func (m *HPAmebloPostMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPAmebloPostMutation) Source

func (m *HPAmebloPostMutation) Source() (r hpameblopost.Source, exists bool)

Source returns the value of the "source" field in the mutation.

func (*HPAmebloPostMutation) TaggedArtistsCleared

func (m *HPAmebloPostMutation) TaggedArtistsCleared() bool

TaggedArtistsCleared reports if the "tagged_artists" edge to the HPArtist entity was cleared.

func (*HPAmebloPostMutation) TaggedArtistsIDs

func (m *HPAmebloPostMutation) TaggedArtistsIDs() (ids []int)

TaggedArtistsIDs returns the "tagged_artists" edge IDs in the mutation.

func (*HPAmebloPostMutation) TaggedMembersCleared

func (m *HPAmebloPostMutation) TaggedMembersCleared() bool

TaggedMembersCleared reports if the "tagged_members" edge to the HPMember entity was cleared.

func (*HPAmebloPostMutation) TaggedMembersIDs

func (m *HPAmebloPostMutation) TaggedMembersIDs() (ids []int)

TaggedMembersIDs returns the "tagged_members" edge IDs in the mutation.

func (*HPAmebloPostMutation) Theme

func (m *HPAmebloPostMutation) Theme() (r string, exists bool)

Theme returns the value of the "theme" field in the mutation.

func (*HPAmebloPostMutation) ThemeCleared

func (m *HPAmebloPostMutation) ThemeCleared() bool

ThemeCleared returns if the "theme" field was cleared in this mutation.

func (*HPAmebloPostMutation) Title

func (m *HPAmebloPostMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (HPAmebloPostMutation) Tx

func (m HPAmebloPostMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPAmebloPostMutation) Type

func (m *HPAmebloPostMutation) Type() string

Type returns the node type of this mutation (HPAmebloPost).

func (*HPAmebloPostMutation) UpdatedAt

func (m *HPAmebloPostMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPAmebloPostMutation) UpdatedAtCleared

func (m *HPAmebloPostMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPAmebloPostMutation) Where

func (m *HPAmebloPostMutation) Where(ps ...predicate.HPAmebloPost)

Where appends a list predicates to the HPAmebloPostMutation builder.

func (*HPAmebloPostMutation) WhereP

func (m *HPAmebloPostMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPAmebloPostMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPAmebloPostOrder

HPAmebloPostOrder defines the ordering of HPAmebloPost.

type HPAmebloPostOrder struct {
    Direction OrderDirection          `json:"direction"`
    Field     *HPAmebloPostOrderField `json:"field"`
}

type HPAmebloPostOrderField

HPAmebloPostOrderField defines the ordering field of HPAmebloPost.

type HPAmebloPostOrderField struct {
    // contains filtered or unexported fields
}

type HPAmebloPostPaginateOption

HPAmebloPostPaginateOption enables pagination customization.

type HPAmebloPostPaginateOption func(*hpameblopostPager) error

func WithHPAmebloPostFilter

func WithHPAmebloPostFilter(filter func(*HPAmebloPostQuery) (*HPAmebloPostQuery, error)) HPAmebloPostPaginateOption

WithHPAmebloPostFilter configures pagination filter.

func WithHPAmebloPostOrder

func WithHPAmebloPostOrder(order *HPAmebloPostOrder) HPAmebloPostPaginateOption

WithHPAmebloPostOrder configures pagination ordering.

type HPAmebloPostQuery

HPAmebloPostQuery is the builder for querying HPAmebloPost entities.

type HPAmebloPostQuery struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostQuery) Aggregate

func (hapq *HPAmebloPostQuery) Aggregate(fns ...AggregateFunc) *HPAmebloPostSelect

Aggregate returns a HPAmebloPostSelect configured with the given aggregations.

func (*HPAmebloPostQuery) All

func (hapq *HPAmebloPostQuery) All(ctx context.Context) ([]*HPAmebloPost, error)

All executes the query and returns a list of HPAmebloPosts.

func (*HPAmebloPostQuery) AllX

func (hapq *HPAmebloPostQuery) AllX(ctx context.Context) []*HPAmebloPost

AllX is like All, but panics if an error occurs.

func (*HPAmebloPostQuery) Clone

func (hapq *HPAmebloPostQuery) Clone() *HPAmebloPostQuery

Clone returns a duplicate of the HPAmebloPostQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPAmebloPostQuery) CollectFields

func (hap *HPAmebloPostQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPAmebloPostQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPAmebloPostQuery) Count

func (hapq *HPAmebloPostQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPAmebloPostQuery) CountX

func (hapq *HPAmebloPostQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPAmebloPostQuery) Exist

func (hapq *HPAmebloPostQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPAmebloPostQuery) ExistX

func (hapq *HPAmebloPostQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPAmebloPostQuery) Filter

func (hapq *HPAmebloPostQuery) Filter() *HPAmebloPostFilter

Filter returns a Filter implementation to apply filters on the HPAmebloPostQuery builder.

func (*HPAmebloPostQuery) First

func (hapq *HPAmebloPostQuery) First(ctx context.Context) (*HPAmebloPost, error)

First returns the first HPAmebloPost entity from the query. Returns a *NotFoundError when no HPAmebloPost was found.

func (*HPAmebloPostQuery) FirstID

func (hapq *HPAmebloPostQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPAmebloPost ID from the query. Returns a *NotFoundError when no HPAmebloPost ID was found.

func (*HPAmebloPostQuery) FirstIDX

func (hapq *HPAmebloPostQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPAmebloPostQuery) FirstX

func (hapq *HPAmebloPostQuery) FirstX(ctx context.Context) *HPAmebloPost

FirstX is like First, but panics if an error occurs.

func (*HPAmebloPostQuery) GroupBy

func (hapq *HPAmebloPostQuery) GroupBy(field string, fields ...string) *HPAmebloPostGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPAmebloPost.Query().
	GroupBy(hpameblopost.FieldCrawledAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPAmebloPostQuery) IDs

func (hapq *HPAmebloPostQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPAmebloPost IDs.

func (*HPAmebloPostQuery) IDsX

func (hapq *HPAmebloPostQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPAmebloPostQuery) Limit

func (hapq *HPAmebloPostQuery) Limit(limit int) *HPAmebloPostQuery

Limit the number of records to be returned by this query.

func (*HPAmebloPostQuery) Offset

func (hapq *HPAmebloPostQuery) Offset(offset int) *HPAmebloPostQuery

Offset to start from.

func (*HPAmebloPostQuery) Only

func (hapq *HPAmebloPostQuery) Only(ctx context.Context) (*HPAmebloPost, error)

Only returns a single HPAmebloPost entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPAmebloPost entity is found. Returns a *NotFoundError when no HPAmebloPost entities are found.

func (*HPAmebloPostQuery) OnlyID

func (hapq *HPAmebloPostQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPAmebloPost ID in the query. Returns a *NotSingularError when more than one HPAmebloPost ID is found. Returns a *NotFoundError when no entities are found.

func (*HPAmebloPostQuery) OnlyIDX

func (hapq *HPAmebloPostQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPAmebloPostQuery) OnlyX

func (hapq *HPAmebloPostQuery) OnlyX(ctx context.Context) *HPAmebloPost

OnlyX is like Only, but panics if an error occurs.

func (*HPAmebloPostQuery) Order

func (hapq *HPAmebloPostQuery) Order(o ...hpameblopost.Order) *HPAmebloPostQuery

Order specifies how the records should be ordered.

func (*HPAmebloPostQuery) Paginate

func (hap *HPAmebloPostQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPAmebloPostPaginateOption,
) (*HPAmebloPostConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPAmebloPost.

func (*HPAmebloPostQuery) QueryAsset

func (hapq *HPAmebloPostQuery) QueryAsset() *HPAssetQuery

QueryAsset chains the current query on the "asset" edge.

func (*HPAmebloPostQuery) QueryBlobs

func (hapq *HPAmebloPostQuery) QueryBlobs() *HPBlobQuery

QueryBlobs chains the current query on the "blobs" edge.

func (*HPAmebloPostQuery) QueryOwnerArtist

func (hapq *HPAmebloPostQuery) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist chains the current query on the "owner_artist" edge.

func (*HPAmebloPostQuery) QueryOwnerMember

func (hapq *HPAmebloPostQuery) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember chains the current query on the "owner_member" edge.

func (*HPAmebloPostQuery) QueryTaggedArtists

func (hapq *HPAmebloPostQuery) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists chains the current query on the "tagged_artists" edge.

func (*HPAmebloPostQuery) QueryTaggedMembers

func (hapq *HPAmebloPostQuery) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers chains the current query on the "tagged_members" edge.

func (*HPAmebloPostQuery) Select

func (hapq *HPAmebloPostQuery) Select(fields ...string) *HPAmebloPostSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
}

client.HPAmebloPost.Query().
	Select(hpameblopost.FieldCrawledAt).
	Scan(ctx, &v)

func (*HPAmebloPostQuery) Unique

func (hapq *HPAmebloPostQuery) Unique(unique bool) *HPAmebloPostQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPAmebloPostQuery) Where

func (hapq *HPAmebloPostQuery) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostQuery

Where adds a new predicate for the HPAmebloPostQuery builder.

func (*HPAmebloPostQuery) WithAsset

func (hapq *HPAmebloPostQuery) WithAsset(opts ...func(*HPAssetQuery)) *HPAmebloPostQuery

WithAsset tells the query-builder to eager-load the nodes that are connected to the "asset" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithBlobs

func (hapq *HPAmebloPostQuery) WithBlobs(opts ...func(*HPBlobQuery)) *HPAmebloPostQuery

WithBlobs tells the query-builder to eager-load the nodes that are connected to the "blobs" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithNamedBlobs

func (hapq *HPAmebloPostQuery) WithNamedBlobs(name string, opts ...func(*HPBlobQuery)) *HPAmebloPostQuery

WithNamedBlobs tells the query-builder to eager-load the nodes that are connected to the "blobs" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithNamedTaggedArtists

func (hapq *HPAmebloPostQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPAmebloPostQuery

WithNamedTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithNamedTaggedMembers

func (hapq *HPAmebloPostQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPAmebloPostQuery

WithNamedTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithOwnerArtist

func (hapq *HPAmebloPostQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPAmebloPostQuery

WithOwnerArtist tells the query-builder to eager-load the nodes that are connected to the "owner_artist" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithOwnerMember

func (hapq *HPAmebloPostQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPAmebloPostQuery

WithOwnerMember tells the query-builder to eager-load the nodes that are connected to the "owner_member" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithTaggedArtists

func (hapq *HPAmebloPostQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPAmebloPostQuery

WithTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAmebloPostQuery) WithTaggedMembers

func (hapq *HPAmebloPostQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPAmebloPostQuery

WithTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge. The optional arguments are used to configure the query builder of the edge.

type HPAmebloPostSelect

HPAmebloPostSelect is the builder for selecting fields of HPAmebloPost entities.

type HPAmebloPostSelect struct {
    *HPAmebloPostQuery
    // contains filtered or unexported fields
}

func (*HPAmebloPostSelect) Aggregate

func (haps *HPAmebloPostSelect) Aggregate(fns ...AggregateFunc) *HPAmebloPostSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPAmebloPostSelect) Bool

func (s *HPAmebloPostSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) BoolX

func (s *HPAmebloPostSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPAmebloPostSelect) Bools

func (s *HPAmebloPostSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) BoolsX

func (s *HPAmebloPostSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPAmebloPostSelect) Float64

func (s *HPAmebloPostSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) Float64X

func (s *HPAmebloPostSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPAmebloPostSelect) Float64s

func (s *HPAmebloPostSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) Float64sX

func (s *HPAmebloPostSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPAmebloPostSelect) Int

func (s *HPAmebloPostSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) IntX

func (s *HPAmebloPostSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPAmebloPostSelect) Ints

func (s *HPAmebloPostSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) IntsX

func (s *HPAmebloPostSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPAmebloPostSelect) Scan

func (haps *HPAmebloPostSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPAmebloPostSelect) ScanX

func (s *HPAmebloPostSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPAmebloPostSelect) String

func (s *HPAmebloPostSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) StringX

func (s *HPAmebloPostSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPAmebloPostSelect) Strings

func (s *HPAmebloPostSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPAmebloPostSelect) StringsX

func (s *HPAmebloPostSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPAmebloPostUpdate

HPAmebloPostUpdate is the builder for updating HPAmebloPost entities.

type HPAmebloPostUpdate struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostUpdate) AddBlobIDs

func (hapu *HPAmebloPostUpdate) AddBlobIDs(ids ...int) *HPAmebloPostUpdate

AddBlobIDs adds the "blobs" edge to the HPBlob entity by IDs.

func (*HPAmebloPostUpdate) AddBlobs

func (hapu *HPAmebloPostUpdate) AddBlobs(h ...*HPBlob) *HPAmebloPostUpdate

AddBlobs adds the "blobs" edges to the HPBlob entity.

func (*HPAmebloPostUpdate) AddComments

func (hapu *HPAmebloPostUpdate) AddComments(i int) *HPAmebloPostUpdate

AddComments adds i to the "comments" field.

func (*HPAmebloPostUpdate) AddErrorCount

func (hapu *HPAmebloPostUpdate) AddErrorCount(i int) *HPAmebloPostUpdate

AddErrorCount adds i to the "error_count" field.

func (*HPAmebloPostUpdate) AddLikes

func (hapu *HPAmebloPostUpdate) AddLikes(i int) *HPAmebloPostUpdate

AddLikes adds i to the "likes" field.

func (*HPAmebloPostUpdate) AddReblogs

func (hapu *HPAmebloPostUpdate) AddReblogs(i int) *HPAmebloPostUpdate

AddReblogs adds i to the "reblogs" field.

func (*HPAmebloPostUpdate) AddTaggedArtistIDs

func (hapu *HPAmebloPostUpdate) AddTaggedArtistIDs(ids ...int) *HPAmebloPostUpdate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPAmebloPostUpdate) AddTaggedArtists

func (hapu *HPAmebloPostUpdate) AddTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPAmebloPostUpdate) AddTaggedMemberIDs

func (hapu *HPAmebloPostUpdate) AddTaggedMemberIDs(ids ...int) *HPAmebloPostUpdate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPAmebloPostUpdate) AddTaggedMembers

func (hapu *HPAmebloPostUpdate) AddTaggedMembers(h ...*HPMember) *HPAmebloPostUpdate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPAmebloPostUpdate) AppendImages

func (hapu *HPAmebloPostUpdate) AppendImages(j []jsonfields.Media) *HPAmebloPostUpdate

AppendImages appends j to the "images" field.

func (*HPAmebloPostUpdate) ClearAsset

func (hapu *HPAmebloPostUpdate) ClearAsset() *HPAmebloPostUpdate

ClearAsset clears the "asset" edge to the HPAsset entity.

func (*HPAmebloPostUpdate) ClearBlobs

func (hapu *HPAmebloPostUpdate) ClearBlobs() *HPAmebloPostUpdate

ClearBlobs clears all "blobs" edges to the HPBlob entity.

func (*HPAmebloPostUpdate) ClearComments

func (hapu *HPAmebloPostUpdate) ClearComments() *HPAmebloPostUpdate

ClearComments clears the value of the "comments" field.

func (*HPAmebloPostUpdate) ClearCrawledAt

func (hapu *HPAmebloPostUpdate) ClearCrawledAt() *HPAmebloPostUpdate

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPAmebloPostUpdate) ClearImages

func (hapu *HPAmebloPostUpdate) ClearImages() *HPAmebloPostUpdate

ClearImages clears the value of the "images" field.

func (*HPAmebloPostUpdate) ClearLastErrorMessage

func (hapu *HPAmebloPostUpdate) ClearLastErrorMessage() *HPAmebloPostUpdate

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPAmebloPostUpdate) ClearLikes

func (hapu *HPAmebloPostUpdate) ClearLikes() *HPAmebloPostUpdate

ClearLikes clears the value of the "likes" field.

func (*HPAmebloPostUpdate) ClearManuallyModified

func (hapu *HPAmebloPostUpdate) ClearManuallyModified() *HPAmebloPostUpdate

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPAmebloPostUpdate) ClearMemberKey

func (hapu *HPAmebloPostUpdate) ClearMemberKey() *HPAmebloPostUpdate

ClearMemberKey clears the value of the "member_key" field.

func (*HPAmebloPostUpdate) ClearNextPath

func (hapu *HPAmebloPostUpdate) ClearNextPath() *HPAmebloPostUpdate

ClearNextPath clears the value of the "next_path" field.

func (*HPAmebloPostUpdate) ClearOwnerArtist

func (hapu *HPAmebloPostUpdate) ClearOwnerArtist() *HPAmebloPostUpdate

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPAmebloPostUpdate) ClearOwnerArtistID

func (hapu *HPAmebloPostUpdate) ClearOwnerArtistID() *HPAmebloPostUpdate

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPAmebloPostUpdate) ClearOwnerMember

func (hapu *HPAmebloPostUpdate) ClearOwnerMember() *HPAmebloPostUpdate

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPAmebloPostUpdate) ClearOwnerMemberID

func (hapu *HPAmebloPostUpdate) ClearOwnerMemberID() *HPAmebloPostUpdate

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPAmebloPostUpdate) ClearPrevPath

func (hapu *HPAmebloPostUpdate) ClearPrevPath() *HPAmebloPostUpdate

ClearPrevPath clears the value of the "prev_path" field.

func (*HPAmebloPostUpdate) ClearReblogs

func (hapu *HPAmebloPostUpdate) ClearReblogs() *HPAmebloPostUpdate

ClearReblogs clears the value of the "reblogs" field.

func (*HPAmebloPostUpdate) ClearRecrawlRequired

func (hapu *HPAmebloPostUpdate) ClearRecrawlRequired() *HPAmebloPostUpdate

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPAmebloPostUpdate) ClearTaggedArtists

func (hapu *HPAmebloPostUpdate) ClearTaggedArtists() *HPAmebloPostUpdate

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPAmebloPostUpdate) ClearTaggedMembers

func (hapu *HPAmebloPostUpdate) ClearTaggedMembers() *HPAmebloPostUpdate

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPAmebloPostUpdate) ClearTheme

func (hapu *HPAmebloPostUpdate) ClearTheme() *HPAmebloPostUpdate

ClearTheme clears the value of the "theme" field.

func (*HPAmebloPostUpdate) ClearUpdatedAt

func (hapu *HPAmebloPostUpdate) ClearUpdatedAt() *HPAmebloPostUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPAmebloPostUpdate) Exec

func (hapu *HPAmebloPostUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAmebloPostUpdate) ExecX

func (hapu *HPAmebloPostUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostUpdate) Mutation

func (hapu *HPAmebloPostUpdate) Mutation() *HPAmebloPostMutation

Mutation returns the HPAmebloPostMutation object of the builder.

func (*HPAmebloPostUpdate) RemoveBlobIDs

func (hapu *HPAmebloPostUpdate) RemoveBlobIDs(ids ...int) *HPAmebloPostUpdate

RemoveBlobIDs removes the "blobs" edge to HPBlob entities by IDs.

func (*HPAmebloPostUpdate) RemoveBlobs

func (hapu *HPAmebloPostUpdate) RemoveBlobs(h ...*HPBlob) *HPAmebloPostUpdate

RemoveBlobs removes "blobs" edges to HPBlob entities.

func (*HPAmebloPostUpdate) RemoveTaggedArtistIDs

func (hapu *HPAmebloPostUpdate) RemoveTaggedArtistIDs(ids ...int) *HPAmebloPostUpdate

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPAmebloPostUpdate) RemoveTaggedArtists

func (hapu *HPAmebloPostUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdate

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPAmebloPostUpdate) RemoveTaggedMemberIDs

func (hapu *HPAmebloPostUpdate) RemoveTaggedMemberIDs(ids ...int) *HPAmebloPostUpdate

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPAmebloPostUpdate) RemoveTaggedMembers

func (hapu *HPAmebloPostUpdate) RemoveTaggedMembers(h ...*HPMember) *HPAmebloPostUpdate

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPAmebloPostUpdate) Save

func (hapu *HPAmebloPostUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPAmebloPostUpdate) SaveX

func (hapu *HPAmebloPostUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPAmebloPostUpdate) SetArtistKey

func (hapu *HPAmebloPostUpdate) SetArtistKey(s string) *HPAmebloPostUpdate

SetArtistKey sets the "artist_key" field.

func (*HPAmebloPostUpdate) SetAsset

func (hapu *HPAmebloPostUpdate) SetAsset(h *HPAsset) *HPAmebloPostUpdate

SetAsset sets the "asset" edge to the HPAsset entity.

func (*HPAmebloPostUpdate) SetAssetID

func (hapu *HPAmebloPostUpdate) SetAssetID(id int) *HPAmebloPostUpdate

SetAssetID sets the "asset" edge to the HPAsset entity by ID.

func (*HPAmebloPostUpdate) SetComments

func (hapu *HPAmebloPostUpdate) SetComments(i int) *HPAmebloPostUpdate

SetComments sets the "comments" field.

func (*HPAmebloPostUpdate) SetCrawledAt

func (hapu *HPAmebloPostUpdate) SetCrawledAt(t time.Time) *HPAmebloPostUpdate

SetCrawledAt sets the "crawled_at" field.

func (*HPAmebloPostUpdate) SetDescription

func (hapu *HPAmebloPostUpdate) SetDescription(s string) *HPAmebloPostUpdate

SetDescription sets the "description" field.

func (*HPAmebloPostUpdate) SetErrorCount

func (hapu *HPAmebloPostUpdate) SetErrorCount(i int) *HPAmebloPostUpdate

SetErrorCount sets the "error_count" field.

func (*HPAmebloPostUpdate) SetImages

func (hapu *HPAmebloPostUpdate) SetImages(j []jsonfields.Media) *HPAmebloPostUpdate

SetImages sets the "images" field.

func (*HPAmebloPostUpdate) SetLastErrorMessage

func (hapu *HPAmebloPostUpdate) SetLastErrorMessage(s string) *HPAmebloPostUpdate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPAmebloPostUpdate) SetLikes

func (hapu *HPAmebloPostUpdate) SetLikes(i int) *HPAmebloPostUpdate

SetLikes sets the "likes" field.

func (*HPAmebloPostUpdate) SetManuallyModified

func (hapu *HPAmebloPostUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPAmebloPostUpdate

SetManuallyModified sets the "manually_modified" field.

func (*HPAmebloPostUpdate) SetMemberKey

func (hapu *HPAmebloPostUpdate) SetMemberKey(s string) *HPAmebloPostUpdate

SetMemberKey sets the "member_key" field.

func (*HPAmebloPostUpdate) SetNextPath

func (hapu *HPAmebloPostUpdate) SetNextPath(s string) *HPAmebloPostUpdate

SetNextPath sets the "next_path" field.

func (*HPAmebloPostUpdate) SetNillableAssetID

func (hapu *HPAmebloPostUpdate) SetNillableAssetID(id *int) *HPAmebloPostUpdate

SetNillableAssetID sets the "asset" edge to the HPAsset entity by ID if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableComments

func (hapu *HPAmebloPostUpdate) SetNillableComments(i *int) *HPAmebloPostUpdate

SetNillableComments sets the "comments" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableCrawledAt

func (hapu *HPAmebloPostUpdate) SetNillableCrawledAt(t *time.Time) *HPAmebloPostUpdate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableErrorCount

func (hapu *HPAmebloPostUpdate) SetNillableErrorCount(i *int) *HPAmebloPostUpdate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableLastErrorMessage

func (hapu *HPAmebloPostUpdate) SetNillableLastErrorMessage(s *string) *HPAmebloPostUpdate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableLikes

func (hapu *HPAmebloPostUpdate) SetNillableLikes(i *int) *HPAmebloPostUpdate

SetNillableLikes sets the "likes" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableMemberKey

func (hapu *HPAmebloPostUpdate) SetNillableMemberKey(s *string) *HPAmebloPostUpdate

SetNillableMemberKey sets the "member_key" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableNextPath

func (hapu *HPAmebloPostUpdate) SetNillableNextPath(s *string) *HPAmebloPostUpdate

SetNillableNextPath sets the "next_path" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableOwnerArtistID

func (hapu *HPAmebloPostUpdate) SetNillableOwnerArtistID(i *int) *HPAmebloPostUpdate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableOwnerMemberID

func (hapu *HPAmebloPostUpdate) SetNillableOwnerMemberID(i *int) *HPAmebloPostUpdate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillablePrevPath

func (hapu *HPAmebloPostUpdate) SetNillablePrevPath(s *string) *HPAmebloPostUpdate

SetNillablePrevPath sets the "prev_path" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableReblogs

func (hapu *HPAmebloPostUpdate) SetNillableReblogs(i *int) *HPAmebloPostUpdate

SetNillableReblogs sets the "reblogs" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableRecrawlRequired

func (hapu *HPAmebloPostUpdate) SetNillableRecrawlRequired(b *bool) *HPAmebloPostUpdate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableTheme

func (hapu *HPAmebloPostUpdate) SetNillableTheme(s *string) *HPAmebloPostUpdate

SetNillableTheme sets the "theme" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetNillableUpdatedAt

func (hapu *HPAmebloPostUpdate) SetNillableUpdatedAt(t *time.Time) *HPAmebloPostUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPAmebloPostUpdate) SetOwnerArtist

func (hapu *HPAmebloPostUpdate) SetOwnerArtist(h *HPArtist) *HPAmebloPostUpdate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPAmebloPostUpdate) SetOwnerArtistID

func (hapu *HPAmebloPostUpdate) SetOwnerArtistID(i int) *HPAmebloPostUpdate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPAmebloPostUpdate) SetOwnerMember

func (hapu *HPAmebloPostUpdate) SetOwnerMember(h *HPMember) *HPAmebloPostUpdate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPAmebloPostUpdate) SetOwnerMemberID

func (hapu *HPAmebloPostUpdate) SetOwnerMemberID(i int) *HPAmebloPostUpdate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPAmebloPostUpdate) SetPath

func (hapu *HPAmebloPostUpdate) SetPath(s string) *HPAmebloPostUpdate

SetPath sets the "path" field.

func (*HPAmebloPostUpdate) SetPostAt

func (hapu *HPAmebloPostUpdate) SetPostAt(t time.Time) *HPAmebloPostUpdate

SetPostAt sets the "post_at" field.

func (*HPAmebloPostUpdate) SetPrevPath

func (hapu *HPAmebloPostUpdate) SetPrevPath(s string) *HPAmebloPostUpdate

SetPrevPath sets the "prev_path" field.

func (*HPAmebloPostUpdate) SetReblogs

func (hapu *HPAmebloPostUpdate) SetReblogs(i int) *HPAmebloPostUpdate

SetReblogs sets the "reblogs" field.

func (*HPAmebloPostUpdate) SetRecrawlRequired

func (hapu *HPAmebloPostUpdate) SetRecrawlRequired(b bool) *HPAmebloPostUpdate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPAmebloPostUpdate) SetSource

func (hapu *HPAmebloPostUpdate) SetSource(h hpameblopost.Source) *HPAmebloPostUpdate

SetSource sets the "source" field.

func (*HPAmebloPostUpdate) SetTheme

func (hapu *HPAmebloPostUpdate) SetTheme(s string) *HPAmebloPostUpdate

SetTheme sets the "theme" field.

func (*HPAmebloPostUpdate) SetTitle

func (hapu *HPAmebloPostUpdate) SetTitle(s string) *HPAmebloPostUpdate

SetTitle sets the "title" field.

func (*HPAmebloPostUpdate) SetUpdatedAt

func (hapu *HPAmebloPostUpdate) SetUpdatedAt(t time.Time) *HPAmebloPostUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPAmebloPostUpdate) Where

func (hapu *HPAmebloPostUpdate) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostUpdate

Where appends a list predicates to the HPAmebloPostUpdate builder.

type HPAmebloPostUpdateOne

HPAmebloPostUpdateOne is the builder for updating a single HPAmebloPost entity.

type HPAmebloPostUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostUpdateOne) AddBlobIDs

func (hapuo *HPAmebloPostUpdateOne) AddBlobIDs(ids ...int) *HPAmebloPostUpdateOne

AddBlobIDs adds the "blobs" edge to the HPBlob entity by IDs.

func (*HPAmebloPostUpdateOne) AddBlobs

func (hapuo *HPAmebloPostUpdateOne) AddBlobs(h ...*HPBlob) *HPAmebloPostUpdateOne

AddBlobs adds the "blobs" edges to the HPBlob entity.

func (*HPAmebloPostUpdateOne) AddComments

func (hapuo *HPAmebloPostUpdateOne) AddComments(i int) *HPAmebloPostUpdateOne

AddComments adds i to the "comments" field.

func (*HPAmebloPostUpdateOne) AddErrorCount

func (hapuo *HPAmebloPostUpdateOne) AddErrorCount(i int) *HPAmebloPostUpdateOne

AddErrorCount adds i to the "error_count" field.

func (*HPAmebloPostUpdateOne) AddLikes

func (hapuo *HPAmebloPostUpdateOne) AddLikes(i int) *HPAmebloPostUpdateOne

AddLikes adds i to the "likes" field.

func (*HPAmebloPostUpdateOne) AddReblogs

func (hapuo *HPAmebloPostUpdateOne) AddReblogs(i int) *HPAmebloPostUpdateOne

AddReblogs adds i to the "reblogs" field.

func (*HPAmebloPostUpdateOne) AddTaggedArtistIDs

func (hapuo *HPAmebloPostUpdateOne) AddTaggedArtistIDs(ids ...int) *HPAmebloPostUpdateOne

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPAmebloPostUpdateOne) AddTaggedArtists

func (hapuo *HPAmebloPostUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdateOne

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPAmebloPostUpdateOne) AddTaggedMemberIDs

func (hapuo *HPAmebloPostUpdateOne) AddTaggedMemberIDs(ids ...int) *HPAmebloPostUpdateOne

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPAmebloPostUpdateOne) AddTaggedMembers

func (hapuo *HPAmebloPostUpdateOne) AddTaggedMembers(h ...*HPMember) *HPAmebloPostUpdateOne

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPAmebloPostUpdateOne) AppendImages

func (hapuo *HPAmebloPostUpdateOne) AppendImages(j []jsonfields.Media) *HPAmebloPostUpdateOne

AppendImages appends j to the "images" field.

func (*HPAmebloPostUpdateOne) ClearAsset

func (hapuo *HPAmebloPostUpdateOne) ClearAsset() *HPAmebloPostUpdateOne

ClearAsset clears the "asset" edge to the HPAsset entity.

func (*HPAmebloPostUpdateOne) ClearBlobs

func (hapuo *HPAmebloPostUpdateOne) ClearBlobs() *HPAmebloPostUpdateOne

ClearBlobs clears all "blobs" edges to the HPBlob entity.

func (*HPAmebloPostUpdateOne) ClearComments

func (hapuo *HPAmebloPostUpdateOne) ClearComments() *HPAmebloPostUpdateOne

ClearComments clears the value of the "comments" field.

func (*HPAmebloPostUpdateOne) ClearCrawledAt

func (hapuo *HPAmebloPostUpdateOne) ClearCrawledAt() *HPAmebloPostUpdateOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPAmebloPostUpdateOne) ClearImages

func (hapuo *HPAmebloPostUpdateOne) ClearImages() *HPAmebloPostUpdateOne

ClearImages clears the value of the "images" field.

func (*HPAmebloPostUpdateOne) ClearLastErrorMessage

func (hapuo *HPAmebloPostUpdateOne) ClearLastErrorMessage() *HPAmebloPostUpdateOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPAmebloPostUpdateOne) ClearLikes

func (hapuo *HPAmebloPostUpdateOne) ClearLikes() *HPAmebloPostUpdateOne

ClearLikes clears the value of the "likes" field.

func (*HPAmebloPostUpdateOne) ClearManuallyModified

func (hapuo *HPAmebloPostUpdateOne) ClearManuallyModified() *HPAmebloPostUpdateOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPAmebloPostUpdateOne) ClearMemberKey

func (hapuo *HPAmebloPostUpdateOne) ClearMemberKey() *HPAmebloPostUpdateOne

ClearMemberKey clears the value of the "member_key" field.

func (*HPAmebloPostUpdateOne) ClearNextPath

func (hapuo *HPAmebloPostUpdateOne) ClearNextPath() *HPAmebloPostUpdateOne

ClearNextPath clears the value of the "next_path" field.

func (*HPAmebloPostUpdateOne) ClearOwnerArtist

func (hapuo *HPAmebloPostUpdateOne) ClearOwnerArtist() *HPAmebloPostUpdateOne

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPAmebloPostUpdateOne) ClearOwnerArtistID

func (hapuo *HPAmebloPostUpdateOne) ClearOwnerArtistID() *HPAmebloPostUpdateOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPAmebloPostUpdateOne) ClearOwnerMember

func (hapuo *HPAmebloPostUpdateOne) ClearOwnerMember() *HPAmebloPostUpdateOne

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPAmebloPostUpdateOne) ClearOwnerMemberID

func (hapuo *HPAmebloPostUpdateOne) ClearOwnerMemberID() *HPAmebloPostUpdateOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPAmebloPostUpdateOne) ClearPrevPath

func (hapuo *HPAmebloPostUpdateOne) ClearPrevPath() *HPAmebloPostUpdateOne

ClearPrevPath clears the value of the "prev_path" field.

func (*HPAmebloPostUpdateOne) ClearReblogs

func (hapuo *HPAmebloPostUpdateOne) ClearReblogs() *HPAmebloPostUpdateOne

ClearReblogs clears the value of the "reblogs" field.

func (*HPAmebloPostUpdateOne) ClearRecrawlRequired

func (hapuo *HPAmebloPostUpdateOne) ClearRecrawlRequired() *HPAmebloPostUpdateOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPAmebloPostUpdateOne) ClearTaggedArtists

func (hapuo *HPAmebloPostUpdateOne) ClearTaggedArtists() *HPAmebloPostUpdateOne

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPAmebloPostUpdateOne) ClearTaggedMembers

func (hapuo *HPAmebloPostUpdateOne) ClearTaggedMembers() *HPAmebloPostUpdateOne

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPAmebloPostUpdateOne) ClearTheme

func (hapuo *HPAmebloPostUpdateOne) ClearTheme() *HPAmebloPostUpdateOne

ClearTheme clears the value of the "theme" field.

func (*HPAmebloPostUpdateOne) ClearUpdatedAt

func (hapuo *HPAmebloPostUpdateOne) ClearUpdatedAt() *HPAmebloPostUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPAmebloPostUpdateOne) Exec

func (hapuo *HPAmebloPostUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPAmebloPostUpdateOne) ExecX

func (hapuo *HPAmebloPostUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostUpdateOne) Mutation

func (hapuo *HPAmebloPostUpdateOne) Mutation() *HPAmebloPostMutation

Mutation returns the HPAmebloPostMutation object of the builder.

func (*HPAmebloPostUpdateOne) RemoveBlobIDs

func (hapuo *HPAmebloPostUpdateOne) RemoveBlobIDs(ids ...int) *HPAmebloPostUpdateOne

RemoveBlobIDs removes the "blobs" edge to HPBlob entities by IDs.

func (*HPAmebloPostUpdateOne) RemoveBlobs

func (hapuo *HPAmebloPostUpdateOne) RemoveBlobs(h ...*HPBlob) *HPAmebloPostUpdateOne

RemoveBlobs removes "blobs" edges to HPBlob entities.

func (*HPAmebloPostUpdateOne) RemoveTaggedArtistIDs

func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPAmebloPostUpdateOne

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPAmebloPostUpdateOne) RemoveTaggedArtists

func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPAmebloPostUpdateOne

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPAmebloPostUpdateOne) RemoveTaggedMemberIDs

func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPAmebloPostUpdateOne

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPAmebloPostUpdateOne) RemoveTaggedMembers

func (hapuo *HPAmebloPostUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPAmebloPostUpdateOne

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPAmebloPostUpdateOne) Save

func (hapuo *HPAmebloPostUpdateOne) Save(ctx context.Context) (*HPAmebloPost, error)

Save executes the query and returns the updated HPAmebloPost entity.

func (*HPAmebloPostUpdateOne) SaveX

func (hapuo *HPAmebloPostUpdateOne) SaveX(ctx context.Context) *HPAmebloPost

SaveX is like Save, but panics if an error occurs.

func (*HPAmebloPostUpdateOne) Select

func (hapuo *HPAmebloPostUpdateOne) Select(field string, fields ...string) *HPAmebloPostUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPAmebloPostUpdateOne) SetArtistKey

func (hapuo *HPAmebloPostUpdateOne) SetArtistKey(s string) *HPAmebloPostUpdateOne

SetArtistKey sets the "artist_key" field.

func (*HPAmebloPostUpdateOne) SetAsset

func (hapuo *HPAmebloPostUpdateOne) SetAsset(h *HPAsset) *HPAmebloPostUpdateOne

SetAsset sets the "asset" edge to the HPAsset entity.

func (*HPAmebloPostUpdateOne) SetAssetID

func (hapuo *HPAmebloPostUpdateOne) SetAssetID(id int) *HPAmebloPostUpdateOne

SetAssetID sets the "asset" edge to the HPAsset entity by ID.

func (*HPAmebloPostUpdateOne) SetComments

func (hapuo *HPAmebloPostUpdateOne) SetComments(i int) *HPAmebloPostUpdateOne

SetComments sets the "comments" field.

func (*HPAmebloPostUpdateOne) SetCrawledAt

func (hapuo *HPAmebloPostUpdateOne) SetCrawledAt(t time.Time) *HPAmebloPostUpdateOne

SetCrawledAt sets the "crawled_at" field.

func (*HPAmebloPostUpdateOne) SetDescription

func (hapuo *HPAmebloPostUpdateOne) SetDescription(s string) *HPAmebloPostUpdateOne

SetDescription sets the "description" field.

func (*HPAmebloPostUpdateOne) SetErrorCount

func (hapuo *HPAmebloPostUpdateOne) SetErrorCount(i int) *HPAmebloPostUpdateOne

SetErrorCount sets the "error_count" field.

func (*HPAmebloPostUpdateOne) SetImages

func (hapuo *HPAmebloPostUpdateOne) SetImages(j []jsonfields.Media) *HPAmebloPostUpdateOne

SetImages sets the "images" field.

func (*HPAmebloPostUpdateOne) SetLastErrorMessage

func (hapuo *HPAmebloPostUpdateOne) SetLastErrorMessage(s string) *HPAmebloPostUpdateOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPAmebloPostUpdateOne) SetLikes

func (hapuo *HPAmebloPostUpdateOne) SetLikes(i int) *HPAmebloPostUpdateOne

SetLikes sets the "likes" field.

func (*HPAmebloPostUpdateOne) SetManuallyModified

func (hapuo *HPAmebloPostUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPAmebloPostUpdateOne

SetManuallyModified sets the "manually_modified" field.

func (*HPAmebloPostUpdateOne) SetMemberKey

func (hapuo *HPAmebloPostUpdateOne) SetMemberKey(s string) *HPAmebloPostUpdateOne

SetMemberKey sets the "member_key" field.

func (*HPAmebloPostUpdateOne) SetNextPath

func (hapuo *HPAmebloPostUpdateOne) SetNextPath(s string) *HPAmebloPostUpdateOne

SetNextPath sets the "next_path" field.

func (*HPAmebloPostUpdateOne) SetNillableAssetID

func (hapuo *HPAmebloPostUpdateOne) SetNillableAssetID(id *int) *HPAmebloPostUpdateOne

SetNillableAssetID sets the "asset" edge to the HPAsset entity by ID if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableComments

func (hapuo *HPAmebloPostUpdateOne) SetNillableComments(i *int) *HPAmebloPostUpdateOne

SetNillableComments sets the "comments" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableCrawledAt

func (hapuo *HPAmebloPostUpdateOne) SetNillableCrawledAt(t *time.Time) *HPAmebloPostUpdateOne

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableErrorCount

func (hapuo *HPAmebloPostUpdateOne) SetNillableErrorCount(i *int) *HPAmebloPostUpdateOne

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableLastErrorMessage

func (hapuo *HPAmebloPostUpdateOne) SetNillableLastErrorMessage(s *string) *HPAmebloPostUpdateOne

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableLikes

func (hapuo *HPAmebloPostUpdateOne) SetNillableLikes(i *int) *HPAmebloPostUpdateOne

SetNillableLikes sets the "likes" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableMemberKey

func (hapuo *HPAmebloPostUpdateOne) SetNillableMemberKey(s *string) *HPAmebloPostUpdateOne

SetNillableMemberKey sets the "member_key" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableNextPath

func (hapuo *HPAmebloPostUpdateOne) SetNillableNextPath(s *string) *HPAmebloPostUpdateOne

SetNillableNextPath sets the "next_path" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableOwnerArtistID

func (hapuo *HPAmebloPostUpdateOne) SetNillableOwnerArtistID(i *int) *HPAmebloPostUpdateOne

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableOwnerMemberID

func (hapuo *HPAmebloPostUpdateOne) SetNillableOwnerMemberID(i *int) *HPAmebloPostUpdateOne

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillablePrevPath

func (hapuo *HPAmebloPostUpdateOne) SetNillablePrevPath(s *string) *HPAmebloPostUpdateOne

SetNillablePrevPath sets the "prev_path" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableReblogs

func (hapuo *HPAmebloPostUpdateOne) SetNillableReblogs(i *int) *HPAmebloPostUpdateOne

SetNillableReblogs sets the "reblogs" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableRecrawlRequired

func (hapuo *HPAmebloPostUpdateOne) SetNillableRecrawlRequired(b *bool) *HPAmebloPostUpdateOne

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableTheme

func (hapuo *HPAmebloPostUpdateOne) SetNillableTheme(s *string) *HPAmebloPostUpdateOne

SetNillableTheme sets the "theme" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetNillableUpdatedAt

func (hapuo *HPAmebloPostUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPAmebloPostUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPAmebloPostUpdateOne) SetOwnerArtist

func (hapuo *HPAmebloPostUpdateOne) SetOwnerArtist(h *HPArtist) *HPAmebloPostUpdateOne

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPAmebloPostUpdateOne) SetOwnerArtistID

func (hapuo *HPAmebloPostUpdateOne) SetOwnerArtistID(i int) *HPAmebloPostUpdateOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPAmebloPostUpdateOne) SetOwnerMember

func (hapuo *HPAmebloPostUpdateOne) SetOwnerMember(h *HPMember) *HPAmebloPostUpdateOne

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPAmebloPostUpdateOne) SetOwnerMemberID

func (hapuo *HPAmebloPostUpdateOne) SetOwnerMemberID(i int) *HPAmebloPostUpdateOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPAmebloPostUpdateOne) SetPath

func (hapuo *HPAmebloPostUpdateOne) SetPath(s string) *HPAmebloPostUpdateOne

SetPath sets the "path" field.

func (*HPAmebloPostUpdateOne) SetPostAt

func (hapuo *HPAmebloPostUpdateOne) SetPostAt(t time.Time) *HPAmebloPostUpdateOne

SetPostAt sets the "post_at" field.

func (*HPAmebloPostUpdateOne) SetPrevPath

func (hapuo *HPAmebloPostUpdateOne) SetPrevPath(s string) *HPAmebloPostUpdateOne

SetPrevPath sets the "prev_path" field.

func (*HPAmebloPostUpdateOne) SetReblogs

func (hapuo *HPAmebloPostUpdateOne) SetReblogs(i int) *HPAmebloPostUpdateOne

SetReblogs sets the "reblogs" field.

func (*HPAmebloPostUpdateOne) SetRecrawlRequired

func (hapuo *HPAmebloPostUpdateOne) SetRecrawlRequired(b bool) *HPAmebloPostUpdateOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPAmebloPostUpdateOne) SetSource

func (hapuo *HPAmebloPostUpdateOne) SetSource(h hpameblopost.Source) *HPAmebloPostUpdateOne

SetSource sets the "source" field.

func (*HPAmebloPostUpdateOne) SetTheme

func (hapuo *HPAmebloPostUpdateOne) SetTheme(s string) *HPAmebloPostUpdateOne

SetTheme sets the "theme" field.

func (*HPAmebloPostUpdateOne) SetTitle

func (hapuo *HPAmebloPostUpdateOne) SetTitle(s string) *HPAmebloPostUpdateOne

SetTitle sets the "title" field.

func (*HPAmebloPostUpdateOne) SetUpdatedAt

func (hapuo *HPAmebloPostUpdateOne) SetUpdatedAt(t time.Time) *HPAmebloPostUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPAmebloPostUpdateOne) Where

func (hapuo *HPAmebloPostUpdateOne) Where(ps ...predicate.HPAmebloPost) *HPAmebloPostUpdateOne

Where appends a list predicates to the HPAmebloPostUpdate builder.

type HPAmebloPostUpsert

HPAmebloPostUpsert is the "OnConflict" setter.

type HPAmebloPostUpsert struct {
    *sql.UpdateSet
}

func (*HPAmebloPostUpsert) AddComments

func (u *HPAmebloPostUpsert) AddComments(v int) *HPAmebloPostUpsert

AddComments adds v to the "comments" field.

func (*HPAmebloPostUpsert) AddErrorCount

func (u *HPAmebloPostUpsert) AddErrorCount(v int) *HPAmebloPostUpsert

AddErrorCount adds v to the "error_count" field.

func (*HPAmebloPostUpsert) AddLikes

func (u *HPAmebloPostUpsert) AddLikes(v int) *HPAmebloPostUpsert

AddLikes adds v to the "likes" field.

func (*HPAmebloPostUpsert) AddReblogs

func (u *HPAmebloPostUpsert) AddReblogs(v int) *HPAmebloPostUpsert

AddReblogs adds v to the "reblogs" field.

func (*HPAmebloPostUpsert) ClearComments

func (u *HPAmebloPostUpsert) ClearComments() *HPAmebloPostUpsert

ClearComments clears the value of the "comments" field.

func (*HPAmebloPostUpsert) ClearCrawledAt

func (u *HPAmebloPostUpsert) ClearCrawledAt() *HPAmebloPostUpsert

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPAmebloPostUpsert) ClearImages

func (u *HPAmebloPostUpsert) ClearImages() *HPAmebloPostUpsert

ClearImages clears the value of the "images" field.

func (*HPAmebloPostUpsert) ClearLastErrorMessage

func (u *HPAmebloPostUpsert) ClearLastErrorMessage() *HPAmebloPostUpsert

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPAmebloPostUpsert) ClearLikes

func (u *HPAmebloPostUpsert) ClearLikes() *HPAmebloPostUpsert

ClearLikes clears the value of the "likes" field.

func (*HPAmebloPostUpsert) ClearManuallyModified

func (u *HPAmebloPostUpsert) ClearManuallyModified() *HPAmebloPostUpsert

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPAmebloPostUpsert) ClearMemberKey

func (u *HPAmebloPostUpsert) ClearMemberKey() *HPAmebloPostUpsert

ClearMemberKey clears the value of the "member_key" field.

func (*HPAmebloPostUpsert) ClearNextPath

func (u *HPAmebloPostUpsert) ClearNextPath() *HPAmebloPostUpsert

ClearNextPath clears the value of the "next_path" field.

func (*HPAmebloPostUpsert) ClearOwnerArtistID

func (u *HPAmebloPostUpsert) ClearOwnerArtistID() *HPAmebloPostUpsert

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPAmebloPostUpsert) ClearOwnerMemberID

func (u *HPAmebloPostUpsert) ClearOwnerMemberID() *HPAmebloPostUpsert

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPAmebloPostUpsert) ClearPrevPath

func (u *HPAmebloPostUpsert) ClearPrevPath() *HPAmebloPostUpsert

ClearPrevPath clears the value of the "prev_path" field.

func (*HPAmebloPostUpsert) ClearReblogs

func (u *HPAmebloPostUpsert) ClearReblogs() *HPAmebloPostUpsert

ClearReblogs clears the value of the "reblogs" field.

func (*HPAmebloPostUpsert) ClearRecrawlRequired

func (u *HPAmebloPostUpsert) ClearRecrawlRequired() *HPAmebloPostUpsert

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPAmebloPostUpsert) ClearTheme

func (u *HPAmebloPostUpsert) ClearTheme() *HPAmebloPostUpsert

ClearTheme clears the value of the "theme" field.

func (*HPAmebloPostUpsert) ClearUpdatedAt

func (u *HPAmebloPostUpsert) ClearUpdatedAt() *HPAmebloPostUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPAmebloPostUpsert) SetArtistKey

func (u *HPAmebloPostUpsert) SetArtistKey(v string) *HPAmebloPostUpsert

SetArtistKey sets the "artist_key" field.

func (*HPAmebloPostUpsert) SetComments

func (u *HPAmebloPostUpsert) SetComments(v int) *HPAmebloPostUpsert

SetComments sets the "comments" field.

func (*HPAmebloPostUpsert) SetCrawledAt

func (u *HPAmebloPostUpsert) SetCrawledAt(v time.Time) *HPAmebloPostUpsert

SetCrawledAt sets the "crawled_at" field.

func (*HPAmebloPostUpsert) SetDescription

func (u *HPAmebloPostUpsert) SetDescription(v string) *HPAmebloPostUpsert

SetDescription sets the "description" field.

func (*HPAmebloPostUpsert) SetErrorCount

func (u *HPAmebloPostUpsert) SetErrorCount(v int) *HPAmebloPostUpsert

SetErrorCount sets the "error_count" field.

func (*HPAmebloPostUpsert) SetImages

func (u *HPAmebloPostUpsert) SetImages(v []jsonfields.Media) *HPAmebloPostUpsert

SetImages sets the "images" field.

func (*HPAmebloPostUpsert) SetLastErrorMessage

func (u *HPAmebloPostUpsert) SetLastErrorMessage(v string) *HPAmebloPostUpsert

SetLastErrorMessage sets the "last_error_message" field.

func (*HPAmebloPostUpsert) SetLikes

func (u *HPAmebloPostUpsert) SetLikes(v int) *HPAmebloPostUpsert

SetLikes sets the "likes" field.

func (*HPAmebloPostUpsert) SetManuallyModified

func (u *HPAmebloPostUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPAmebloPostUpsert

SetManuallyModified sets the "manually_modified" field.

func (*HPAmebloPostUpsert) SetMemberKey

func (u *HPAmebloPostUpsert) SetMemberKey(v string) *HPAmebloPostUpsert

SetMemberKey sets the "member_key" field.

func (*HPAmebloPostUpsert) SetNextPath

func (u *HPAmebloPostUpsert) SetNextPath(v string) *HPAmebloPostUpsert

SetNextPath sets the "next_path" field.

func (*HPAmebloPostUpsert) SetOwnerArtistID

func (u *HPAmebloPostUpsert) SetOwnerArtistID(v int) *HPAmebloPostUpsert

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPAmebloPostUpsert) SetOwnerMemberID

func (u *HPAmebloPostUpsert) SetOwnerMemberID(v int) *HPAmebloPostUpsert

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPAmebloPostUpsert) SetPath

func (u *HPAmebloPostUpsert) SetPath(v string) *HPAmebloPostUpsert

SetPath sets the "path" field.

func (*HPAmebloPostUpsert) SetPostAt

func (u *HPAmebloPostUpsert) SetPostAt(v time.Time) *HPAmebloPostUpsert

SetPostAt sets the "post_at" field.

func (*HPAmebloPostUpsert) SetPrevPath

func (u *HPAmebloPostUpsert) SetPrevPath(v string) *HPAmebloPostUpsert

SetPrevPath sets the "prev_path" field.

func (*HPAmebloPostUpsert) SetReblogs

func (u *HPAmebloPostUpsert) SetReblogs(v int) *HPAmebloPostUpsert

SetReblogs sets the "reblogs" field.

func (*HPAmebloPostUpsert) SetRecrawlRequired

func (u *HPAmebloPostUpsert) SetRecrawlRequired(v bool) *HPAmebloPostUpsert

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPAmebloPostUpsert) SetSource

func (u *HPAmebloPostUpsert) SetSource(v hpameblopost.Source) *HPAmebloPostUpsert

SetSource sets the "source" field.

func (*HPAmebloPostUpsert) SetTheme

func (u *HPAmebloPostUpsert) SetTheme(v string) *HPAmebloPostUpsert

SetTheme sets the "theme" field.

func (*HPAmebloPostUpsert) SetTitle

func (u *HPAmebloPostUpsert) SetTitle(v string) *HPAmebloPostUpsert

SetTitle sets the "title" field.

func (*HPAmebloPostUpsert) SetUpdatedAt

func (u *HPAmebloPostUpsert) SetUpdatedAt(v time.Time) *HPAmebloPostUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPAmebloPostUpsert) UpdateArtistKey

func (u *HPAmebloPostUpsert) UpdateArtistKey() *HPAmebloPostUpsert

UpdateArtistKey sets the "artist_key" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateComments

func (u *HPAmebloPostUpsert) UpdateComments() *HPAmebloPostUpsert

UpdateComments sets the "comments" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateCrawledAt

func (u *HPAmebloPostUpsert) UpdateCrawledAt() *HPAmebloPostUpsert

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateDescription

func (u *HPAmebloPostUpsert) UpdateDescription() *HPAmebloPostUpsert

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateErrorCount

func (u *HPAmebloPostUpsert) UpdateErrorCount() *HPAmebloPostUpsert

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateImages

func (u *HPAmebloPostUpsert) UpdateImages() *HPAmebloPostUpsert

UpdateImages sets the "images" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateLastErrorMessage

func (u *HPAmebloPostUpsert) UpdateLastErrorMessage() *HPAmebloPostUpsert

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateLikes

func (u *HPAmebloPostUpsert) UpdateLikes() *HPAmebloPostUpsert

UpdateLikes sets the "likes" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateManuallyModified

func (u *HPAmebloPostUpsert) UpdateManuallyModified() *HPAmebloPostUpsert

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateMemberKey

func (u *HPAmebloPostUpsert) UpdateMemberKey() *HPAmebloPostUpsert

UpdateMemberKey sets the "member_key" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateNextPath

func (u *HPAmebloPostUpsert) UpdateNextPath() *HPAmebloPostUpsert

UpdateNextPath sets the "next_path" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateOwnerArtistID

func (u *HPAmebloPostUpsert) UpdateOwnerArtistID() *HPAmebloPostUpsert

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateOwnerMemberID

func (u *HPAmebloPostUpsert) UpdateOwnerMemberID() *HPAmebloPostUpsert

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdatePath

func (u *HPAmebloPostUpsert) UpdatePath() *HPAmebloPostUpsert

UpdatePath sets the "path" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdatePostAt

func (u *HPAmebloPostUpsert) UpdatePostAt() *HPAmebloPostUpsert

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdatePrevPath

func (u *HPAmebloPostUpsert) UpdatePrevPath() *HPAmebloPostUpsert

UpdatePrevPath sets the "prev_path" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateReblogs

func (u *HPAmebloPostUpsert) UpdateReblogs() *HPAmebloPostUpsert

UpdateReblogs sets the "reblogs" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateRecrawlRequired

func (u *HPAmebloPostUpsert) UpdateRecrawlRequired() *HPAmebloPostUpsert

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateSource

func (u *HPAmebloPostUpsert) UpdateSource() *HPAmebloPostUpsert

UpdateSource sets the "source" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateTheme

func (u *HPAmebloPostUpsert) UpdateTheme() *HPAmebloPostUpsert

UpdateTheme sets the "theme" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateTitle

func (u *HPAmebloPostUpsert) UpdateTitle() *HPAmebloPostUpsert

UpdateTitle sets the "title" field to the value that was provided on create.

func (*HPAmebloPostUpsert) UpdateUpdatedAt

func (u *HPAmebloPostUpsert) UpdateUpdatedAt() *HPAmebloPostUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPAmebloPostUpsertBulk

HPAmebloPostUpsertBulk is the builder for "upsert"-ing a bulk of HPAmebloPost nodes.

type HPAmebloPostUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostUpsertBulk) AddComments

func (u *HPAmebloPostUpsertBulk) AddComments(v int) *HPAmebloPostUpsertBulk

AddComments adds v to the "comments" field.

func (*HPAmebloPostUpsertBulk) AddErrorCount

func (u *HPAmebloPostUpsertBulk) AddErrorCount(v int) *HPAmebloPostUpsertBulk

AddErrorCount adds v to the "error_count" field.

func (*HPAmebloPostUpsertBulk) AddLikes

func (u *HPAmebloPostUpsertBulk) AddLikes(v int) *HPAmebloPostUpsertBulk

AddLikes adds v to the "likes" field.

func (*HPAmebloPostUpsertBulk) AddReblogs

func (u *HPAmebloPostUpsertBulk) AddReblogs(v int) *HPAmebloPostUpsertBulk

AddReblogs adds v to the "reblogs" field.

func (*HPAmebloPostUpsertBulk) ClearComments

func (u *HPAmebloPostUpsertBulk) ClearComments() *HPAmebloPostUpsertBulk

ClearComments clears the value of the "comments" field.

func (*HPAmebloPostUpsertBulk) ClearCrawledAt

func (u *HPAmebloPostUpsertBulk) ClearCrawledAt() *HPAmebloPostUpsertBulk

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPAmebloPostUpsertBulk) ClearImages

func (u *HPAmebloPostUpsertBulk) ClearImages() *HPAmebloPostUpsertBulk

ClearImages clears the value of the "images" field.

func (*HPAmebloPostUpsertBulk) ClearLastErrorMessage

func (u *HPAmebloPostUpsertBulk) ClearLastErrorMessage() *HPAmebloPostUpsertBulk

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPAmebloPostUpsertBulk) ClearLikes

func (u *HPAmebloPostUpsertBulk) ClearLikes() *HPAmebloPostUpsertBulk

ClearLikes clears the value of the "likes" field.

func (*HPAmebloPostUpsertBulk) ClearManuallyModified

func (u *HPAmebloPostUpsertBulk) ClearManuallyModified() *HPAmebloPostUpsertBulk

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPAmebloPostUpsertBulk) ClearMemberKey

func (u *HPAmebloPostUpsertBulk) ClearMemberKey() *HPAmebloPostUpsertBulk

ClearMemberKey clears the value of the "member_key" field.

func (*HPAmebloPostUpsertBulk) ClearNextPath

func (u *HPAmebloPostUpsertBulk) ClearNextPath() *HPAmebloPostUpsertBulk

ClearNextPath clears the value of the "next_path" field.

func (*HPAmebloPostUpsertBulk) ClearOwnerArtistID

func (u *HPAmebloPostUpsertBulk) ClearOwnerArtistID() *HPAmebloPostUpsertBulk

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPAmebloPostUpsertBulk) ClearOwnerMemberID

func (u *HPAmebloPostUpsertBulk) ClearOwnerMemberID() *HPAmebloPostUpsertBulk

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPAmebloPostUpsertBulk) ClearPrevPath

func (u *HPAmebloPostUpsertBulk) ClearPrevPath() *HPAmebloPostUpsertBulk

ClearPrevPath clears the value of the "prev_path" field.

func (*HPAmebloPostUpsertBulk) ClearReblogs

func (u *HPAmebloPostUpsertBulk) ClearReblogs() *HPAmebloPostUpsertBulk

ClearReblogs clears the value of the "reblogs" field.

func (*HPAmebloPostUpsertBulk) ClearRecrawlRequired

func (u *HPAmebloPostUpsertBulk) ClearRecrawlRequired() *HPAmebloPostUpsertBulk

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPAmebloPostUpsertBulk) ClearTheme

func (u *HPAmebloPostUpsertBulk) ClearTheme() *HPAmebloPostUpsertBulk

ClearTheme clears the value of the "theme" field.

func (*HPAmebloPostUpsertBulk) ClearUpdatedAt

func (u *HPAmebloPostUpsertBulk) ClearUpdatedAt() *HPAmebloPostUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPAmebloPostUpsertBulk) DoNothing

func (u *HPAmebloPostUpsertBulk) DoNothing() *HPAmebloPostUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPAmebloPostUpsertBulk) Exec

func (u *HPAmebloPostUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAmebloPostUpsertBulk) ExecX

func (u *HPAmebloPostUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostUpsertBulk) Ignore

func (u *HPAmebloPostUpsertBulk) Ignore() *HPAmebloPostUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPAmebloPost.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPAmebloPostUpsertBulk) SetArtistKey

func (u *HPAmebloPostUpsertBulk) SetArtistKey(v string) *HPAmebloPostUpsertBulk

SetArtistKey sets the "artist_key" field.

func (*HPAmebloPostUpsertBulk) SetComments

func (u *HPAmebloPostUpsertBulk) SetComments(v int) *HPAmebloPostUpsertBulk

SetComments sets the "comments" field.

func (*HPAmebloPostUpsertBulk) SetCrawledAt

func (u *HPAmebloPostUpsertBulk) SetCrawledAt(v time.Time) *HPAmebloPostUpsertBulk

SetCrawledAt sets the "crawled_at" field.

func (*HPAmebloPostUpsertBulk) SetDescription

func (u *HPAmebloPostUpsertBulk) SetDescription(v string) *HPAmebloPostUpsertBulk

SetDescription sets the "description" field.

func (*HPAmebloPostUpsertBulk) SetErrorCount

func (u *HPAmebloPostUpsertBulk) SetErrorCount(v int) *HPAmebloPostUpsertBulk

SetErrorCount sets the "error_count" field.

func (*HPAmebloPostUpsertBulk) SetImages

func (u *HPAmebloPostUpsertBulk) SetImages(v []jsonfields.Media) *HPAmebloPostUpsertBulk

SetImages sets the "images" field.

func (*HPAmebloPostUpsertBulk) SetLastErrorMessage

func (u *HPAmebloPostUpsertBulk) SetLastErrorMessage(v string) *HPAmebloPostUpsertBulk

SetLastErrorMessage sets the "last_error_message" field.

func (*HPAmebloPostUpsertBulk) SetLikes

func (u *HPAmebloPostUpsertBulk) SetLikes(v int) *HPAmebloPostUpsertBulk

SetLikes sets the "likes" field.

func (*HPAmebloPostUpsertBulk) SetManuallyModified

func (u *HPAmebloPostUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPAmebloPostUpsertBulk

SetManuallyModified sets the "manually_modified" field.

func (*HPAmebloPostUpsertBulk) SetMemberKey

func (u *HPAmebloPostUpsertBulk) SetMemberKey(v string) *HPAmebloPostUpsertBulk

SetMemberKey sets the "member_key" field.

func (*HPAmebloPostUpsertBulk) SetNextPath

func (u *HPAmebloPostUpsertBulk) SetNextPath(v string) *HPAmebloPostUpsertBulk

SetNextPath sets the "next_path" field.

func (*HPAmebloPostUpsertBulk) SetOwnerArtistID

func (u *HPAmebloPostUpsertBulk) SetOwnerArtistID(v int) *HPAmebloPostUpsertBulk

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPAmebloPostUpsertBulk) SetOwnerMemberID

func (u *HPAmebloPostUpsertBulk) SetOwnerMemberID(v int) *HPAmebloPostUpsertBulk

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPAmebloPostUpsertBulk) SetPath

func (u *HPAmebloPostUpsertBulk) SetPath(v string) *HPAmebloPostUpsertBulk

SetPath sets the "path" field.

func (*HPAmebloPostUpsertBulk) SetPostAt

func (u *HPAmebloPostUpsertBulk) SetPostAt(v time.Time) *HPAmebloPostUpsertBulk

SetPostAt sets the "post_at" field.

func (*HPAmebloPostUpsertBulk) SetPrevPath

func (u *HPAmebloPostUpsertBulk) SetPrevPath(v string) *HPAmebloPostUpsertBulk

SetPrevPath sets the "prev_path" field.

func (*HPAmebloPostUpsertBulk) SetReblogs

func (u *HPAmebloPostUpsertBulk) SetReblogs(v int) *HPAmebloPostUpsertBulk

SetReblogs sets the "reblogs" field.

func (*HPAmebloPostUpsertBulk) SetRecrawlRequired

func (u *HPAmebloPostUpsertBulk) SetRecrawlRequired(v bool) *HPAmebloPostUpsertBulk

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPAmebloPostUpsertBulk) SetSource

func (u *HPAmebloPostUpsertBulk) SetSource(v hpameblopost.Source) *HPAmebloPostUpsertBulk

SetSource sets the "source" field.

func (*HPAmebloPostUpsertBulk) SetTheme

func (u *HPAmebloPostUpsertBulk) SetTheme(v string) *HPAmebloPostUpsertBulk

SetTheme sets the "theme" field.

func (*HPAmebloPostUpsertBulk) SetTitle

func (u *HPAmebloPostUpsertBulk) SetTitle(v string) *HPAmebloPostUpsertBulk

SetTitle sets the "title" field.

func (*HPAmebloPostUpsertBulk) SetUpdatedAt

func (u *HPAmebloPostUpsertBulk) SetUpdatedAt(v time.Time) *HPAmebloPostUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPAmebloPostUpsertBulk) Update

func (u *HPAmebloPostUpsertBulk) Update(set func(*HPAmebloPostUpsert)) *HPAmebloPostUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPAmebloPostCreateBulk.OnConflict documentation for more info.

func (*HPAmebloPostUpsertBulk) UpdateArtistKey

func (u *HPAmebloPostUpsertBulk) UpdateArtistKey() *HPAmebloPostUpsertBulk

UpdateArtistKey sets the "artist_key" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateComments

func (u *HPAmebloPostUpsertBulk) UpdateComments() *HPAmebloPostUpsertBulk

UpdateComments sets the "comments" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateCrawledAt

func (u *HPAmebloPostUpsertBulk) UpdateCrawledAt() *HPAmebloPostUpsertBulk

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateDescription

func (u *HPAmebloPostUpsertBulk) UpdateDescription() *HPAmebloPostUpsertBulk

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateErrorCount

func (u *HPAmebloPostUpsertBulk) UpdateErrorCount() *HPAmebloPostUpsertBulk

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateImages

func (u *HPAmebloPostUpsertBulk) UpdateImages() *HPAmebloPostUpsertBulk

UpdateImages sets the "images" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateLastErrorMessage

func (u *HPAmebloPostUpsertBulk) UpdateLastErrorMessage() *HPAmebloPostUpsertBulk

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateLikes

func (u *HPAmebloPostUpsertBulk) UpdateLikes() *HPAmebloPostUpsertBulk

UpdateLikes sets the "likes" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateManuallyModified

func (u *HPAmebloPostUpsertBulk) UpdateManuallyModified() *HPAmebloPostUpsertBulk

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateMemberKey

func (u *HPAmebloPostUpsertBulk) UpdateMemberKey() *HPAmebloPostUpsertBulk

UpdateMemberKey sets the "member_key" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateNewValues

func (u *HPAmebloPostUpsertBulk) UpdateNewValues() *HPAmebloPostUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPAmebloPost.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPAmebloPostUpsertBulk) UpdateNextPath

func (u *HPAmebloPostUpsertBulk) UpdateNextPath() *HPAmebloPostUpsertBulk

UpdateNextPath sets the "next_path" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateOwnerArtistID

func (u *HPAmebloPostUpsertBulk) UpdateOwnerArtistID() *HPAmebloPostUpsertBulk

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateOwnerMemberID

func (u *HPAmebloPostUpsertBulk) UpdateOwnerMemberID() *HPAmebloPostUpsertBulk

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdatePath

func (u *HPAmebloPostUpsertBulk) UpdatePath() *HPAmebloPostUpsertBulk

UpdatePath sets the "path" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdatePostAt

func (u *HPAmebloPostUpsertBulk) UpdatePostAt() *HPAmebloPostUpsertBulk

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdatePrevPath

func (u *HPAmebloPostUpsertBulk) UpdatePrevPath() *HPAmebloPostUpsertBulk

UpdatePrevPath sets the "prev_path" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateReblogs

func (u *HPAmebloPostUpsertBulk) UpdateReblogs() *HPAmebloPostUpsertBulk

UpdateReblogs sets the "reblogs" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateRecrawlRequired

func (u *HPAmebloPostUpsertBulk) UpdateRecrawlRequired() *HPAmebloPostUpsertBulk

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateSource

func (u *HPAmebloPostUpsertBulk) UpdateSource() *HPAmebloPostUpsertBulk

UpdateSource sets the "source" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateTheme

func (u *HPAmebloPostUpsertBulk) UpdateTheme() *HPAmebloPostUpsertBulk

UpdateTheme sets the "theme" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateTitle

func (u *HPAmebloPostUpsertBulk) UpdateTitle() *HPAmebloPostUpsertBulk

UpdateTitle sets the "title" field to the value that was provided on create.

func (*HPAmebloPostUpsertBulk) UpdateUpdatedAt

func (u *HPAmebloPostUpsertBulk) UpdateUpdatedAt() *HPAmebloPostUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPAmebloPostUpsertOne

HPAmebloPostUpsertOne is the builder for "upsert"-ing

one HPAmebloPost node.
type HPAmebloPostUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPAmebloPostUpsertOne) AddComments

func (u *HPAmebloPostUpsertOne) AddComments(v int) *HPAmebloPostUpsertOne

AddComments adds v to the "comments" field.

func (*HPAmebloPostUpsertOne) AddErrorCount

func (u *HPAmebloPostUpsertOne) AddErrorCount(v int) *HPAmebloPostUpsertOne

AddErrorCount adds v to the "error_count" field.

func (*HPAmebloPostUpsertOne) AddLikes

func (u *HPAmebloPostUpsertOne) AddLikes(v int) *HPAmebloPostUpsertOne

AddLikes adds v to the "likes" field.

func (*HPAmebloPostUpsertOne) AddReblogs

func (u *HPAmebloPostUpsertOne) AddReblogs(v int) *HPAmebloPostUpsertOne

AddReblogs adds v to the "reblogs" field.

func (*HPAmebloPostUpsertOne) ClearComments

func (u *HPAmebloPostUpsertOne) ClearComments() *HPAmebloPostUpsertOne

ClearComments clears the value of the "comments" field.

func (*HPAmebloPostUpsertOne) ClearCrawledAt

func (u *HPAmebloPostUpsertOne) ClearCrawledAt() *HPAmebloPostUpsertOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPAmebloPostUpsertOne) ClearImages

func (u *HPAmebloPostUpsertOne) ClearImages() *HPAmebloPostUpsertOne

ClearImages clears the value of the "images" field.

func (*HPAmebloPostUpsertOne) ClearLastErrorMessage

func (u *HPAmebloPostUpsertOne) ClearLastErrorMessage() *HPAmebloPostUpsertOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPAmebloPostUpsertOne) ClearLikes

func (u *HPAmebloPostUpsertOne) ClearLikes() *HPAmebloPostUpsertOne

ClearLikes clears the value of the "likes" field.

func (*HPAmebloPostUpsertOne) ClearManuallyModified

func (u *HPAmebloPostUpsertOne) ClearManuallyModified() *HPAmebloPostUpsertOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPAmebloPostUpsertOne) ClearMemberKey

func (u *HPAmebloPostUpsertOne) ClearMemberKey() *HPAmebloPostUpsertOne

ClearMemberKey clears the value of the "member_key" field.

func (*HPAmebloPostUpsertOne) ClearNextPath

func (u *HPAmebloPostUpsertOne) ClearNextPath() *HPAmebloPostUpsertOne

ClearNextPath clears the value of the "next_path" field.

func (*HPAmebloPostUpsertOne) ClearOwnerArtistID

func (u *HPAmebloPostUpsertOne) ClearOwnerArtistID() *HPAmebloPostUpsertOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPAmebloPostUpsertOne) ClearOwnerMemberID

func (u *HPAmebloPostUpsertOne) ClearOwnerMemberID() *HPAmebloPostUpsertOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPAmebloPostUpsertOne) ClearPrevPath

func (u *HPAmebloPostUpsertOne) ClearPrevPath() *HPAmebloPostUpsertOne

ClearPrevPath clears the value of the "prev_path" field.

func (*HPAmebloPostUpsertOne) ClearReblogs

func (u *HPAmebloPostUpsertOne) ClearReblogs() *HPAmebloPostUpsertOne

ClearReblogs clears the value of the "reblogs" field.

func (*HPAmebloPostUpsertOne) ClearRecrawlRequired

func (u *HPAmebloPostUpsertOne) ClearRecrawlRequired() *HPAmebloPostUpsertOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPAmebloPostUpsertOne) ClearTheme

func (u *HPAmebloPostUpsertOne) ClearTheme() *HPAmebloPostUpsertOne

ClearTheme clears the value of the "theme" field.

func (*HPAmebloPostUpsertOne) ClearUpdatedAt

func (u *HPAmebloPostUpsertOne) ClearUpdatedAt() *HPAmebloPostUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPAmebloPostUpsertOne) DoNothing

func (u *HPAmebloPostUpsertOne) DoNothing() *HPAmebloPostUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPAmebloPostUpsertOne) Exec

func (u *HPAmebloPostUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAmebloPostUpsertOne) ExecX

func (u *HPAmebloPostUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAmebloPostUpsertOne) ID

func (u *HPAmebloPostUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPAmebloPostUpsertOne) IDX

func (u *HPAmebloPostUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPAmebloPostUpsertOne) Ignore

func (u *HPAmebloPostUpsertOne) Ignore() *HPAmebloPostUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPAmebloPost.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPAmebloPostUpsertOne) SetArtistKey

func (u *HPAmebloPostUpsertOne) SetArtistKey(v string) *HPAmebloPostUpsertOne

SetArtistKey sets the "artist_key" field.

func (*HPAmebloPostUpsertOne) SetComments

func (u *HPAmebloPostUpsertOne) SetComments(v int) *HPAmebloPostUpsertOne

SetComments sets the "comments" field.

func (*HPAmebloPostUpsertOne) SetCrawledAt

func (u *HPAmebloPostUpsertOne) SetCrawledAt(v time.Time) *HPAmebloPostUpsertOne

SetCrawledAt sets the "crawled_at" field.

func (*HPAmebloPostUpsertOne) SetDescription

func (u *HPAmebloPostUpsertOne) SetDescription(v string) *HPAmebloPostUpsertOne

SetDescription sets the "description" field.

func (*HPAmebloPostUpsertOne) SetErrorCount

func (u *HPAmebloPostUpsertOne) SetErrorCount(v int) *HPAmebloPostUpsertOne

SetErrorCount sets the "error_count" field.

func (*HPAmebloPostUpsertOne) SetImages

func (u *HPAmebloPostUpsertOne) SetImages(v []jsonfields.Media) *HPAmebloPostUpsertOne

SetImages sets the "images" field.

func (*HPAmebloPostUpsertOne) SetLastErrorMessage

func (u *HPAmebloPostUpsertOne) SetLastErrorMessage(v string) *HPAmebloPostUpsertOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPAmebloPostUpsertOne) SetLikes

func (u *HPAmebloPostUpsertOne) SetLikes(v int) *HPAmebloPostUpsertOne

SetLikes sets the "likes" field.

func (*HPAmebloPostUpsertOne) SetManuallyModified

func (u *HPAmebloPostUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPAmebloPostUpsertOne

SetManuallyModified sets the "manually_modified" field.

func (*HPAmebloPostUpsertOne) SetMemberKey

func (u *HPAmebloPostUpsertOne) SetMemberKey(v string) *HPAmebloPostUpsertOne

SetMemberKey sets the "member_key" field.

func (*HPAmebloPostUpsertOne) SetNextPath

func (u *HPAmebloPostUpsertOne) SetNextPath(v string) *HPAmebloPostUpsertOne

SetNextPath sets the "next_path" field.

func (*HPAmebloPostUpsertOne) SetOwnerArtistID

func (u *HPAmebloPostUpsertOne) SetOwnerArtistID(v int) *HPAmebloPostUpsertOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPAmebloPostUpsertOne) SetOwnerMemberID

func (u *HPAmebloPostUpsertOne) SetOwnerMemberID(v int) *HPAmebloPostUpsertOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPAmebloPostUpsertOne) SetPath

func (u *HPAmebloPostUpsertOne) SetPath(v string) *HPAmebloPostUpsertOne

SetPath sets the "path" field.

func (*HPAmebloPostUpsertOne) SetPostAt

func (u *HPAmebloPostUpsertOne) SetPostAt(v time.Time) *HPAmebloPostUpsertOne

SetPostAt sets the "post_at" field.

func (*HPAmebloPostUpsertOne) SetPrevPath

func (u *HPAmebloPostUpsertOne) SetPrevPath(v string) *HPAmebloPostUpsertOne

SetPrevPath sets the "prev_path" field.

func (*HPAmebloPostUpsertOne) SetReblogs

func (u *HPAmebloPostUpsertOne) SetReblogs(v int) *HPAmebloPostUpsertOne

SetReblogs sets the "reblogs" field.

func (*HPAmebloPostUpsertOne) SetRecrawlRequired

func (u *HPAmebloPostUpsertOne) SetRecrawlRequired(v bool) *HPAmebloPostUpsertOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPAmebloPostUpsertOne) SetSource

func (u *HPAmebloPostUpsertOne) SetSource(v hpameblopost.Source) *HPAmebloPostUpsertOne

SetSource sets the "source" field.

func (*HPAmebloPostUpsertOne) SetTheme

func (u *HPAmebloPostUpsertOne) SetTheme(v string) *HPAmebloPostUpsertOne

SetTheme sets the "theme" field.

func (*HPAmebloPostUpsertOne) SetTitle

func (u *HPAmebloPostUpsertOne) SetTitle(v string) *HPAmebloPostUpsertOne

SetTitle sets the "title" field.

func (*HPAmebloPostUpsertOne) SetUpdatedAt

func (u *HPAmebloPostUpsertOne) SetUpdatedAt(v time.Time) *HPAmebloPostUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPAmebloPostUpsertOne) Update

func (u *HPAmebloPostUpsertOne) Update(set func(*HPAmebloPostUpsert)) *HPAmebloPostUpsertOne

Update allows overriding fields `UPDATE` values. See the HPAmebloPostCreate.OnConflict documentation for more info.

func (*HPAmebloPostUpsertOne) UpdateArtistKey

func (u *HPAmebloPostUpsertOne) UpdateArtistKey() *HPAmebloPostUpsertOne

UpdateArtistKey sets the "artist_key" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateComments

func (u *HPAmebloPostUpsertOne) UpdateComments() *HPAmebloPostUpsertOne

UpdateComments sets the "comments" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateCrawledAt

func (u *HPAmebloPostUpsertOne) UpdateCrawledAt() *HPAmebloPostUpsertOne

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateDescription

func (u *HPAmebloPostUpsertOne) UpdateDescription() *HPAmebloPostUpsertOne

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateErrorCount

func (u *HPAmebloPostUpsertOne) UpdateErrorCount() *HPAmebloPostUpsertOne

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateImages

func (u *HPAmebloPostUpsertOne) UpdateImages() *HPAmebloPostUpsertOne

UpdateImages sets the "images" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateLastErrorMessage

func (u *HPAmebloPostUpsertOne) UpdateLastErrorMessage() *HPAmebloPostUpsertOne

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateLikes

func (u *HPAmebloPostUpsertOne) UpdateLikes() *HPAmebloPostUpsertOne

UpdateLikes sets the "likes" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateManuallyModified

func (u *HPAmebloPostUpsertOne) UpdateManuallyModified() *HPAmebloPostUpsertOne

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateMemberKey

func (u *HPAmebloPostUpsertOne) UpdateMemberKey() *HPAmebloPostUpsertOne

UpdateMemberKey sets the "member_key" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateNewValues

func (u *HPAmebloPostUpsertOne) UpdateNewValues() *HPAmebloPostUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPAmebloPost.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPAmebloPostUpsertOne) UpdateNextPath

func (u *HPAmebloPostUpsertOne) UpdateNextPath() *HPAmebloPostUpsertOne

UpdateNextPath sets the "next_path" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateOwnerArtistID

func (u *HPAmebloPostUpsertOne) UpdateOwnerArtistID() *HPAmebloPostUpsertOne

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateOwnerMemberID

func (u *HPAmebloPostUpsertOne) UpdateOwnerMemberID() *HPAmebloPostUpsertOne

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdatePath

func (u *HPAmebloPostUpsertOne) UpdatePath() *HPAmebloPostUpsertOne

UpdatePath sets the "path" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdatePostAt

func (u *HPAmebloPostUpsertOne) UpdatePostAt() *HPAmebloPostUpsertOne

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdatePrevPath

func (u *HPAmebloPostUpsertOne) UpdatePrevPath() *HPAmebloPostUpsertOne

UpdatePrevPath sets the "prev_path" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateReblogs

func (u *HPAmebloPostUpsertOne) UpdateReblogs() *HPAmebloPostUpsertOne

UpdateReblogs sets the "reblogs" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateRecrawlRequired

func (u *HPAmebloPostUpsertOne) UpdateRecrawlRequired() *HPAmebloPostUpsertOne

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateSource

func (u *HPAmebloPostUpsertOne) UpdateSource() *HPAmebloPostUpsertOne

UpdateSource sets the "source" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateTheme

func (u *HPAmebloPostUpsertOne) UpdateTheme() *HPAmebloPostUpsertOne

UpdateTheme sets the "theme" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateTitle

func (u *HPAmebloPostUpsertOne) UpdateTitle() *HPAmebloPostUpsertOne

UpdateTitle sets the "title" field to the value that was provided on create.

func (*HPAmebloPostUpsertOne) UpdateUpdatedAt

func (u *HPAmebloPostUpsertOne) UpdateUpdatedAt() *HPAmebloPostUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPAmebloPosts

HPAmebloPosts is a parsable slice of HPAmebloPost.

type HPAmebloPosts []*HPAmebloPost

type HPArtist

HPArtist is the model entity for the HPArtist schema.

type HPArtist struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CrawledAt holds the value of the "crawled_at" field.
    CrawledAt *time.Time `json:"crawled_at,omitempty"`
    // ErrorCount holds the value of the "error_count" field.
    ErrorCount int `json:"error_count,omitempty"`
    // ManuallyModified holds the value of the "manually_modified" field.
    ManuallyModified *jsonfields.ManuallyModified `json:"manually_modified,omitempty"`
    // LastErrorMessage holds the value of the "last_error_message" field.
    LastErrorMessage *string `json:"last_error_message,omitempty"`
    // RecrawlRequired holds the value of the "recrawl_required" field.
    RecrawlRequired bool `json:"recrawl_required,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Key holds the value of the "key" field.
    Key string `json:"key,omitempty"`
    // Name holds the value of the "name" field.
    Name string `json:"name,omitempty"`
    // ThumbnailURL holds the value of the "thumbnail_url" field.
    ThumbnailURL string `json:"thumbnail_url,omitempty"`
    // Index holds the value of the "index" field.
    Index int `json:"index,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPArtistQuery when eager-loading is set.
    Edges HPArtistEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPArtist) IsNode

func (n *HPArtist) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPArtist) Members

func (ha *HPArtist) Members(ctx context.Context) (result []*HPMember, err error)

func (*HPArtist) NamedAssets

func (ha *HPArtist) NamedAssets(name string) ([]*HPAsset, error)

NamedAssets returns the Assets named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedMembers

func (ha *HPArtist) NamedMembers(name string) ([]*HPMember, error)

NamedMembers returns the Members named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedOwningAmebloPosts

func (ha *HPArtist) NamedOwningAmebloPosts(name string) ([]*HPAmebloPost, error)

NamedOwningAmebloPosts returns the OwningAmebloPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedOwningFeed

func (ha *HPArtist) NamedOwningFeed(name string) ([]*HPFeedItem, error)

NamedOwningFeed returns the OwningFeed named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedOwningIgPosts

func (ha *HPArtist) NamedOwningIgPosts(name string) ([]*HPIgPost, error)

NamedOwningIgPosts returns the OwningIgPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedTaggedAmebloPosts

func (ha *HPArtist) NamedTaggedAmebloPosts(name string) ([]*HPAmebloPost, error)

NamedTaggedAmebloPosts returns the TaggedAmebloPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedTaggedElineupMallItems

func (ha *HPArtist) NamedTaggedElineupMallItems(name string) ([]*HPElineupMallItem, error)

NamedTaggedElineupMallItems returns the TaggedElineupMallItems named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedTaggedFeed

func (ha *HPArtist) NamedTaggedFeed(name string) ([]*HPFeedItem, error)

NamedTaggedFeed returns the TaggedFeed named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) NamedTaggedIgPosts

func (ha *HPArtist) NamedTaggedIgPosts(name string) ([]*HPIgPost, error)

NamedTaggedIgPosts returns the TaggedIgPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPArtist) QueryAssets

func (ha *HPArtist) QueryAssets() *HPAssetQuery

QueryAssets queries the "assets" edge of the HPArtist entity.

func (*HPArtist) QueryMembers

func (ha *HPArtist) QueryMembers() *HPMemberQuery

QueryMembers queries the "members" edge of the HPArtist entity.

func (*HPArtist) QueryOwningAmebloPosts

func (ha *HPArtist) QueryOwningAmebloPosts() *HPAmebloPostQuery

QueryOwningAmebloPosts queries the "owning_ameblo_posts" edge of the HPArtist entity.

func (*HPArtist) QueryOwningFeed

func (ha *HPArtist) QueryOwningFeed() *HPFeedItemQuery

QueryOwningFeed queries the "owning_feed" edge of the HPArtist entity.

func (*HPArtist) QueryOwningIgPosts

func (ha *HPArtist) QueryOwningIgPosts() *HPIgPostQuery

QueryOwningIgPosts queries the "owning_ig_posts" edge of the HPArtist entity.

func (*HPArtist) QueryTaggedAmebloPosts

func (ha *HPArtist) QueryTaggedAmebloPosts() *HPAmebloPostQuery

QueryTaggedAmebloPosts queries the "tagged_ameblo_posts" edge of the HPArtist entity.

func (*HPArtist) QueryTaggedElineupMallItems

func (ha *HPArtist) QueryTaggedElineupMallItems() *HPElineupMallItemQuery

QueryTaggedElineupMallItems queries the "tagged_elineup_mall_items" edge of the HPArtist entity.

func (*HPArtist) QueryTaggedFeed

func (ha *HPArtist) QueryTaggedFeed() *HPFeedItemQuery

QueryTaggedFeed queries the "tagged_feed" edge of the HPArtist entity.

func (*HPArtist) QueryTaggedIgPosts

func (ha *HPArtist) QueryTaggedIgPosts() *HPIgPostQuery

QueryTaggedIgPosts queries the "tagged_ig_posts" edge of the HPArtist entity.

func (*HPArtist) String

func (ha *HPArtist) String() string

String implements the fmt.Stringer.

func (*HPArtist) ToEdge

func (ha *HPArtist) ToEdge(order *HPArtistOrder) *HPArtistEdge

ToEdge converts HPArtist into HPArtistEdge.

func (*HPArtist) Unwrap

func (ha *HPArtist) Unwrap() *HPArtist

Unwrap unwraps the HPArtist entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPArtist) Update

func (ha *HPArtist) Update() *HPArtistUpdateOne

Update returns a builder for updating this HPArtist. Note that you need to call HPArtist.Unwrap() before calling this method if this HPArtist was returned from a transaction, and the transaction was committed or rolled back.

func (*HPArtist) Value

func (ha *HPArtist) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPArtist. This includes values selected through modifiers, order, etc.

type HPArtistClient

HPArtistClient is a client for the HPArtist schema.

type HPArtistClient struct {
    // contains filtered or unexported fields
}

func NewHPArtistClient

func NewHPArtistClient(c config) *HPArtistClient

NewHPArtistClient returns a client for the HPArtist from the given config.

func (*HPArtistClient) Create

func (c *HPArtistClient) Create() *HPArtistCreate

Create returns a builder for creating a HPArtist entity.

func (*HPArtistClient) CreateBulk

func (c *HPArtistClient) CreateBulk(builders ...*HPArtistCreate) *HPArtistCreateBulk

CreateBulk returns a builder for creating a bulk of HPArtist entities.

func (*HPArtistClient) Delete

func (c *HPArtistClient) Delete() *HPArtistDelete

Delete returns a delete builder for HPArtist.

func (*HPArtistClient) DeleteOne

func (c *HPArtistClient) DeleteOne(ha *HPArtist) *HPArtistDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPArtistClient) DeleteOneID

func (c *HPArtistClient) DeleteOneID(id int) *HPArtistDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPArtistClient) Get

func (c *HPArtistClient) Get(ctx context.Context, id int) (*HPArtist, error)

Get returns a HPArtist entity by its id.

func (*HPArtistClient) GetX

func (c *HPArtistClient) GetX(ctx context.Context, id int) *HPArtist

GetX is like Get, but panics if an error occurs.

func (*HPArtistClient) Hooks

func (c *HPArtistClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPArtistClient) Intercept

func (c *HPArtistClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpartist.Intercept(f(g(h())))`.

func (*HPArtistClient) Interceptors

func (c *HPArtistClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPArtistClient) Query

func (c *HPArtistClient) Query() *HPArtistQuery

Query returns a query builder for HPArtist.

func (*HPArtistClient) QueryAssets

func (c *HPArtistClient) QueryAssets(ha *HPArtist) *HPAssetQuery

QueryAssets queries the assets edge of a HPArtist.

func (*HPArtistClient) QueryMembers

func (c *HPArtistClient) QueryMembers(ha *HPArtist) *HPMemberQuery

QueryMembers queries the members edge of a HPArtist.

func (*HPArtistClient) QueryOwningAmebloPosts

func (c *HPArtistClient) QueryOwningAmebloPosts(ha *HPArtist) *HPAmebloPostQuery

QueryOwningAmebloPosts queries the owning_ameblo_posts edge of a HPArtist.

func (*HPArtistClient) QueryOwningFeed

func (c *HPArtistClient) QueryOwningFeed(ha *HPArtist) *HPFeedItemQuery

QueryOwningFeed queries the owning_feed edge of a HPArtist.

func (*HPArtistClient) QueryOwningIgPosts

func (c *HPArtistClient) QueryOwningIgPosts(ha *HPArtist) *HPIgPostQuery

QueryOwningIgPosts queries the owning_ig_posts edge of a HPArtist.

func (*HPArtistClient) QueryTaggedAmebloPosts

func (c *HPArtistClient) QueryTaggedAmebloPosts(ha *HPArtist) *HPAmebloPostQuery

QueryTaggedAmebloPosts queries the tagged_ameblo_posts edge of a HPArtist.

func (*HPArtistClient) QueryTaggedElineupMallItems

func (c *HPArtistClient) QueryTaggedElineupMallItems(ha *HPArtist) *HPElineupMallItemQuery

QueryTaggedElineupMallItems queries the tagged_elineup_mall_items edge of a HPArtist.

func (*HPArtistClient) QueryTaggedFeed

func (c *HPArtistClient) QueryTaggedFeed(ha *HPArtist) *HPFeedItemQuery

QueryTaggedFeed queries the tagged_feed edge of a HPArtist.

func (*HPArtistClient) QueryTaggedIgPosts

func (c *HPArtistClient) QueryTaggedIgPosts(ha *HPArtist) *HPIgPostQuery

QueryTaggedIgPosts queries the tagged_ig_posts edge of a HPArtist.

func (*HPArtistClient) Update

func (c *HPArtistClient) Update() *HPArtistUpdate

Update returns an update builder for HPArtist.

func (*HPArtistClient) UpdateOne

func (c *HPArtistClient) UpdateOne(ha *HPArtist) *HPArtistUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPArtistClient) UpdateOneID

func (c *HPArtistClient) UpdateOneID(id int) *HPArtistUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPArtistClient) Use

func (c *HPArtistClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpartist.Hooks(f(g(h())))`.

type HPArtistConnection

HPArtistConnection is the connection containing edges to HPArtist.

type HPArtistConnection struct {
    Edges      []*HPArtistEdge `json:"edges"`
    PageInfo   PageInfo        `json:"pageInfo"`
    TotalCount int             `json:"totalCount"`
}

type HPArtistCreate

HPArtistCreate is the builder for creating a HPArtist entity.

type HPArtistCreate struct {
    // contains filtered or unexported fields
}

func (*HPArtistCreate) AddAssetIDs

func (hac *HPArtistCreate) AddAssetIDs(ids ...int) *HPArtistCreate

AddAssetIDs adds the "assets" edge to the HPAsset entity by IDs.

func (*HPArtistCreate) AddAssets

func (hac *HPArtistCreate) AddAssets(h ...*HPAsset) *HPArtistCreate

AddAssets adds the "assets" edges to the HPAsset entity.

func (*HPArtistCreate) AddMemberIDs

func (hac *HPArtistCreate) AddMemberIDs(ids ...int) *HPArtistCreate

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPArtistCreate) AddMembers

func (hac *HPArtistCreate) AddMembers(h ...*HPMember) *HPArtistCreate

AddMembers adds the "members" edges to the HPMember entity.

func (*HPArtistCreate) AddOwningAmebloPostIDs

func (hac *HPArtistCreate) AddOwningAmebloPostIDs(ids ...int) *HPArtistCreate

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistCreate) AddOwningAmebloPosts

func (hac *HPArtistCreate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistCreate

AddOwningAmebloPosts adds the "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistCreate) AddOwningFeed

func (hac *HPArtistCreate) AddOwningFeed(h ...*HPFeedItem) *HPArtistCreate

AddOwningFeed adds the "owning_feed" edges to the HPFeedItem entity.

func (*HPArtistCreate) AddOwningFeedIDs

func (hac *HPArtistCreate) AddOwningFeedIDs(ids ...int) *HPArtistCreate

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistCreate) AddOwningIgPostIDs

func (hac *HPArtistCreate) AddOwningIgPostIDs(ids ...int) *HPArtistCreate

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistCreate) AddOwningIgPosts

func (hac *HPArtistCreate) AddOwningIgPosts(h ...*HPIgPost) *HPArtistCreate

AddOwningIgPosts adds the "owning_ig_posts" edges to the HPIgPost entity.

func (*HPArtistCreate) AddTaggedAmebloPostIDs

func (hac *HPArtistCreate) AddTaggedAmebloPostIDs(ids ...int) *HPArtistCreate

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistCreate) AddTaggedAmebloPosts

func (hac *HPArtistCreate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistCreate

AddTaggedAmebloPosts adds the "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistCreate) AddTaggedElineupMallItemIDs

func (hac *HPArtistCreate) AddTaggedElineupMallItemIDs(ids ...int) *HPArtistCreate

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPArtistCreate) AddTaggedElineupMallItems

func (hac *HPArtistCreate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistCreate

AddTaggedElineupMallItems adds the "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPArtistCreate) AddTaggedFeed

func (hac *HPArtistCreate) AddTaggedFeed(h ...*HPFeedItem) *HPArtistCreate

AddTaggedFeed adds the "tagged_feed" edges to the HPFeedItem entity.

func (*HPArtistCreate) AddTaggedFeedIDs

func (hac *HPArtistCreate) AddTaggedFeedIDs(ids ...int) *HPArtistCreate

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistCreate) AddTaggedIgPostIDs

func (hac *HPArtistCreate) AddTaggedIgPostIDs(ids ...int) *HPArtistCreate

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistCreate) AddTaggedIgPosts

func (hac *HPArtistCreate) AddTaggedIgPosts(h ...*HPIgPost) *HPArtistCreate

AddTaggedIgPosts adds the "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPArtistCreate) Exec

func (hac *HPArtistCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPArtistCreate) ExecX

func (hac *HPArtistCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistCreate) Mutation

func (hac *HPArtistCreate) Mutation() *HPArtistMutation

Mutation returns the HPArtistMutation object of the builder.

func (*HPArtistCreate) OnConflict

func (hac *HPArtistCreate) OnConflict(opts ...sql.ConflictOption) *HPArtistUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPArtist.Create().
	SetCrawledAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPArtistUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPArtistCreate) OnConflictColumns

func (hac *HPArtistCreate) OnConflictColumns(columns ...string) *HPArtistUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPArtist.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPArtistCreate) Save

func (hac *HPArtistCreate) Save(ctx context.Context) (*HPArtist, error)

Save creates the HPArtist in the database.

func (*HPArtistCreate) SaveX

func (hac *HPArtistCreate) SaveX(ctx context.Context) *HPArtist

SaveX calls Save and panics if Save returns an error.

func (*HPArtistCreate) SetCrawledAt

func (hac *HPArtistCreate) SetCrawledAt(t time.Time) *HPArtistCreate

SetCrawledAt sets the "crawled_at" field.

func (*HPArtistCreate) SetCreatedAt

func (hac *HPArtistCreate) SetCreatedAt(t time.Time) *HPArtistCreate

SetCreatedAt sets the "created_at" field.

func (*HPArtistCreate) SetErrorCount

func (hac *HPArtistCreate) SetErrorCount(i int) *HPArtistCreate

SetErrorCount sets the "error_count" field.

func (*HPArtistCreate) SetIndex

func (hac *HPArtistCreate) SetIndex(i int) *HPArtistCreate

SetIndex sets the "index" field.

func (*HPArtistCreate) SetKey

func (hac *HPArtistCreate) SetKey(s string) *HPArtistCreate

SetKey sets the "key" field.

func (*HPArtistCreate) SetLastErrorMessage

func (hac *HPArtistCreate) SetLastErrorMessage(s string) *HPArtistCreate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPArtistCreate) SetManuallyModified

func (hac *HPArtistCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPArtistCreate

SetManuallyModified sets the "manually_modified" field.

func (*HPArtistCreate) SetName

func (hac *HPArtistCreate) SetName(s string) *HPArtistCreate

SetName sets the "name" field.

func (*HPArtistCreate) SetNillableCrawledAt

func (hac *HPArtistCreate) SetNillableCrawledAt(t *time.Time) *HPArtistCreate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPArtistCreate) SetNillableCreatedAt

func (hac *HPArtistCreate) SetNillableCreatedAt(t *time.Time) *HPArtistCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPArtistCreate) SetNillableErrorCount

func (hac *HPArtistCreate) SetNillableErrorCount(i *int) *HPArtistCreate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPArtistCreate) SetNillableLastErrorMessage

func (hac *HPArtistCreate) SetNillableLastErrorMessage(s *string) *HPArtistCreate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPArtistCreate) SetNillableRecrawlRequired

func (hac *HPArtistCreate) SetNillableRecrawlRequired(b *bool) *HPArtistCreate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPArtistCreate) SetNillableUpdatedAt

func (hac *HPArtistCreate) SetNillableUpdatedAt(t *time.Time) *HPArtistCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPArtistCreate) SetRecrawlRequired

func (hac *HPArtistCreate) SetRecrawlRequired(b bool) *HPArtistCreate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPArtistCreate) SetThumbnailURL

func (hac *HPArtistCreate) SetThumbnailURL(s string) *HPArtistCreate

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPArtistCreate) SetUpdatedAt

func (hac *HPArtistCreate) SetUpdatedAt(t time.Time) *HPArtistCreate

SetUpdatedAt sets the "updated_at" field.

type HPArtistCreateBulk

HPArtistCreateBulk is the builder for creating many HPArtist entities in bulk.

type HPArtistCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPArtistCreateBulk) Exec

func (hacb *HPArtistCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPArtistCreateBulk) ExecX

func (hacb *HPArtistCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistCreateBulk) OnConflict

func (hacb *HPArtistCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPArtistUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPArtist.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPArtistUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPArtistCreateBulk) OnConflictColumns

func (hacb *HPArtistCreateBulk) OnConflictColumns(columns ...string) *HPArtistUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPArtist.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPArtistCreateBulk) Save

func (hacb *HPArtistCreateBulk) Save(ctx context.Context) ([]*HPArtist, error)

Save creates the HPArtist entities in the database.

func (*HPArtistCreateBulk) SaveX

func (hacb *HPArtistCreateBulk) SaveX(ctx context.Context) []*HPArtist

SaveX is like Save, but panics if an error occurs.

type HPArtistDelete

HPArtistDelete is the builder for deleting a HPArtist entity.

type HPArtistDelete struct {
    // contains filtered or unexported fields
}

func (*HPArtistDelete) Exec

func (had *HPArtistDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPArtistDelete) ExecX

func (had *HPArtistDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistDelete) Where

func (had *HPArtistDelete) Where(ps ...predicate.HPArtist) *HPArtistDelete

Where appends a list predicates to the HPArtistDelete builder.

type HPArtistDeleteOne

HPArtistDeleteOne is the builder for deleting a single HPArtist entity.

type HPArtistDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPArtistDeleteOne) Exec

func (hado *HPArtistDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPArtistDeleteOne) ExecX

func (hado *HPArtistDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistDeleteOne) Where

func (hado *HPArtistDeleteOne) Where(ps ...predicate.HPArtist) *HPArtistDeleteOne

Where appends a list predicates to the HPArtistDelete builder.

type HPArtistEdge

HPArtistEdge is the edge representation of HPArtist.

type HPArtistEdge struct {
    Node   *HPArtist `json:"node"`
    Cursor Cursor    `json:"cursor"`
}

type HPArtistEdges

HPArtistEdges holds the relations/edges for other nodes in the graph.

type HPArtistEdges struct {
    // Members holds the value of the members edge.
    Members []*HPMember `json:"members,omitempty"`
    // Assets holds the value of the assets edge.
    Assets []*HPAsset `json:"assets,omitempty"`
    // OwningFeed holds the value of the owning_feed edge.
    OwningFeed []*HPFeedItem `json:"owning_feed,omitempty"`
    // TaggedFeed holds the value of the tagged_feed edge.
    TaggedFeed []*HPFeedItem `json:"tagged_feed,omitempty"`
    // OwningIgPosts holds the value of the owning_ig_posts edge.
    OwningIgPosts []*HPIgPost `json:"owning_ig_posts,omitempty"`
    // TaggedIgPosts holds the value of the tagged_ig_posts edge.
    TaggedIgPosts []*HPIgPost `json:"tagged_ig_posts,omitempty"`
    // OwningAmebloPosts holds the value of the owning_ameblo_posts edge.
    OwningAmebloPosts []*HPAmebloPost `json:"owning_ameblo_posts,omitempty"`
    // TaggedAmebloPosts holds the value of the tagged_ameblo_posts edge.
    TaggedAmebloPosts []*HPAmebloPost `json:"tagged_ameblo_posts,omitempty"`
    // TaggedElineupMallItems holds the value of the tagged_elineup_mall_items edge.
    TaggedElineupMallItems []*HPElineupMallItem `json:"tagged_elineup_mall_items,omitempty"`
    // contains filtered or unexported fields
}

func (HPArtistEdges) AssetsOrErr

func (e HPArtistEdges) AssetsOrErr() ([]*HPAsset, error)

AssetsOrErr returns the Assets value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) MembersOrErr

func (e HPArtistEdges) MembersOrErr() ([]*HPMember, error)

MembersOrErr returns the Members value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) OwningAmebloPostsOrErr

func (e HPArtistEdges) OwningAmebloPostsOrErr() ([]*HPAmebloPost, error)

OwningAmebloPostsOrErr returns the OwningAmebloPosts value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) OwningFeedOrErr

func (e HPArtistEdges) OwningFeedOrErr() ([]*HPFeedItem, error)

OwningFeedOrErr returns the OwningFeed value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) OwningIgPostsOrErr

func (e HPArtistEdges) OwningIgPostsOrErr() ([]*HPIgPost, error)

OwningIgPostsOrErr returns the OwningIgPosts value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) TaggedAmebloPostsOrErr

func (e HPArtistEdges) TaggedAmebloPostsOrErr() ([]*HPAmebloPost, error)

TaggedAmebloPostsOrErr returns the TaggedAmebloPosts value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) TaggedElineupMallItemsOrErr

func (e HPArtistEdges) TaggedElineupMallItemsOrErr() ([]*HPElineupMallItem, error)

TaggedElineupMallItemsOrErr returns the TaggedElineupMallItems value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) TaggedFeedOrErr

func (e HPArtistEdges) TaggedFeedOrErr() ([]*HPFeedItem, error)

TaggedFeedOrErr returns the TaggedFeed value or an error if the edge was not loaded in eager-loading.

func (HPArtistEdges) TaggedIgPostsOrErr

func (e HPArtistEdges) TaggedIgPostsOrErr() ([]*HPIgPost, error)

TaggedIgPostsOrErr returns the TaggedIgPosts value or an error if the edge was not loaded in eager-loading.

type HPArtistFilter

HPArtistFilter provides a generic filtering capability at runtime for HPArtistQuery.

type HPArtistFilter struct {
    // contains filtered or unexported fields
}

func (*HPArtistFilter) Where

func (f *HPArtistFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPArtistFilter) WhereCrawledAt

func (f *HPArtistFilter) WhereCrawledAt(p entql.TimeP)

WhereCrawledAt applies the entql time.Time predicate on the crawled_at field.

func (*HPArtistFilter) WhereCreatedAt

func (f *HPArtistFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPArtistFilter) WhereErrorCount

func (f *HPArtistFilter) WhereErrorCount(p entql.IntP)

WhereErrorCount applies the entql int predicate on the error_count field.

func (*HPArtistFilter) WhereHasAssets

func (f *HPArtistFilter) WhereHasAssets()

WhereHasAssets applies a predicate to check if query has an edge assets.

func (*HPArtistFilter) WhereHasAssetsWith

func (f *HPArtistFilter) WhereHasAssetsWith(preds ...predicate.HPAsset)

WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasMembers

func (f *HPArtistFilter) WhereHasMembers()

WhereHasMembers applies a predicate to check if query has an edge members.

func (*HPArtistFilter) WhereHasMembersWith

func (f *HPArtistFilter) WhereHasMembersWith(preds ...predicate.HPMember)

WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasOwningAmebloPosts

func (f *HPArtistFilter) WhereHasOwningAmebloPosts()

WhereHasOwningAmebloPosts applies a predicate to check if query has an edge owning_ameblo_posts.

func (*HPArtistFilter) WhereHasOwningAmebloPostsWith

func (f *HPArtistFilter) WhereHasOwningAmebloPostsWith(preds ...predicate.HPAmebloPost)

WhereHasOwningAmebloPostsWith applies a predicate to check if query has an edge owning_ameblo_posts with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasOwningFeed

func (f *HPArtistFilter) WhereHasOwningFeed()

WhereHasOwningFeed applies a predicate to check if query has an edge owning_feed.

func (*HPArtistFilter) WhereHasOwningFeedWith

func (f *HPArtistFilter) WhereHasOwningFeedWith(preds ...predicate.HPFeedItem)

WhereHasOwningFeedWith applies a predicate to check if query has an edge owning_feed with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasOwningIgPosts

func (f *HPArtistFilter) WhereHasOwningIgPosts()

WhereHasOwningIgPosts applies a predicate to check if query has an edge owning_ig_posts.

func (*HPArtistFilter) WhereHasOwningIgPostsWith

func (f *HPArtistFilter) WhereHasOwningIgPostsWith(preds ...predicate.HPIgPost)

WhereHasOwningIgPostsWith applies a predicate to check if query has an edge owning_ig_posts with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasTaggedAmebloPosts

func (f *HPArtistFilter) WhereHasTaggedAmebloPosts()

WhereHasTaggedAmebloPosts applies a predicate to check if query has an edge tagged_ameblo_posts.

func (*HPArtistFilter) WhereHasTaggedAmebloPostsWith

func (f *HPArtistFilter) WhereHasTaggedAmebloPostsWith(preds ...predicate.HPAmebloPost)

WhereHasTaggedAmebloPostsWith applies a predicate to check if query has an edge tagged_ameblo_posts with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasTaggedElineupMallItems

func (f *HPArtistFilter) WhereHasTaggedElineupMallItems()

WhereHasTaggedElineupMallItems applies a predicate to check if query has an edge tagged_elineup_mall_items.

func (*HPArtistFilter) WhereHasTaggedElineupMallItemsWith

func (f *HPArtistFilter) WhereHasTaggedElineupMallItemsWith(preds ...predicate.HPElineupMallItem)

WhereHasTaggedElineupMallItemsWith applies a predicate to check if query has an edge tagged_elineup_mall_items with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasTaggedFeed

func (f *HPArtistFilter) WhereHasTaggedFeed()

WhereHasTaggedFeed applies a predicate to check if query has an edge tagged_feed.

func (*HPArtistFilter) WhereHasTaggedFeedWith

func (f *HPArtistFilter) WhereHasTaggedFeedWith(preds ...predicate.HPFeedItem)

WhereHasTaggedFeedWith applies a predicate to check if query has an edge tagged_feed with a given conditions (other predicates).

func (*HPArtistFilter) WhereHasTaggedIgPosts

func (f *HPArtistFilter) WhereHasTaggedIgPosts()

WhereHasTaggedIgPosts applies a predicate to check if query has an edge tagged_ig_posts.

func (*HPArtistFilter) WhereHasTaggedIgPostsWith

func (f *HPArtistFilter) WhereHasTaggedIgPostsWith(preds ...predicate.HPIgPost)

WhereHasTaggedIgPostsWith applies a predicate to check if query has an edge tagged_ig_posts with a given conditions (other predicates).

func (*HPArtistFilter) WhereID

func (f *HPArtistFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPArtistFilter) WhereIndex

func (f *HPArtistFilter) WhereIndex(p entql.IntP)

WhereIndex applies the entql int predicate on the index field.

func (*HPArtistFilter) WhereKey

func (f *HPArtistFilter) WhereKey(p entql.StringP)

WhereKey applies the entql string predicate on the key field.

func (*HPArtistFilter) WhereLastErrorMessage

func (f *HPArtistFilter) WhereLastErrorMessage(p entql.StringP)

WhereLastErrorMessage applies the entql string predicate on the last_error_message field.

func (*HPArtistFilter) WhereManuallyModified

func (f *HPArtistFilter) WhereManuallyModified(p entql.BytesP)

WhereManuallyModified applies the entql json.RawMessage predicate on the manually_modified field.

func (*HPArtistFilter) WhereName

func (f *HPArtistFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*HPArtistFilter) WhereRecrawlRequired

func (f *HPArtistFilter) WhereRecrawlRequired(p entql.BoolP)

WhereRecrawlRequired applies the entql bool predicate on the recrawl_required field.

func (*HPArtistFilter) WhereThumbnailURL

func (f *HPArtistFilter) WhereThumbnailURL(p entql.StringP)

WhereThumbnailURL applies the entql string predicate on the thumbnail_url field.

func (*HPArtistFilter) WhereUpdatedAt

func (f *HPArtistFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPArtistGroupBy

HPArtistGroupBy is the group-by builder for HPArtist entities.

type HPArtistGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPArtistGroupBy) Aggregate

func (hagb *HPArtistGroupBy) Aggregate(fns ...AggregateFunc) *HPArtistGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPArtistGroupBy) Bool

func (s *HPArtistGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) BoolX

func (s *HPArtistGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPArtistGroupBy) Bools

func (s *HPArtistGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) BoolsX

func (s *HPArtistGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPArtistGroupBy) Float64

func (s *HPArtistGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) Float64X

func (s *HPArtistGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPArtistGroupBy) Float64s

func (s *HPArtistGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) Float64sX

func (s *HPArtistGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPArtistGroupBy) Int

func (s *HPArtistGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) IntX

func (s *HPArtistGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPArtistGroupBy) Ints

func (s *HPArtistGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) IntsX

func (s *HPArtistGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPArtistGroupBy) Scan

func (hagb *HPArtistGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPArtistGroupBy) ScanX

func (s *HPArtistGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPArtistGroupBy) String

func (s *HPArtistGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) StringX

func (s *HPArtistGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPArtistGroupBy) Strings

func (s *HPArtistGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPArtistGroupBy) StringsX

func (s *HPArtistGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPArtistMutation

HPArtistMutation represents an operation that mutates the HPArtist nodes in the graph.

type HPArtistMutation struct {
    // contains filtered or unexported fields
}

func (*HPArtistMutation) AddAssetIDs

func (m *HPArtistMutation) AddAssetIDs(ids ...int)

AddAssetIDs adds the "assets" edge to the HPAsset entity by ids.

func (*HPArtistMutation) AddErrorCount

func (m *HPArtistMutation) AddErrorCount(i int)

AddErrorCount adds i to the "error_count" field.

func (*HPArtistMutation) AddField

func (m *HPArtistMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPArtistMutation) AddIndex

func (m *HPArtistMutation) AddIndex(i int)

AddIndex adds i to the "index" field.

func (*HPArtistMutation) AddMemberIDs

func (m *HPArtistMutation) AddMemberIDs(ids ...int)

AddMemberIDs adds the "members" edge to the HPMember entity by ids.

func (*HPArtistMutation) AddOwningAmebloPostIDs

func (m *HPArtistMutation) AddOwningAmebloPostIDs(ids ...int)

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by ids.

func (*HPArtistMutation) AddOwningFeedIDs

func (m *HPArtistMutation) AddOwningFeedIDs(ids ...int)

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by ids.

func (*HPArtistMutation) AddOwningIgPostIDs

func (m *HPArtistMutation) AddOwningIgPostIDs(ids ...int)

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by ids.

func (*HPArtistMutation) AddTaggedAmebloPostIDs

func (m *HPArtistMutation) AddTaggedAmebloPostIDs(ids ...int)

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by ids.

func (*HPArtistMutation) AddTaggedElineupMallItemIDs

func (m *HPArtistMutation) AddTaggedElineupMallItemIDs(ids ...int)

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by ids.

func (*HPArtistMutation) AddTaggedFeedIDs

func (m *HPArtistMutation) AddTaggedFeedIDs(ids ...int)

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by ids.

func (*HPArtistMutation) AddTaggedIgPostIDs

func (m *HPArtistMutation) AddTaggedIgPostIDs(ids ...int)

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by ids.

func (*HPArtistMutation) AddedEdges

func (m *HPArtistMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPArtistMutation) AddedErrorCount

func (m *HPArtistMutation) AddedErrorCount() (r int, exists bool)

AddedErrorCount returns the value that was added to the "error_count" field in this mutation.

func (*HPArtistMutation) AddedField

func (m *HPArtistMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPArtistMutation) AddedFields

func (m *HPArtistMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPArtistMutation) AddedIDs

func (m *HPArtistMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPArtistMutation) AddedIndex

func (m *HPArtistMutation) AddedIndex() (r int, exists bool)

AddedIndex returns the value that was added to the "index" field in this mutation.

func (*HPArtistMutation) AssetsCleared

func (m *HPArtistMutation) AssetsCleared() bool

AssetsCleared reports if the "assets" edge to the HPAsset entity was cleared.

func (*HPArtistMutation) AssetsIDs

func (m *HPArtistMutation) AssetsIDs() (ids []int)

AssetsIDs returns the "assets" edge IDs in the mutation.

func (*HPArtistMutation) ClearAssets

func (m *HPArtistMutation) ClearAssets()

ClearAssets clears the "assets" edge to the HPAsset entity.

func (*HPArtistMutation) ClearCrawledAt

func (m *HPArtistMutation) ClearCrawledAt()

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPArtistMutation) ClearCreatedAt

func (m *HPArtistMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPArtistMutation) ClearEdge

func (m *HPArtistMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPArtistMutation) ClearField

func (m *HPArtistMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPArtistMutation) ClearLastErrorMessage

func (m *HPArtistMutation) ClearLastErrorMessage()

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPArtistMutation) ClearManuallyModified

func (m *HPArtistMutation) ClearManuallyModified()

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPArtistMutation) ClearMembers

func (m *HPArtistMutation) ClearMembers()

ClearMembers clears the "members" edge to the HPMember entity.

func (*HPArtistMutation) ClearOwningAmebloPosts

func (m *HPArtistMutation) ClearOwningAmebloPosts()

ClearOwningAmebloPosts clears the "owning_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPArtistMutation) ClearOwningFeed

func (m *HPArtistMutation) ClearOwningFeed()

ClearOwningFeed clears the "owning_feed" edge to the HPFeedItem entity.

func (*HPArtistMutation) ClearOwningIgPosts

func (m *HPArtistMutation) ClearOwningIgPosts()

ClearOwningIgPosts clears the "owning_ig_posts" edge to the HPIgPost entity.

func (*HPArtistMutation) ClearRecrawlRequired

func (m *HPArtistMutation) ClearRecrawlRequired()

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPArtistMutation) ClearTaggedAmebloPosts

func (m *HPArtistMutation) ClearTaggedAmebloPosts()

ClearTaggedAmebloPosts clears the "tagged_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPArtistMutation) ClearTaggedElineupMallItems

func (m *HPArtistMutation) ClearTaggedElineupMallItems()

ClearTaggedElineupMallItems clears the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity.

func (*HPArtistMutation) ClearTaggedFeed

func (m *HPArtistMutation) ClearTaggedFeed()

ClearTaggedFeed clears the "tagged_feed" edge to the HPFeedItem entity.

func (*HPArtistMutation) ClearTaggedIgPosts

func (m *HPArtistMutation) ClearTaggedIgPosts()

ClearTaggedIgPosts clears the "tagged_ig_posts" edge to the HPIgPost entity.

func (*HPArtistMutation) ClearUpdatedAt

func (m *HPArtistMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPArtistMutation) ClearedEdges

func (m *HPArtistMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPArtistMutation) ClearedFields

func (m *HPArtistMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPArtistMutation) Client

func (m HPArtistMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPArtistMutation) CrawledAt

func (m *HPArtistMutation) CrawledAt() (r time.Time, exists bool)

CrawledAt returns the value of the "crawled_at" field in the mutation.

func (*HPArtistMutation) CrawledAtCleared

func (m *HPArtistMutation) CrawledAtCleared() bool

CrawledAtCleared returns if the "crawled_at" field was cleared in this mutation.

func (*HPArtistMutation) CreatedAt

func (m *HPArtistMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPArtistMutation) CreatedAtCleared

func (m *HPArtistMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPArtistMutation) EdgeCleared

func (m *HPArtistMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPArtistMutation) ErrorCount

func (m *HPArtistMutation) ErrorCount() (r int, exists bool)

ErrorCount returns the value of the "error_count" field in the mutation.

func (*HPArtistMutation) Field

func (m *HPArtistMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPArtistMutation) FieldCleared

func (m *HPArtistMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPArtistMutation) Fields

func (m *HPArtistMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPArtistMutation) Filter

func (m *HPArtistMutation) Filter() *HPArtistFilter

Filter returns an entql.Where implementation to apply filters on the HPArtistMutation builder.

func (*HPArtistMutation) ID

func (m *HPArtistMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPArtistMutation) IDs

func (m *HPArtistMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPArtistMutation) Index

func (m *HPArtistMutation) Index() (r int, exists bool)

Index returns the value of the "index" field in the mutation.

func (*HPArtistMutation) Key

func (m *HPArtistMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*HPArtistMutation) LastErrorMessage

func (m *HPArtistMutation) LastErrorMessage() (r string, exists bool)

LastErrorMessage returns the value of the "last_error_message" field in the mutation.

func (*HPArtistMutation) LastErrorMessageCleared

func (m *HPArtistMutation) LastErrorMessageCleared() bool

LastErrorMessageCleared returns if the "last_error_message" field was cleared in this mutation.

func (*HPArtistMutation) ManuallyModified

func (m *HPArtistMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)

ManuallyModified returns the value of the "manually_modified" field in the mutation.

func (*HPArtistMutation) ManuallyModifiedCleared

func (m *HPArtistMutation) ManuallyModifiedCleared() bool

ManuallyModifiedCleared returns if the "manually_modified" field was cleared in this mutation.

func (*HPArtistMutation) MembersCleared

func (m *HPArtistMutation) MembersCleared() bool

MembersCleared reports if the "members" edge to the HPMember entity was cleared.

func (*HPArtistMutation) MembersIDs

func (m *HPArtistMutation) MembersIDs() (ids []int)

MembersIDs returns the "members" edge IDs in the mutation.

func (*HPArtistMutation) Name

func (m *HPArtistMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*HPArtistMutation) OldCrawledAt

func (m *HPArtistMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)

OldCrawledAt returns the old "crawled_at" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldCreatedAt

func (m *HPArtistMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldErrorCount

func (m *HPArtistMutation) OldErrorCount(ctx context.Context) (v int, err error)

OldErrorCount returns the old "error_count" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldField

func (m *HPArtistMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPArtistMutation) OldIndex

func (m *HPArtistMutation) OldIndex(ctx context.Context) (v int, err error)

OldIndex returns the old "index" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldKey

func (m *HPArtistMutation) OldKey(ctx context.Context) (v string, err error)

OldKey returns the old "key" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldLastErrorMessage

func (m *HPArtistMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)

OldLastErrorMessage returns the old "last_error_message" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldManuallyModified

func (m *HPArtistMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)

OldManuallyModified returns the old "manually_modified" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldName

func (m *HPArtistMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldRecrawlRequired

func (m *HPArtistMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)

OldRecrawlRequired returns the old "recrawl_required" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldThumbnailURL

func (m *HPArtistMutation) OldThumbnailURL(ctx context.Context) (v string, err error)

OldThumbnailURL returns the old "thumbnail_url" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) OldUpdatedAt

func (m *HPArtistMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPArtist entity. If the HPArtist object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPArtistMutation) Op

func (m *HPArtistMutation) Op() Op

Op returns the operation name.

func (*HPArtistMutation) OwningAmebloPostsCleared

func (m *HPArtistMutation) OwningAmebloPostsCleared() bool

OwningAmebloPostsCleared reports if the "owning_ameblo_posts" edge to the HPAmebloPost entity was cleared.

func (*HPArtistMutation) OwningAmebloPostsIDs

func (m *HPArtistMutation) OwningAmebloPostsIDs() (ids []int)

OwningAmebloPostsIDs returns the "owning_ameblo_posts" edge IDs in the mutation.

func (*HPArtistMutation) OwningFeedCleared

func (m *HPArtistMutation) OwningFeedCleared() bool

OwningFeedCleared reports if the "owning_feed" edge to the HPFeedItem entity was cleared.

func (*HPArtistMutation) OwningFeedIDs

func (m *HPArtistMutation) OwningFeedIDs() (ids []int)

OwningFeedIDs returns the "owning_feed" edge IDs in the mutation.

func (*HPArtistMutation) OwningIgPostsCleared

func (m *HPArtistMutation) OwningIgPostsCleared() bool

OwningIgPostsCleared reports if the "owning_ig_posts" edge to the HPIgPost entity was cleared.

func (*HPArtistMutation) OwningIgPostsIDs

func (m *HPArtistMutation) OwningIgPostsIDs() (ids []int)

OwningIgPostsIDs returns the "owning_ig_posts" edge IDs in the mutation.

func (*HPArtistMutation) RecrawlRequired

func (m *HPArtistMutation) RecrawlRequired() (r bool, exists bool)

RecrawlRequired returns the value of the "recrawl_required" field in the mutation.

func (*HPArtistMutation) RecrawlRequiredCleared

func (m *HPArtistMutation) RecrawlRequiredCleared() bool

RecrawlRequiredCleared returns if the "recrawl_required" field was cleared in this mutation.

func (*HPArtistMutation) RemoveAssetIDs

func (m *HPArtistMutation) RemoveAssetIDs(ids ...int)

RemoveAssetIDs removes the "assets" edge to the HPAsset entity by IDs.

func (*HPArtistMutation) RemoveMemberIDs

func (m *HPArtistMutation) RemoveMemberIDs(ids ...int)

RemoveMemberIDs removes the "members" edge to the HPMember entity by IDs.

func (*HPArtistMutation) RemoveOwningAmebloPostIDs

func (m *HPArtistMutation) RemoveOwningAmebloPostIDs(ids ...int)

RemoveOwningAmebloPostIDs removes the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistMutation) RemoveOwningFeedIDs

func (m *HPArtistMutation) RemoveOwningFeedIDs(ids ...int)

RemoveOwningFeedIDs removes the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistMutation) RemoveOwningIgPostIDs

func (m *HPArtistMutation) RemoveOwningIgPostIDs(ids ...int)

RemoveOwningIgPostIDs removes the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistMutation) RemoveTaggedAmebloPostIDs

func (m *HPArtistMutation) RemoveTaggedAmebloPostIDs(ids ...int)

RemoveTaggedAmebloPostIDs removes the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistMutation) RemoveTaggedElineupMallItemIDs

func (m *HPArtistMutation) RemoveTaggedElineupMallItemIDs(ids ...int)

RemoveTaggedElineupMallItemIDs removes the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPArtistMutation) RemoveTaggedFeedIDs

func (m *HPArtistMutation) RemoveTaggedFeedIDs(ids ...int)

RemoveTaggedFeedIDs removes the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistMutation) RemoveTaggedIgPostIDs

func (m *HPArtistMutation) RemoveTaggedIgPostIDs(ids ...int)

RemoveTaggedIgPostIDs removes the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistMutation) RemovedAssetsIDs

func (m *HPArtistMutation) RemovedAssetsIDs() (ids []int)

RemovedAssets returns the removed IDs of the "assets" edge to the HPAsset entity.

func (*HPArtistMutation) RemovedEdges

func (m *HPArtistMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPArtistMutation) RemovedIDs

func (m *HPArtistMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPArtistMutation) RemovedMembersIDs

func (m *HPArtistMutation) RemovedMembersIDs() (ids []int)

RemovedMembers returns the removed IDs of the "members" edge to the HPMember entity.

func (*HPArtistMutation) RemovedOwningAmebloPostsIDs

func (m *HPArtistMutation) RemovedOwningAmebloPostsIDs() (ids []int)

RemovedOwningAmebloPosts returns the removed IDs of the "owning_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPArtistMutation) RemovedOwningFeedIDs

func (m *HPArtistMutation) RemovedOwningFeedIDs() (ids []int)

RemovedOwningFeed returns the removed IDs of the "owning_feed" edge to the HPFeedItem entity.

func (*HPArtistMutation) RemovedOwningIgPostsIDs

func (m *HPArtistMutation) RemovedOwningIgPostsIDs() (ids []int)

RemovedOwningIgPosts returns the removed IDs of the "owning_ig_posts" edge to the HPIgPost entity.

func (*HPArtistMutation) RemovedTaggedAmebloPostsIDs

func (m *HPArtistMutation) RemovedTaggedAmebloPostsIDs() (ids []int)

RemovedTaggedAmebloPosts returns the removed IDs of the "tagged_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPArtistMutation) RemovedTaggedElineupMallItemsIDs

func (m *HPArtistMutation) RemovedTaggedElineupMallItemsIDs() (ids []int)

RemovedTaggedElineupMallItems returns the removed IDs of the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity.

func (*HPArtistMutation) RemovedTaggedFeedIDs

func (m *HPArtistMutation) RemovedTaggedFeedIDs() (ids []int)

RemovedTaggedFeed returns the removed IDs of the "tagged_feed" edge to the HPFeedItem entity.

func (*HPArtistMutation) RemovedTaggedIgPostsIDs

func (m *HPArtistMutation) RemovedTaggedIgPostsIDs() (ids []int)

RemovedTaggedIgPosts returns the removed IDs of the "tagged_ig_posts" edge to the HPIgPost entity.

func (*HPArtistMutation) ResetAssets

func (m *HPArtistMutation) ResetAssets()

ResetAssets resets all changes to the "assets" edge.

func (*HPArtistMutation) ResetCrawledAt

func (m *HPArtistMutation) ResetCrawledAt()

ResetCrawledAt resets all changes to the "crawled_at" field.

func (*HPArtistMutation) ResetCreatedAt

func (m *HPArtistMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPArtistMutation) ResetEdge

func (m *HPArtistMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPArtistMutation) ResetErrorCount

func (m *HPArtistMutation) ResetErrorCount()

ResetErrorCount resets all changes to the "error_count" field.

func (*HPArtistMutation) ResetField

func (m *HPArtistMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPArtistMutation) ResetIndex

func (m *HPArtistMutation) ResetIndex()

ResetIndex resets all changes to the "index" field.

func (*HPArtistMutation) ResetKey

func (m *HPArtistMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*HPArtistMutation) ResetLastErrorMessage

func (m *HPArtistMutation) ResetLastErrorMessage()

ResetLastErrorMessage resets all changes to the "last_error_message" field.

func (*HPArtistMutation) ResetManuallyModified

func (m *HPArtistMutation) ResetManuallyModified()

ResetManuallyModified resets all changes to the "manually_modified" field.

func (*HPArtistMutation) ResetMembers

func (m *HPArtistMutation) ResetMembers()

ResetMembers resets all changes to the "members" edge.

func (*HPArtistMutation) ResetName

func (m *HPArtistMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*HPArtistMutation) ResetOwningAmebloPosts

func (m *HPArtistMutation) ResetOwningAmebloPosts()

ResetOwningAmebloPosts resets all changes to the "owning_ameblo_posts" edge.

func (*HPArtistMutation) ResetOwningFeed

func (m *HPArtistMutation) ResetOwningFeed()

ResetOwningFeed resets all changes to the "owning_feed" edge.

func (*HPArtistMutation) ResetOwningIgPosts

func (m *HPArtistMutation) ResetOwningIgPosts()

ResetOwningIgPosts resets all changes to the "owning_ig_posts" edge.

func (*HPArtistMutation) ResetRecrawlRequired

func (m *HPArtistMutation) ResetRecrawlRequired()

ResetRecrawlRequired resets all changes to the "recrawl_required" field.

func (*HPArtistMutation) ResetTaggedAmebloPosts

func (m *HPArtistMutation) ResetTaggedAmebloPosts()

ResetTaggedAmebloPosts resets all changes to the "tagged_ameblo_posts" edge.

func (*HPArtistMutation) ResetTaggedElineupMallItems

func (m *HPArtistMutation) ResetTaggedElineupMallItems()

ResetTaggedElineupMallItems resets all changes to the "tagged_elineup_mall_items" edge.

func (*HPArtistMutation) ResetTaggedFeed

func (m *HPArtistMutation) ResetTaggedFeed()

ResetTaggedFeed resets all changes to the "tagged_feed" edge.

func (*HPArtistMutation) ResetTaggedIgPosts

func (m *HPArtistMutation) ResetTaggedIgPosts()

ResetTaggedIgPosts resets all changes to the "tagged_ig_posts" edge.

func (*HPArtistMutation) ResetThumbnailURL

func (m *HPArtistMutation) ResetThumbnailURL()

ResetThumbnailURL resets all changes to the "thumbnail_url" field.

func (*HPArtistMutation) ResetUpdatedAt

func (m *HPArtistMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPArtistMutation) SetCrawledAt

func (m *HPArtistMutation) SetCrawledAt(t time.Time)

SetCrawledAt sets the "crawled_at" field.

func (*HPArtistMutation) SetCreatedAt

func (m *HPArtistMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPArtistMutation) SetErrorCount

func (m *HPArtistMutation) SetErrorCount(i int)

SetErrorCount sets the "error_count" field.

func (*HPArtistMutation) SetField

func (m *HPArtistMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPArtistMutation) SetIndex

func (m *HPArtistMutation) SetIndex(i int)

SetIndex sets the "index" field.

func (*HPArtistMutation) SetKey

func (m *HPArtistMutation) SetKey(s string)

SetKey sets the "key" field.

func (*HPArtistMutation) SetLastErrorMessage

func (m *HPArtistMutation) SetLastErrorMessage(s string)

SetLastErrorMessage sets the "last_error_message" field.

func (*HPArtistMutation) SetManuallyModified

func (m *HPArtistMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)

SetManuallyModified sets the "manually_modified" field.

func (*HPArtistMutation) SetName

func (m *HPArtistMutation) SetName(s string)

SetName sets the "name" field.

func (*HPArtistMutation) SetOp

func (m *HPArtistMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPArtistMutation) SetRecrawlRequired

func (m *HPArtistMutation) SetRecrawlRequired(b bool)

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPArtistMutation) SetThumbnailURL

func (m *HPArtistMutation) SetThumbnailURL(s string)

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPArtistMutation) SetUpdatedAt

func (m *HPArtistMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPArtistMutation) TaggedAmebloPostsCleared

func (m *HPArtistMutation) TaggedAmebloPostsCleared() bool

TaggedAmebloPostsCleared reports if the "tagged_ameblo_posts" edge to the HPAmebloPost entity was cleared.

func (*HPArtistMutation) TaggedAmebloPostsIDs

func (m *HPArtistMutation) TaggedAmebloPostsIDs() (ids []int)

TaggedAmebloPostsIDs returns the "tagged_ameblo_posts" edge IDs in the mutation.

func (*HPArtistMutation) TaggedElineupMallItemsCleared

func (m *HPArtistMutation) TaggedElineupMallItemsCleared() bool

TaggedElineupMallItemsCleared reports if the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity was cleared.

func (*HPArtistMutation) TaggedElineupMallItemsIDs

func (m *HPArtistMutation) TaggedElineupMallItemsIDs() (ids []int)

TaggedElineupMallItemsIDs returns the "tagged_elineup_mall_items" edge IDs in the mutation.

func (*HPArtistMutation) TaggedFeedCleared

func (m *HPArtistMutation) TaggedFeedCleared() bool

TaggedFeedCleared reports if the "tagged_feed" edge to the HPFeedItem entity was cleared.

func (*HPArtistMutation) TaggedFeedIDs

func (m *HPArtistMutation) TaggedFeedIDs() (ids []int)

TaggedFeedIDs returns the "tagged_feed" edge IDs in the mutation.

func (*HPArtistMutation) TaggedIgPostsCleared

func (m *HPArtistMutation) TaggedIgPostsCleared() bool

TaggedIgPostsCleared reports if the "tagged_ig_posts" edge to the HPIgPost entity was cleared.

func (*HPArtistMutation) TaggedIgPostsIDs

func (m *HPArtistMutation) TaggedIgPostsIDs() (ids []int)

TaggedIgPostsIDs returns the "tagged_ig_posts" edge IDs in the mutation.

func (*HPArtistMutation) ThumbnailURL

func (m *HPArtistMutation) ThumbnailURL() (r string, exists bool)

ThumbnailURL returns the value of the "thumbnail_url" field in the mutation.

func (HPArtistMutation) Tx

func (m HPArtistMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPArtistMutation) Type

func (m *HPArtistMutation) Type() string

Type returns the node type of this mutation (HPArtist).

func (*HPArtistMutation) UpdatedAt

func (m *HPArtistMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPArtistMutation) UpdatedAtCleared

func (m *HPArtistMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPArtistMutation) Where

func (m *HPArtistMutation) Where(ps ...predicate.HPArtist)

Where appends a list predicates to the HPArtistMutation builder.

func (*HPArtistMutation) WhereP

func (m *HPArtistMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPArtistMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPArtistOrder

HPArtistOrder defines the ordering of HPArtist.

type HPArtistOrder struct {
    Direction OrderDirection      `json:"direction"`
    Field     *HPArtistOrderField `json:"field"`
}

type HPArtistOrderField

HPArtistOrderField defines the ordering field of HPArtist.

type HPArtistOrderField struct {
    // contains filtered or unexported fields
}

type HPArtistPaginateOption

HPArtistPaginateOption enables pagination customization.

type HPArtistPaginateOption func(*hpartistPager) error

func WithHPArtistFilter

func WithHPArtistFilter(filter func(*HPArtistQuery) (*HPArtistQuery, error)) HPArtistPaginateOption

WithHPArtistFilter configures pagination filter.

func WithHPArtistOrder

func WithHPArtistOrder(order *HPArtistOrder) HPArtistPaginateOption

WithHPArtistOrder configures pagination ordering.

type HPArtistQuery

HPArtistQuery is the builder for querying HPArtist entities.

type HPArtistQuery struct {
    // contains filtered or unexported fields
}

func (*HPArtistQuery) Aggregate

func (haq *HPArtistQuery) Aggregate(fns ...AggregateFunc) *HPArtistSelect

Aggregate returns a HPArtistSelect configured with the given aggregations.

func (*HPArtistQuery) All

func (haq *HPArtistQuery) All(ctx context.Context) ([]*HPArtist, error)

All executes the query and returns a list of HPArtists.

func (*HPArtistQuery) AllX

func (haq *HPArtistQuery) AllX(ctx context.Context) []*HPArtist

AllX is like All, but panics if an error occurs.

func (*HPArtistQuery) Clone

func (haq *HPArtistQuery) Clone() *HPArtistQuery

Clone returns a duplicate of the HPArtistQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPArtistQuery) CollectFields

func (ha *HPArtistQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPArtistQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPArtistQuery) Count

func (haq *HPArtistQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPArtistQuery) CountX

func (haq *HPArtistQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPArtistQuery) Exist

func (haq *HPArtistQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPArtistQuery) ExistX

func (haq *HPArtistQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPArtistQuery) Filter

func (haq *HPArtistQuery) Filter() *HPArtistFilter

Filter returns a Filter implementation to apply filters on the HPArtistQuery builder.

func (*HPArtistQuery) First

func (haq *HPArtistQuery) First(ctx context.Context) (*HPArtist, error)

First returns the first HPArtist entity from the query. Returns a *NotFoundError when no HPArtist was found.

func (*HPArtistQuery) FirstID

func (haq *HPArtistQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPArtist ID from the query. Returns a *NotFoundError when no HPArtist ID was found.

func (*HPArtistQuery) FirstIDX

func (haq *HPArtistQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPArtistQuery) FirstX

func (haq *HPArtistQuery) FirstX(ctx context.Context) *HPArtist

FirstX is like First, but panics if an error occurs.

func (*HPArtistQuery) GroupBy

func (haq *HPArtistQuery) GroupBy(field string, fields ...string) *HPArtistGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPArtist.Query().
	GroupBy(hpartist.FieldCrawledAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPArtistQuery) IDs

func (haq *HPArtistQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPArtist IDs.

func (*HPArtistQuery) IDsX

func (haq *HPArtistQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPArtistQuery) Limit

func (haq *HPArtistQuery) Limit(limit int) *HPArtistQuery

Limit the number of records to be returned by this query.

func (*HPArtistQuery) Offset

func (haq *HPArtistQuery) Offset(offset int) *HPArtistQuery

Offset to start from.

func (*HPArtistQuery) Only

func (haq *HPArtistQuery) Only(ctx context.Context) (*HPArtist, error)

Only returns a single HPArtist entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPArtist entity is found. Returns a *NotFoundError when no HPArtist entities are found.

func (*HPArtistQuery) OnlyID

func (haq *HPArtistQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPArtist ID in the query. Returns a *NotSingularError when more than one HPArtist ID is found. Returns a *NotFoundError when no entities are found.

func (*HPArtistQuery) OnlyIDX

func (haq *HPArtistQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPArtistQuery) OnlyX

func (haq *HPArtistQuery) OnlyX(ctx context.Context) *HPArtist

OnlyX is like Only, but panics if an error occurs.

func (*HPArtistQuery) Order

func (haq *HPArtistQuery) Order(o ...hpartist.Order) *HPArtistQuery

Order specifies how the records should be ordered.

func (*HPArtistQuery) Paginate

func (ha *HPArtistQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPArtistPaginateOption,
) (*HPArtistConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPArtist.

func (*HPArtistQuery) QueryAssets

func (haq *HPArtistQuery) QueryAssets() *HPAssetQuery

QueryAssets chains the current query on the "assets" edge.

func (*HPArtistQuery) QueryMembers

func (haq *HPArtistQuery) QueryMembers() *HPMemberQuery

QueryMembers chains the current query on the "members" edge.

func (*HPArtistQuery) QueryOwningAmebloPosts

func (haq *HPArtistQuery) QueryOwningAmebloPosts() *HPAmebloPostQuery

QueryOwningAmebloPosts chains the current query on the "owning_ameblo_posts" edge.

func (*HPArtistQuery) QueryOwningFeed

func (haq *HPArtistQuery) QueryOwningFeed() *HPFeedItemQuery

QueryOwningFeed chains the current query on the "owning_feed" edge.

func (*HPArtistQuery) QueryOwningIgPosts

func (haq *HPArtistQuery) QueryOwningIgPosts() *HPIgPostQuery

QueryOwningIgPosts chains the current query on the "owning_ig_posts" edge.

func (*HPArtistQuery) QueryTaggedAmebloPosts

func (haq *HPArtistQuery) QueryTaggedAmebloPosts() *HPAmebloPostQuery

QueryTaggedAmebloPosts chains the current query on the "tagged_ameblo_posts" edge.

func (*HPArtistQuery) QueryTaggedElineupMallItems

func (haq *HPArtistQuery) QueryTaggedElineupMallItems() *HPElineupMallItemQuery

QueryTaggedElineupMallItems chains the current query on the "tagged_elineup_mall_items" edge.

func (*HPArtistQuery) QueryTaggedFeed

func (haq *HPArtistQuery) QueryTaggedFeed() *HPFeedItemQuery

QueryTaggedFeed chains the current query on the "tagged_feed" edge.

func (*HPArtistQuery) QueryTaggedIgPosts

func (haq *HPArtistQuery) QueryTaggedIgPosts() *HPIgPostQuery

QueryTaggedIgPosts chains the current query on the "tagged_ig_posts" edge.

func (*HPArtistQuery) Select

func (haq *HPArtistQuery) Select(fields ...string) *HPArtistSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
}

client.HPArtist.Query().
	Select(hpartist.FieldCrawledAt).
	Scan(ctx, &v)

func (*HPArtistQuery) Unique

func (haq *HPArtistQuery) Unique(unique bool) *HPArtistQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPArtistQuery) Where

func (haq *HPArtistQuery) Where(ps ...predicate.HPArtist) *HPArtistQuery

Where adds a new predicate for the HPArtistQuery builder.

func (*HPArtistQuery) WithAssets

func (haq *HPArtistQuery) WithAssets(opts ...func(*HPAssetQuery)) *HPArtistQuery

WithAssets tells the query-builder to eager-load the nodes that are connected to the "assets" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithMembers

func (haq *HPArtistQuery) WithMembers(opts ...func(*HPMemberQuery)) *HPArtistQuery

WithMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedAssets

func (haq *HPArtistQuery) WithNamedAssets(name string, opts ...func(*HPAssetQuery)) *HPArtistQuery

WithNamedAssets tells the query-builder to eager-load the nodes that are connected to the "assets" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedMembers

func (haq *HPArtistQuery) WithNamedMembers(name string, opts ...func(*HPMemberQuery)) *HPArtistQuery

WithNamedMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedOwningAmebloPosts

func (haq *HPArtistQuery) WithNamedOwningAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPArtistQuery

WithNamedOwningAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ameblo_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedOwningFeed

func (haq *HPArtistQuery) WithNamedOwningFeed(name string, opts ...func(*HPFeedItemQuery)) *HPArtistQuery

WithNamedOwningFeed tells the query-builder to eager-load the nodes that are connected to the "owning_feed" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedOwningIgPosts

func (haq *HPArtistQuery) WithNamedOwningIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPArtistQuery

WithNamedOwningIgPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ig_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedTaggedAmebloPosts

func (haq *HPArtistQuery) WithNamedTaggedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPArtistQuery

WithNamedTaggedAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ameblo_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedTaggedElineupMallItems

func (haq *HPArtistQuery) WithNamedTaggedElineupMallItems(name string, opts ...func(*HPElineupMallItemQuery)) *HPArtistQuery

WithNamedTaggedElineupMallItems tells the query-builder to eager-load the nodes that are connected to the "tagged_elineup_mall_items" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedTaggedFeed

func (haq *HPArtistQuery) WithNamedTaggedFeed(name string, opts ...func(*HPFeedItemQuery)) *HPArtistQuery

WithNamedTaggedFeed tells the query-builder to eager-load the nodes that are connected to the "tagged_feed" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithNamedTaggedIgPosts

func (haq *HPArtistQuery) WithNamedTaggedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPArtistQuery

WithNamedTaggedIgPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ig_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithOwningAmebloPosts

func (haq *HPArtistQuery) WithOwningAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPArtistQuery

WithOwningAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ameblo_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithOwningFeed

func (haq *HPArtistQuery) WithOwningFeed(opts ...func(*HPFeedItemQuery)) *HPArtistQuery

WithOwningFeed tells the query-builder to eager-load the nodes that are connected to the "owning_feed" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithOwningIgPosts

func (haq *HPArtistQuery) WithOwningIgPosts(opts ...func(*HPIgPostQuery)) *HPArtistQuery

WithOwningIgPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ig_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithTaggedAmebloPosts

func (haq *HPArtistQuery) WithTaggedAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPArtistQuery

WithTaggedAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ameblo_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithTaggedElineupMallItems

func (haq *HPArtistQuery) WithTaggedElineupMallItems(opts ...func(*HPElineupMallItemQuery)) *HPArtistQuery

WithTaggedElineupMallItems tells the query-builder to eager-load the nodes that are connected to the "tagged_elineup_mall_items" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithTaggedFeed

func (haq *HPArtistQuery) WithTaggedFeed(opts ...func(*HPFeedItemQuery)) *HPArtistQuery

WithTaggedFeed tells the query-builder to eager-load the nodes that are connected to the "tagged_feed" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPArtistQuery) WithTaggedIgPosts

func (haq *HPArtistQuery) WithTaggedIgPosts(opts ...func(*HPIgPostQuery)) *HPArtistQuery

WithTaggedIgPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ig_posts" edge. The optional arguments are used to configure the query builder of the edge.

type HPArtistSelect

HPArtistSelect is the builder for selecting fields of HPArtist entities.

type HPArtistSelect struct {
    *HPArtistQuery
    // contains filtered or unexported fields
}

func (*HPArtistSelect) Aggregate

func (has *HPArtistSelect) Aggregate(fns ...AggregateFunc) *HPArtistSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPArtistSelect) Bool

func (s *HPArtistSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) BoolX

func (s *HPArtistSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPArtistSelect) Bools

func (s *HPArtistSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) BoolsX

func (s *HPArtistSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPArtistSelect) Float64

func (s *HPArtistSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) Float64X

func (s *HPArtistSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPArtistSelect) Float64s

func (s *HPArtistSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) Float64sX

func (s *HPArtistSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPArtistSelect) Int

func (s *HPArtistSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) IntX

func (s *HPArtistSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPArtistSelect) Ints

func (s *HPArtistSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) IntsX

func (s *HPArtistSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPArtistSelect) Scan

func (has *HPArtistSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPArtistSelect) ScanX

func (s *HPArtistSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPArtistSelect) String

func (s *HPArtistSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) StringX

func (s *HPArtistSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPArtistSelect) Strings

func (s *HPArtistSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPArtistSelect) StringsX

func (s *HPArtistSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPArtistUpdate

HPArtistUpdate is the builder for updating HPArtist entities.

type HPArtistUpdate struct {
    // contains filtered or unexported fields
}

func (*HPArtistUpdate) AddAssetIDs

func (hau *HPArtistUpdate) AddAssetIDs(ids ...int) *HPArtistUpdate

AddAssetIDs adds the "assets" edge to the HPAsset entity by IDs.

func (*HPArtistUpdate) AddAssets

func (hau *HPArtistUpdate) AddAssets(h ...*HPAsset) *HPArtistUpdate

AddAssets adds the "assets" edges to the HPAsset entity.

func (*HPArtistUpdate) AddErrorCount

func (hau *HPArtistUpdate) AddErrorCount(i int) *HPArtistUpdate

AddErrorCount adds i to the "error_count" field.

func (*HPArtistUpdate) AddIndex

func (hau *HPArtistUpdate) AddIndex(i int) *HPArtistUpdate

AddIndex adds i to the "index" field.

func (*HPArtistUpdate) AddMemberIDs

func (hau *HPArtistUpdate) AddMemberIDs(ids ...int) *HPArtistUpdate

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPArtistUpdate) AddMembers

func (hau *HPArtistUpdate) AddMembers(h ...*HPMember) *HPArtistUpdate

AddMembers adds the "members" edges to the HPMember entity.

func (*HPArtistUpdate) AddOwningAmebloPostIDs

func (hau *HPArtistUpdate) AddOwningAmebloPostIDs(ids ...int) *HPArtistUpdate

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistUpdate) AddOwningAmebloPosts

func (hau *HPArtistUpdate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate

AddOwningAmebloPosts adds the "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdate) AddOwningFeed

func (hau *HPArtistUpdate) AddOwningFeed(h ...*HPFeedItem) *HPArtistUpdate

AddOwningFeed adds the "owning_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdate) AddOwningFeedIDs

func (hau *HPArtistUpdate) AddOwningFeedIDs(ids ...int) *HPArtistUpdate

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistUpdate) AddOwningIgPostIDs

func (hau *HPArtistUpdate) AddOwningIgPostIDs(ids ...int) *HPArtistUpdate

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistUpdate) AddOwningIgPosts

func (hau *HPArtistUpdate) AddOwningIgPosts(h ...*HPIgPost) *HPArtistUpdate

AddOwningIgPosts adds the "owning_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdate) AddTaggedAmebloPostIDs

func (hau *HPArtistUpdate) AddTaggedAmebloPostIDs(ids ...int) *HPArtistUpdate

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistUpdate) AddTaggedAmebloPosts

func (hau *HPArtistUpdate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate

AddTaggedAmebloPosts adds the "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdate) AddTaggedElineupMallItemIDs

func (hau *HPArtistUpdate) AddTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdate

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPArtistUpdate) AddTaggedElineupMallItems

func (hau *HPArtistUpdate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdate

AddTaggedElineupMallItems adds the "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPArtistUpdate) AddTaggedFeed

func (hau *HPArtistUpdate) AddTaggedFeed(h ...*HPFeedItem) *HPArtistUpdate

AddTaggedFeed adds the "tagged_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdate) AddTaggedFeedIDs

func (hau *HPArtistUpdate) AddTaggedFeedIDs(ids ...int) *HPArtistUpdate

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistUpdate) AddTaggedIgPostIDs

func (hau *HPArtistUpdate) AddTaggedIgPostIDs(ids ...int) *HPArtistUpdate

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistUpdate) AddTaggedIgPosts

func (hau *HPArtistUpdate) AddTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdate

AddTaggedIgPosts adds the "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdate) ClearAssets

func (hau *HPArtistUpdate) ClearAssets() *HPArtistUpdate

ClearAssets clears all "assets" edges to the HPAsset entity.

func (*HPArtistUpdate) ClearCrawledAt

func (hau *HPArtistUpdate) ClearCrawledAt() *HPArtistUpdate

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPArtistUpdate) ClearLastErrorMessage

func (hau *HPArtistUpdate) ClearLastErrorMessage() *HPArtistUpdate

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPArtistUpdate) ClearManuallyModified

func (hau *HPArtistUpdate) ClearManuallyModified() *HPArtistUpdate

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPArtistUpdate) ClearMembers

func (hau *HPArtistUpdate) ClearMembers() *HPArtistUpdate

ClearMembers clears all "members" edges to the HPMember entity.

func (*HPArtistUpdate) ClearOwningAmebloPosts

func (hau *HPArtistUpdate) ClearOwningAmebloPosts() *HPArtistUpdate

ClearOwningAmebloPosts clears all "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdate) ClearOwningFeed

func (hau *HPArtistUpdate) ClearOwningFeed() *HPArtistUpdate

ClearOwningFeed clears all "owning_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdate) ClearOwningIgPosts

func (hau *HPArtistUpdate) ClearOwningIgPosts() *HPArtistUpdate

ClearOwningIgPosts clears all "owning_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdate) ClearRecrawlRequired

func (hau *HPArtistUpdate) ClearRecrawlRequired() *HPArtistUpdate

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPArtistUpdate) ClearTaggedAmebloPosts

func (hau *HPArtistUpdate) ClearTaggedAmebloPosts() *HPArtistUpdate

ClearTaggedAmebloPosts clears all "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdate) ClearTaggedElineupMallItems

func (hau *HPArtistUpdate) ClearTaggedElineupMallItems() *HPArtistUpdate

ClearTaggedElineupMallItems clears all "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPArtistUpdate) ClearTaggedFeed

func (hau *HPArtistUpdate) ClearTaggedFeed() *HPArtistUpdate

ClearTaggedFeed clears all "tagged_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdate) ClearTaggedIgPosts

func (hau *HPArtistUpdate) ClearTaggedIgPosts() *HPArtistUpdate

ClearTaggedIgPosts clears all "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdate) ClearUpdatedAt

func (hau *HPArtistUpdate) ClearUpdatedAt() *HPArtistUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPArtistUpdate) Exec

func (hau *HPArtistUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPArtistUpdate) ExecX

func (hau *HPArtistUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistUpdate) Mutation

func (hau *HPArtistUpdate) Mutation() *HPArtistMutation

Mutation returns the HPArtistMutation object of the builder.

func (*HPArtistUpdate) RemoveAssetIDs

func (hau *HPArtistUpdate) RemoveAssetIDs(ids ...int) *HPArtistUpdate

RemoveAssetIDs removes the "assets" edge to HPAsset entities by IDs.

func (*HPArtistUpdate) RemoveAssets

func (hau *HPArtistUpdate) RemoveAssets(h ...*HPAsset) *HPArtistUpdate

RemoveAssets removes "assets" edges to HPAsset entities.

func (*HPArtistUpdate) RemoveMemberIDs

func (hau *HPArtistUpdate) RemoveMemberIDs(ids ...int) *HPArtistUpdate

RemoveMemberIDs removes the "members" edge to HPMember entities by IDs.

func (*HPArtistUpdate) RemoveMembers

func (hau *HPArtistUpdate) RemoveMembers(h ...*HPMember) *HPArtistUpdate

RemoveMembers removes "members" edges to HPMember entities.

func (*HPArtistUpdate) RemoveOwningAmebloPostIDs

func (hau *HPArtistUpdate) RemoveOwningAmebloPostIDs(ids ...int) *HPArtistUpdate

RemoveOwningAmebloPostIDs removes the "owning_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPArtistUpdate) RemoveOwningAmebloPosts

func (hau *HPArtistUpdate) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate

RemoveOwningAmebloPosts removes "owning_ameblo_posts" edges to HPAmebloPost entities.

func (*HPArtistUpdate) RemoveOwningFeed

func (hau *HPArtistUpdate) RemoveOwningFeed(h ...*HPFeedItem) *HPArtistUpdate

RemoveOwningFeed removes "owning_feed" edges to HPFeedItem entities.

func (*HPArtistUpdate) RemoveOwningFeedIDs

func (hau *HPArtistUpdate) RemoveOwningFeedIDs(ids ...int) *HPArtistUpdate

RemoveOwningFeedIDs removes the "owning_feed" edge to HPFeedItem entities by IDs.

func (*HPArtistUpdate) RemoveOwningIgPostIDs

func (hau *HPArtistUpdate) RemoveOwningIgPostIDs(ids ...int) *HPArtistUpdate

RemoveOwningIgPostIDs removes the "owning_ig_posts" edge to HPIgPost entities by IDs.

func (*HPArtistUpdate) RemoveOwningIgPosts

func (hau *HPArtistUpdate) RemoveOwningIgPosts(h ...*HPIgPost) *HPArtistUpdate

RemoveOwningIgPosts removes "owning_ig_posts" edges to HPIgPost entities.

func (*HPArtistUpdate) RemoveTaggedAmebloPostIDs

func (hau *HPArtistUpdate) RemoveTaggedAmebloPostIDs(ids ...int) *HPArtistUpdate

RemoveTaggedAmebloPostIDs removes the "tagged_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPArtistUpdate) RemoveTaggedAmebloPosts

func (hau *HPArtistUpdate) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdate

RemoveTaggedAmebloPosts removes "tagged_ameblo_posts" edges to HPAmebloPost entities.

func (*HPArtistUpdate) RemoveTaggedElineupMallItemIDs

func (hau *HPArtistUpdate) RemoveTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdate

RemoveTaggedElineupMallItemIDs removes the "tagged_elineup_mall_items" edge to HPElineupMallItem entities by IDs.

func (*HPArtistUpdate) RemoveTaggedElineupMallItems

func (hau *HPArtistUpdate) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdate

RemoveTaggedElineupMallItems removes "tagged_elineup_mall_items" edges to HPElineupMallItem entities.

func (*HPArtistUpdate) RemoveTaggedFeed

func (hau *HPArtistUpdate) RemoveTaggedFeed(h ...*HPFeedItem) *HPArtistUpdate

RemoveTaggedFeed removes "tagged_feed" edges to HPFeedItem entities.

func (*HPArtistUpdate) RemoveTaggedFeedIDs

func (hau *HPArtistUpdate) RemoveTaggedFeedIDs(ids ...int) *HPArtistUpdate

RemoveTaggedFeedIDs removes the "tagged_feed" edge to HPFeedItem entities by IDs.

func (*HPArtistUpdate) RemoveTaggedIgPostIDs

func (hau *HPArtistUpdate) RemoveTaggedIgPostIDs(ids ...int) *HPArtistUpdate

RemoveTaggedIgPostIDs removes the "tagged_ig_posts" edge to HPIgPost entities by IDs.

func (*HPArtistUpdate) RemoveTaggedIgPosts

func (hau *HPArtistUpdate) RemoveTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdate

RemoveTaggedIgPosts removes "tagged_ig_posts" edges to HPIgPost entities.

func (*HPArtistUpdate) Save

func (hau *HPArtistUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPArtistUpdate) SaveX

func (hau *HPArtistUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPArtistUpdate) SetCrawledAt

func (hau *HPArtistUpdate) SetCrawledAt(t time.Time) *HPArtistUpdate

SetCrawledAt sets the "crawled_at" field.

func (*HPArtistUpdate) SetErrorCount

func (hau *HPArtistUpdate) SetErrorCount(i int) *HPArtistUpdate

SetErrorCount sets the "error_count" field.

func (*HPArtistUpdate) SetIndex

func (hau *HPArtistUpdate) SetIndex(i int) *HPArtistUpdate

SetIndex sets the "index" field.

func (*HPArtistUpdate) SetKey

func (hau *HPArtistUpdate) SetKey(s string) *HPArtistUpdate

SetKey sets the "key" field.

func (*HPArtistUpdate) SetLastErrorMessage

func (hau *HPArtistUpdate) SetLastErrorMessage(s string) *HPArtistUpdate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPArtistUpdate) SetManuallyModified

func (hau *HPArtistUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPArtistUpdate

SetManuallyModified sets the "manually_modified" field.

func (*HPArtistUpdate) SetName

func (hau *HPArtistUpdate) SetName(s string) *HPArtistUpdate

SetName sets the "name" field.

func (*HPArtistUpdate) SetNillableCrawledAt

func (hau *HPArtistUpdate) SetNillableCrawledAt(t *time.Time) *HPArtistUpdate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPArtistUpdate) SetNillableErrorCount

func (hau *HPArtistUpdate) SetNillableErrorCount(i *int) *HPArtistUpdate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPArtistUpdate) SetNillableLastErrorMessage

func (hau *HPArtistUpdate) SetNillableLastErrorMessage(s *string) *HPArtistUpdate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPArtistUpdate) SetNillableRecrawlRequired

func (hau *HPArtistUpdate) SetNillableRecrawlRequired(b *bool) *HPArtistUpdate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPArtistUpdate) SetNillableUpdatedAt

func (hau *HPArtistUpdate) SetNillableUpdatedAt(t *time.Time) *HPArtistUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPArtistUpdate) SetRecrawlRequired

func (hau *HPArtistUpdate) SetRecrawlRequired(b bool) *HPArtistUpdate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPArtistUpdate) SetThumbnailURL

func (hau *HPArtistUpdate) SetThumbnailURL(s string) *HPArtistUpdate

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPArtistUpdate) SetUpdatedAt

func (hau *HPArtistUpdate) SetUpdatedAt(t time.Time) *HPArtistUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPArtistUpdate) Where

func (hau *HPArtistUpdate) Where(ps ...predicate.HPArtist) *HPArtistUpdate

Where appends a list predicates to the HPArtistUpdate builder.

type HPArtistUpdateOne

HPArtistUpdateOne is the builder for updating a single HPArtist entity.

type HPArtistUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPArtistUpdateOne) AddAssetIDs

func (hauo *HPArtistUpdateOne) AddAssetIDs(ids ...int) *HPArtistUpdateOne

AddAssetIDs adds the "assets" edge to the HPAsset entity by IDs.

func (*HPArtistUpdateOne) AddAssets

func (hauo *HPArtistUpdateOne) AddAssets(h ...*HPAsset) *HPArtistUpdateOne

AddAssets adds the "assets" edges to the HPAsset entity.

func (*HPArtistUpdateOne) AddErrorCount

func (hauo *HPArtistUpdateOne) AddErrorCount(i int) *HPArtistUpdateOne

AddErrorCount adds i to the "error_count" field.

func (*HPArtistUpdateOne) AddIndex

func (hauo *HPArtistUpdateOne) AddIndex(i int) *HPArtistUpdateOne

AddIndex adds i to the "index" field.

func (*HPArtistUpdateOne) AddMemberIDs

func (hauo *HPArtistUpdateOne) AddMemberIDs(ids ...int) *HPArtistUpdateOne

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPArtistUpdateOne) AddMembers

func (hauo *HPArtistUpdateOne) AddMembers(h ...*HPMember) *HPArtistUpdateOne

AddMembers adds the "members" edges to the HPMember entity.

func (*HPArtistUpdateOne) AddOwningAmebloPostIDs

func (hauo *HPArtistUpdateOne) AddOwningAmebloPostIDs(ids ...int) *HPArtistUpdateOne

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistUpdateOne) AddOwningAmebloPosts

func (hauo *HPArtistUpdateOne) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne

AddOwningAmebloPosts adds the "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdateOne) AddOwningFeed

func (hauo *HPArtistUpdateOne) AddOwningFeed(h ...*HPFeedItem) *HPArtistUpdateOne

AddOwningFeed adds the "owning_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdateOne) AddOwningFeedIDs

func (hauo *HPArtistUpdateOne) AddOwningFeedIDs(ids ...int) *HPArtistUpdateOne

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistUpdateOne) AddOwningIgPostIDs

func (hauo *HPArtistUpdateOne) AddOwningIgPostIDs(ids ...int) *HPArtistUpdateOne

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistUpdateOne) AddOwningIgPosts

func (hauo *HPArtistUpdateOne) AddOwningIgPosts(h ...*HPIgPost) *HPArtistUpdateOne

AddOwningIgPosts adds the "owning_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdateOne) AddTaggedAmebloPostIDs

func (hauo *HPArtistUpdateOne) AddTaggedAmebloPostIDs(ids ...int) *HPArtistUpdateOne

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPArtistUpdateOne) AddTaggedAmebloPosts

func (hauo *HPArtistUpdateOne) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne

AddTaggedAmebloPosts adds the "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdateOne) AddTaggedElineupMallItemIDs

func (hauo *HPArtistUpdateOne) AddTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdateOne

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPArtistUpdateOne) AddTaggedElineupMallItems

func (hauo *HPArtistUpdateOne) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdateOne

AddTaggedElineupMallItems adds the "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPArtistUpdateOne) AddTaggedFeed

func (hauo *HPArtistUpdateOne) AddTaggedFeed(h ...*HPFeedItem) *HPArtistUpdateOne

AddTaggedFeed adds the "tagged_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdateOne) AddTaggedFeedIDs

func (hauo *HPArtistUpdateOne) AddTaggedFeedIDs(ids ...int) *HPArtistUpdateOne

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPArtistUpdateOne) AddTaggedIgPostIDs

func (hauo *HPArtistUpdateOne) AddTaggedIgPostIDs(ids ...int) *HPArtistUpdateOne

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPArtistUpdateOne) AddTaggedIgPosts

func (hauo *HPArtistUpdateOne) AddTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdateOne

AddTaggedIgPosts adds the "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdateOne) ClearAssets

func (hauo *HPArtistUpdateOne) ClearAssets() *HPArtistUpdateOne

ClearAssets clears all "assets" edges to the HPAsset entity.

func (*HPArtistUpdateOne) ClearCrawledAt

func (hauo *HPArtistUpdateOne) ClearCrawledAt() *HPArtistUpdateOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPArtistUpdateOne) ClearLastErrorMessage

func (hauo *HPArtistUpdateOne) ClearLastErrorMessage() *HPArtistUpdateOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPArtistUpdateOne) ClearManuallyModified

func (hauo *HPArtistUpdateOne) ClearManuallyModified() *HPArtistUpdateOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPArtistUpdateOne) ClearMembers

func (hauo *HPArtistUpdateOne) ClearMembers() *HPArtistUpdateOne

ClearMembers clears all "members" edges to the HPMember entity.

func (*HPArtistUpdateOne) ClearOwningAmebloPosts

func (hauo *HPArtistUpdateOne) ClearOwningAmebloPosts() *HPArtistUpdateOne

ClearOwningAmebloPosts clears all "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdateOne) ClearOwningFeed

func (hauo *HPArtistUpdateOne) ClearOwningFeed() *HPArtistUpdateOne

ClearOwningFeed clears all "owning_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdateOne) ClearOwningIgPosts

func (hauo *HPArtistUpdateOne) ClearOwningIgPosts() *HPArtistUpdateOne

ClearOwningIgPosts clears all "owning_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdateOne) ClearRecrawlRequired

func (hauo *HPArtistUpdateOne) ClearRecrawlRequired() *HPArtistUpdateOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPArtistUpdateOne) ClearTaggedAmebloPosts

func (hauo *HPArtistUpdateOne) ClearTaggedAmebloPosts() *HPArtistUpdateOne

ClearTaggedAmebloPosts clears all "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPArtistUpdateOne) ClearTaggedElineupMallItems

func (hauo *HPArtistUpdateOne) ClearTaggedElineupMallItems() *HPArtistUpdateOne

ClearTaggedElineupMallItems clears all "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPArtistUpdateOne) ClearTaggedFeed

func (hauo *HPArtistUpdateOne) ClearTaggedFeed() *HPArtistUpdateOne

ClearTaggedFeed clears all "tagged_feed" edges to the HPFeedItem entity.

func (*HPArtistUpdateOne) ClearTaggedIgPosts

func (hauo *HPArtistUpdateOne) ClearTaggedIgPosts() *HPArtistUpdateOne

ClearTaggedIgPosts clears all "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPArtistUpdateOne) ClearUpdatedAt

func (hauo *HPArtistUpdateOne) ClearUpdatedAt() *HPArtistUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPArtistUpdateOne) Exec

func (hauo *HPArtistUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPArtistUpdateOne) ExecX

func (hauo *HPArtistUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistUpdateOne) Mutation

func (hauo *HPArtistUpdateOne) Mutation() *HPArtistMutation

Mutation returns the HPArtistMutation object of the builder.

func (*HPArtistUpdateOne) RemoveAssetIDs

func (hauo *HPArtistUpdateOne) RemoveAssetIDs(ids ...int) *HPArtistUpdateOne

RemoveAssetIDs removes the "assets" edge to HPAsset entities by IDs.

func (*HPArtistUpdateOne) RemoveAssets

func (hauo *HPArtistUpdateOne) RemoveAssets(h ...*HPAsset) *HPArtistUpdateOne

RemoveAssets removes "assets" edges to HPAsset entities.

func (*HPArtistUpdateOne) RemoveMemberIDs

func (hauo *HPArtistUpdateOne) RemoveMemberIDs(ids ...int) *HPArtistUpdateOne

RemoveMemberIDs removes the "members" edge to HPMember entities by IDs.

func (*HPArtistUpdateOne) RemoveMembers

func (hauo *HPArtistUpdateOne) RemoveMembers(h ...*HPMember) *HPArtistUpdateOne

RemoveMembers removes "members" edges to HPMember entities.

func (*HPArtistUpdateOne) RemoveOwningAmebloPostIDs

func (hauo *HPArtistUpdateOne) RemoveOwningAmebloPostIDs(ids ...int) *HPArtistUpdateOne

RemoveOwningAmebloPostIDs removes the "owning_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPArtistUpdateOne) RemoveOwningAmebloPosts

func (hauo *HPArtistUpdateOne) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne

RemoveOwningAmebloPosts removes "owning_ameblo_posts" edges to HPAmebloPost entities.

func (*HPArtistUpdateOne) RemoveOwningFeed

func (hauo *HPArtistUpdateOne) RemoveOwningFeed(h ...*HPFeedItem) *HPArtistUpdateOne

RemoveOwningFeed removes "owning_feed" edges to HPFeedItem entities.

func (*HPArtistUpdateOne) RemoveOwningFeedIDs

func (hauo *HPArtistUpdateOne) RemoveOwningFeedIDs(ids ...int) *HPArtistUpdateOne

RemoveOwningFeedIDs removes the "owning_feed" edge to HPFeedItem entities by IDs.

func (*HPArtistUpdateOne) RemoveOwningIgPostIDs

func (hauo *HPArtistUpdateOne) RemoveOwningIgPostIDs(ids ...int) *HPArtistUpdateOne

RemoveOwningIgPostIDs removes the "owning_ig_posts" edge to HPIgPost entities by IDs.

func (*HPArtistUpdateOne) RemoveOwningIgPosts

func (hauo *HPArtistUpdateOne) RemoveOwningIgPosts(h ...*HPIgPost) *HPArtistUpdateOne

RemoveOwningIgPosts removes "owning_ig_posts" edges to HPIgPost entities.

func (*HPArtistUpdateOne) RemoveTaggedAmebloPostIDs

func (hauo *HPArtistUpdateOne) RemoveTaggedAmebloPostIDs(ids ...int) *HPArtistUpdateOne

RemoveTaggedAmebloPostIDs removes the "tagged_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPArtistUpdateOne) RemoveTaggedAmebloPosts

func (hauo *HPArtistUpdateOne) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPArtistUpdateOne

RemoveTaggedAmebloPosts removes "tagged_ameblo_posts" edges to HPAmebloPost entities.

func (*HPArtistUpdateOne) RemoveTaggedElineupMallItemIDs

func (hauo *HPArtistUpdateOne) RemoveTaggedElineupMallItemIDs(ids ...int) *HPArtistUpdateOne

RemoveTaggedElineupMallItemIDs removes the "tagged_elineup_mall_items" edge to HPElineupMallItem entities by IDs.

func (*HPArtistUpdateOne) RemoveTaggedElineupMallItems

func (hauo *HPArtistUpdateOne) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPArtistUpdateOne

RemoveTaggedElineupMallItems removes "tagged_elineup_mall_items" edges to HPElineupMallItem entities.

func (*HPArtistUpdateOne) RemoveTaggedFeed

func (hauo *HPArtistUpdateOne) RemoveTaggedFeed(h ...*HPFeedItem) *HPArtistUpdateOne

RemoveTaggedFeed removes "tagged_feed" edges to HPFeedItem entities.

func (*HPArtistUpdateOne) RemoveTaggedFeedIDs

func (hauo *HPArtistUpdateOne) RemoveTaggedFeedIDs(ids ...int) *HPArtistUpdateOne

RemoveTaggedFeedIDs removes the "tagged_feed" edge to HPFeedItem entities by IDs.

func (*HPArtistUpdateOne) RemoveTaggedIgPostIDs

func (hauo *HPArtistUpdateOne) RemoveTaggedIgPostIDs(ids ...int) *HPArtistUpdateOne

RemoveTaggedIgPostIDs removes the "tagged_ig_posts" edge to HPIgPost entities by IDs.

func (*HPArtistUpdateOne) RemoveTaggedIgPosts

func (hauo *HPArtistUpdateOne) RemoveTaggedIgPosts(h ...*HPIgPost) *HPArtistUpdateOne

RemoveTaggedIgPosts removes "tagged_ig_posts" edges to HPIgPost entities.

func (*HPArtistUpdateOne) Save

func (hauo *HPArtistUpdateOne) Save(ctx context.Context) (*HPArtist, error)

Save executes the query and returns the updated HPArtist entity.

func (*HPArtistUpdateOne) SaveX

func (hauo *HPArtistUpdateOne) SaveX(ctx context.Context) *HPArtist

SaveX is like Save, but panics if an error occurs.

func (*HPArtistUpdateOne) Select

func (hauo *HPArtistUpdateOne) Select(field string, fields ...string) *HPArtistUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPArtistUpdateOne) SetCrawledAt

func (hauo *HPArtistUpdateOne) SetCrawledAt(t time.Time) *HPArtistUpdateOne

SetCrawledAt sets the "crawled_at" field.

func (*HPArtistUpdateOne) SetErrorCount

func (hauo *HPArtistUpdateOne) SetErrorCount(i int) *HPArtistUpdateOne

SetErrorCount sets the "error_count" field.

func (*HPArtistUpdateOne) SetIndex

func (hauo *HPArtistUpdateOne) SetIndex(i int) *HPArtistUpdateOne

SetIndex sets the "index" field.

func (*HPArtistUpdateOne) SetKey

func (hauo *HPArtistUpdateOne) SetKey(s string) *HPArtistUpdateOne

SetKey sets the "key" field.

func (*HPArtistUpdateOne) SetLastErrorMessage

func (hauo *HPArtistUpdateOne) SetLastErrorMessage(s string) *HPArtistUpdateOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPArtistUpdateOne) SetManuallyModified

func (hauo *HPArtistUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPArtistUpdateOne

SetManuallyModified sets the "manually_modified" field.

func (*HPArtistUpdateOne) SetName

func (hauo *HPArtistUpdateOne) SetName(s string) *HPArtistUpdateOne

SetName sets the "name" field.

func (*HPArtistUpdateOne) SetNillableCrawledAt

func (hauo *HPArtistUpdateOne) SetNillableCrawledAt(t *time.Time) *HPArtistUpdateOne

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPArtistUpdateOne) SetNillableErrorCount

func (hauo *HPArtistUpdateOne) SetNillableErrorCount(i *int) *HPArtistUpdateOne

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPArtistUpdateOne) SetNillableLastErrorMessage

func (hauo *HPArtistUpdateOne) SetNillableLastErrorMessage(s *string) *HPArtistUpdateOne

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPArtistUpdateOne) SetNillableRecrawlRequired

func (hauo *HPArtistUpdateOne) SetNillableRecrawlRequired(b *bool) *HPArtistUpdateOne

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPArtistUpdateOne) SetNillableUpdatedAt

func (hauo *HPArtistUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPArtistUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPArtistUpdateOne) SetRecrawlRequired

func (hauo *HPArtistUpdateOne) SetRecrawlRequired(b bool) *HPArtistUpdateOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPArtistUpdateOne) SetThumbnailURL

func (hauo *HPArtistUpdateOne) SetThumbnailURL(s string) *HPArtistUpdateOne

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPArtistUpdateOne) SetUpdatedAt

func (hauo *HPArtistUpdateOne) SetUpdatedAt(t time.Time) *HPArtistUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPArtistUpdateOne) Where

func (hauo *HPArtistUpdateOne) Where(ps ...predicate.HPArtist) *HPArtistUpdateOne

Where appends a list predicates to the HPArtistUpdate builder.

type HPArtistUpsert

HPArtistUpsert is the "OnConflict" setter.

type HPArtistUpsert struct {
    *sql.UpdateSet
}

func (*HPArtistUpsert) AddErrorCount

func (u *HPArtistUpsert) AddErrorCount(v int) *HPArtistUpsert

AddErrorCount adds v to the "error_count" field.

func (*HPArtistUpsert) AddIndex

func (u *HPArtistUpsert) AddIndex(v int) *HPArtistUpsert

AddIndex adds v to the "index" field.

func (*HPArtistUpsert) ClearCrawledAt

func (u *HPArtistUpsert) ClearCrawledAt() *HPArtistUpsert

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPArtistUpsert) ClearLastErrorMessage

func (u *HPArtistUpsert) ClearLastErrorMessage() *HPArtistUpsert

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPArtistUpsert) ClearManuallyModified

func (u *HPArtistUpsert) ClearManuallyModified() *HPArtistUpsert

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPArtistUpsert) ClearRecrawlRequired

func (u *HPArtistUpsert) ClearRecrawlRequired() *HPArtistUpsert

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPArtistUpsert) ClearUpdatedAt

func (u *HPArtistUpsert) ClearUpdatedAt() *HPArtistUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPArtistUpsert) SetCrawledAt

func (u *HPArtistUpsert) SetCrawledAt(v time.Time) *HPArtistUpsert

SetCrawledAt sets the "crawled_at" field.

func (*HPArtistUpsert) SetErrorCount

func (u *HPArtistUpsert) SetErrorCount(v int) *HPArtistUpsert

SetErrorCount sets the "error_count" field.

func (*HPArtistUpsert) SetIndex

func (u *HPArtistUpsert) SetIndex(v int) *HPArtistUpsert

SetIndex sets the "index" field.

func (*HPArtistUpsert) SetKey

func (u *HPArtistUpsert) SetKey(v string) *HPArtistUpsert

SetKey sets the "key" field.

func (*HPArtistUpsert) SetLastErrorMessage

func (u *HPArtistUpsert) SetLastErrorMessage(v string) *HPArtistUpsert

SetLastErrorMessage sets the "last_error_message" field.

func (*HPArtistUpsert) SetManuallyModified

func (u *HPArtistUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPArtistUpsert

SetManuallyModified sets the "manually_modified" field.

func (*HPArtistUpsert) SetName

func (u *HPArtistUpsert) SetName(v string) *HPArtistUpsert

SetName sets the "name" field.

func (*HPArtistUpsert) SetRecrawlRequired

func (u *HPArtistUpsert) SetRecrawlRequired(v bool) *HPArtistUpsert

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPArtistUpsert) SetThumbnailURL

func (u *HPArtistUpsert) SetThumbnailURL(v string) *HPArtistUpsert

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPArtistUpsert) SetUpdatedAt

func (u *HPArtistUpsert) SetUpdatedAt(v time.Time) *HPArtistUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPArtistUpsert) UpdateCrawledAt

func (u *HPArtistUpsert) UpdateCrawledAt() *HPArtistUpsert

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateErrorCount

func (u *HPArtistUpsert) UpdateErrorCount() *HPArtistUpsert

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateIndex

func (u *HPArtistUpsert) UpdateIndex() *HPArtistUpsert

UpdateIndex sets the "index" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateKey

func (u *HPArtistUpsert) UpdateKey() *HPArtistUpsert

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateLastErrorMessage

func (u *HPArtistUpsert) UpdateLastErrorMessage() *HPArtistUpsert

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateManuallyModified

func (u *HPArtistUpsert) UpdateManuallyModified() *HPArtistUpsert

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateName

func (u *HPArtistUpsert) UpdateName() *HPArtistUpsert

UpdateName sets the "name" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateRecrawlRequired

func (u *HPArtistUpsert) UpdateRecrawlRequired() *HPArtistUpsert

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateThumbnailURL

func (u *HPArtistUpsert) UpdateThumbnailURL() *HPArtistUpsert

UpdateThumbnailURL sets the "thumbnail_url" field to the value that was provided on create.

func (*HPArtistUpsert) UpdateUpdatedAt

func (u *HPArtistUpsert) UpdateUpdatedAt() *HPArtistUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPArtistUpsertBulk

HPArtistUpsertBulk is the builder for "upsert"-ing a bulk of HPArtist nodes.

type HPArtistUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPArtistUpsertBulk) AddErrorCount

func (u *HPArtistUpsertBulk) AddErrorCount(v int) *HPArtistUpsertBulk

AddErrorCount adds v to the "error_count" field.

func (*HPArtistUpsertBulk) AddIndex

func (u *HPArtistUpsertBulk) AddIndex(v int) *HPArtistUpsertBulk

AddIndex adds v to the "index" field.

func (*HPArtistUpsertBulk) ClearCrawledAt

func (u *HPArtistUpsertBulk) ClearCrawledAt() *HPArtistUpsertBulk

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPArtistUpsertBulk) ClearLastErrorMessage

func (u *HPArtistUpsertBulk) ClearLastErrorMessage() *HPArtistUpsertBulk

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPArtistUpsertBulk) ClearManuallyModified

func (u *HPArtistUpsertBulk) ClearManuallyModified() *HPArtistUpsertBulk

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPArtistUpsertBulk) ClearRecrawlRequired

func (u *HPArtistUpsertBulk) ClearRecrawlRequired() *HPArtistUpsertBulk

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPArtistUpsertBulk) ClearUpdatedAt

func (u *HPArtistUpsertBulk) ClearUpdatedAt() *HPArtistUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPArtistUpsertBulk) DoNothing

func (u *HPArtistUpsertBulk) DoNothing() *HPArtistUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPArtistUpsertBulk) Exec

func (u *HPArtistUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPArtistUpsertBulk) ExecX

func (u *HPArtistUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistUpsertBulk) Ignore

func (u *HPArtistUpsertBulk) Ignore() *HPArtistUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPArtist.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPArtistUpsertBulk) SetCrawledAt

func (u *HPArtistUpsertBulk) SetCrawledAt(v time.Time) *HPArtistUpsertBulk

SetCrawledAt sets the "crawled_at" field.

func (*HPArtistUpsertBulk) SetErrorCount

func (u *HPArtistUpsertBulk) SetErrorCount(v int) *HPArtistUpsertBulk

SetErrorCount sets the "error_count" field.

func (*HPArtistUpsertBulk) SetIndex

func (u *HPArtistUpsertBulk) SetIndex(v int) *HPArtistUpsertBulk

SetIndex sets the "index" field.

func (*HPArtistUpsertBulk) SetKey

func (u *HPArtistUpsertBulk) SetKey(v string) *HPArtistUpsertBulk

SetKey sets the "key" field.

func (*HPArtistUpsertBulk) SetLastErrorMessage

func (u *HPArtistUpsertBulk) SetLastErrorMessage(v string) *HPArtistUpsertBulk

SetLastErrorMessage sets the "last_error_message" field.

func (*HPArtistUpsertBulk) SetManuallyModified

func (u *HPArtistUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPArtistUpsertBulk

SetManuallyModified sets the "manually_modified" field.

func (*HPArtistUpsertBulk) SetName

func (u *HPArtistUpsertBulk) SetName(v string) *HPArtistUpsertBulk

SetName sets the "name" field.

func (*HPArtistUpsertBulk) SetRecrawlRequired

func (u *HPArtistUpsertBulk) SetRecrawlRequired(v bool) *HPArtistUpsertBulk

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPArtistUpsertBulk) SetThumbnailURL

func (u *HPArtistUpsertBulk) SetThumbnailURL(v string) *HPArtistUpsertBulk

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPArtistUpsertBulk) SetUpdatedAt

func (u *HPArtistUpsertBulk) SetUpdatedAt(v time.Time) *HPArtistUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPArtistUpsertBulk) Update

func (u *HPArtistUpsertBulk) Update(set func(*HPArtistUpsert)) *HPArtistUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPArtistCreateBulk.OnConflict documentation for more info.

func (*HPArtistUpsertBulk) UpdateCrawledAt

func (u *HPArtistUpsertBulk) UpdateCrawledAt() *HPArtistUpsertBulk

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateErrorCount

func (u *HPArtistUpsertBulk) UpdateErrorCount() *HPArtistUpsertBulk

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateIndex

func (u *HPArtistUpsertBulk) UpdateIndex() *HPArtistUpsertBulk

UpdateIndex sets the "index" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateKey

func (u *HPArtistUpsertBulk) UpdateKey() *HPArtistUpsertBulk

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateLastErrorMessage

func (u *HPArtistUpsertBulk) UpdateLastErrorMessage() *HPArtistUpsertBulk

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateManuallyModified

func (u *HPArtistUpsertBulk) UpdateManuallyModified() *HPArtistUpsertBulk

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateName

func (u *HPArtistUpsertBulk) UpdateName() *HPArtistUpsertBulk

UpdateName sets the "name" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateNewValues

func (u *HPArtistUpsertBulk) UpdateNewValues() *HPArtistUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPArtist.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPArtistUpsertBulk) UpdateRecrawlRequired

func (u *HPArtistUpsertBulk) UpdateRecrawlRequired() *HPArtistUpsertBulk

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateThumbnailURL

func (u *HPArtistUpsertBulk) UpdateThumbnailURL() *HPArtistUpsertBulk

UpdateThumbnailURL sets the "thumbnail_url" field to the value that was provided on create.

func (*HPArtistUpsertBulk) UpdateUpdatedAt

func (u *HPArtistUpsertBulk) UpdateUpdatedAt() *HPArtistUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPArtistUpsertOne

HPArtistUpsertOne is the builder for "upsert"-ing

one HPArtist node.
type HPArtistUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPArtistUpsertOne) AddErrorCount

func (u *HPArtistUpsertOne) AddErrorCount(v int) *HPArtistUpsertOne

AddErrorCount adds v to the "error_count" field.

func (*HPArtistUpsertOne) AddIndex

func (u *HPArtistUpsertOne) AddIndex(v int) *HPArtistUpsertOne

AddIndex adds v to the "index" field.

func (*HPArtistUpsertOne) ClearCrawledAt

func (u *HPArtistUpsertOne) ClearCrawledAt() *HPArtistUpsertOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPArtistUpsertOne) ClearLastErrorMessage

func (u *HPArtistUpsertOne) ClearLastErrorMessage() *HPArtistUpsertOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPArtistUpsertOne) ClearManuallyModified

func (u *HPArtistUpsertOne) ClearManuallyModified() *HPArtistUpsertOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPArtistUpsertOne) ClearRecrawlRequired

func (u *HPArtistUpsertOne) ClearRecrawlRequired() *HPArtistUpsertOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPArtistUpsertOne) ClearUpdatedAt

func (u *HPArtistUpsertOne) ClearUpdatedAt() *HPArtistUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPArtistUpsertOne) DoNothing

func (u *HPArtistUpsertOne) DoNothing() *HPArtistUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPArtistUpsertOne) Exec

func (u *HPArtistUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPArtistUpsertOne) ExecX

func (u *HPArtistUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPArtistUpsertOne) ID

func (u *HPArtistUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPArtistUpsertOne) IDX

func (u *HPArtistUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPArtistUpsertOne) Ignore

func (u *HPArtistUpsertOne) Ignore() *HPArtistUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPArtist.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPArtistUpsertOne) SetCrawledAt

func (u *HPArtistUpsertOne) SetCrawledAt(v time.Time) *HPArtistUpsertOne

SetCrawledAt sets the "crawled_at" field.

func (*HPArtistUpsertOne) SetErrorCount

func (u *HPArtistUpsertOne) SetErrorCount(v int) *HPArtistUpsertOne

SetErrorCount sets the "error_count" field.

func (*HPArtistUpsertOne) SetIndex

func (u *HPArtistUpsertOne) SetIndex(v int) *HPArtistUpsertOne

SetIndex sets the "index" field.

func (*HPArtistUpsertOne) SetKey

func (u *HPArtistUpsertOne) SetKey(v string) *HPArtistUpsertOne

SetKey sets the "key" field.

func (*HPArtistUpsertOne) SetLastErrorMessage

func (u *HPArtistUpsertOne) SetLastErrorMessage(v string) *HPArtistUpsertOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPArtistUpsertOne) SetManuallyModified

func (u *HPArtistUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPArtistUpsertOne

SetManuallyModified sets the "manually_modified" field.

func (*HPArtistUpsertOne) SetName

func (u *HPArtistUpsertOne) SetName(v string) *HPArtistUpsertOne

SetName sets the "name" field.

func (*HPArtistUpsertOne) SetRecrawlRequired

func (u *HPArtistUpsertOne) SetRecrawlRequired(v bool) *HPArtistUpsertOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPArtistUpsertOne) SetThumbnailURL

func (u *HPArtistUpsertOne) SetThumbnailURL(v string) *HPArtistUpsertOne

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPArtistUpsertOne) SetUpdatedAt

func (u *HPArtistUpsertOne) SetUpdatedAt(v time.Time) *HPArtistUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPArtistUpsertOne) Update

func (u *HPArtistUpsertOne) Update(set func(*HPArtistUpsert)) *HPArtistUpsertOne

Update allows overriding fields `UPDATE` values. See the HPArtistCreate.OnConflict documentation for more info.

func (*HPArtistUpsertOne) UpdateCrawledAt

func (u *HPArtistUpsertOne) UpdateCrawledAt() *HPArtistUpsertOne

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateErrorCount

func (u *HPArtistUpsertOne) UpdateErrorCount() *HPArtistUpsertOne

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateIndex

func (u *HPArtistUpsertOne) UpdateIndex() *HPArtistUpsertOne

UpdateIndex sets the "index" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateKey

func (u *HPArtistUpsertOne) UpdateKey() *HPArtistUpsertOne

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateLastErrorMessage

func (u *HPArtistUpsertOne) UpdateLastErrorMessage() *HPArtistUpsertOne

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateManuallyModified

func (u *HPArtistUpsertOne) UpdateManuallyModified() *HPArtistUpsertOne

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateName

func (u *HPArtistUpsertOne) UpdateName() *HPArtistUpsertOne

UpdateName sets the "name" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateNewValues

func (u *HPArtistUpsertOne) UpdateNewValues() *HPArtistUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPArtist.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPArtistUpsertOne) UpdateRecrawlRequired

func (u *HPArtistUpsertOne) UpdateRecrawlRequired() *HPArtistUpsertOne

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateThumbnailURL

func (u *HPArtistUpsertOne) UpdateThumbnailURL() *HPArtistUpsertOne

UpdateThumbnailURL sets the "thumbnail_url" field to the value that was provided on create.

func (*HPArtistUpsertOne) UpdateUpdatedAt

func (u *HPArtistUpsertOne) UpdateUpdatedAt() *HPArtistUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPArtists

HPArtists is a parsable slice of HPArtist.

type HPArtists []*HPArtist

type HPAsset

HPAsset is the model entity for the HPAsset schema.

type HPAsset struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // Key holds the value of the "key" field.
    Key string `json:"key,omitempty"`
    // AssetType holds the value of the "asset_type" field.
    AssetType enums.HPAssetType `json:"asset_type,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPAssetQuery when eager-loading is set.
    Edges HPAssetEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPAsset) NamedAmebloPosts

func (ha *HPAsset) NamedAmebloPosts(name string) ([]*HPAmebloPost, error)

NamedAmebloPosts returns the AmebloPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPAsset) NamedIgPosts

func (ha *HPAsset) NamedIgPosts(name string) ([]*HPIgPost, error)

NamedIgPosts returns the IgPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPAsset) NamedMembers

func (ha *HPAsset) NamedMembers(name string) ([]*HPMember, error)

NamedMembers returns the Members named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPAsset) QueryAmebloPosts

func (ha *HPAsset) QueryAmebloPosts() *HPAmebloPostQuery

QueryAmebloPosts queries the "ameblo_posts" edge of the HPAsset entity.

func (*HPAsset) QueryArtist

func (ha *HPAsset) QueryArtist() *HPArtistQuery

QueryArtist queries the "artist" edge of the HPAsset entity.

func (*HPAsset) QueryIgPosts

func (ha *HPAsset) QueryIgPosts() *HPIgPostQuery

QueryIgPosts queries the "ig_posts" edge of the HPAsset entity.

func (*HPAsset) QueryMembers

func (ha *HPAsset) QueryMembers() *HPMemberQuery

QueryMembers queries the "members" edge of the HPAsset entity.

func (*HPAsset) String

func (ha *HPAsset) String() string

String implements the fmt.Stringer.

func (*HPAsset) Unwrap

func (ha *HPAsset) Unwrap() *HPAsset

Unwrap unwraps the HPAsset entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPAsset) Update

func (ha *HPAsset) Update() *HPAssetUpdateOne

Update returns a builder for updating this HPAsset. Note that you need to call HPAsset.Unwrap() before calling this method if this HPAsset was returned from a transaction, and the transaction was committed or rolled back.

func (*HPAsset) Value

func (ha *HPAsset) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPAsset. This includes values selected through modifiers, order, etc.

type HPAssetClient

HPAssetClient is a client for the HPAsset schema.

type HPAssetClient struct {
    // contains filtered or unexported fields
}

func NewHPAssetClient

func NewHPAssetClient(c config) *HPAssetClient

NewHPAssetClient returns a client for the HPAsset from the given config.

func (*HPAssetClient) Create

func (c *HPAssetClient) Create() *HPAssetCreate

Create returns a builder for creating a HPAsset entity.

func (*HPAssetClient) CreateBulk

func (c *HPAssetClient) CreateBulk(builders ...*HPAssetCreate) *HPAssetCreateBulk

CreateBulk returns a builder for creating a bulk of HPAsset entities.

func (*HPAssetClient) Delete

func (c *HPAssetClient) Delete() *HPAssetDelete

Delete returns a delete builder for HPAsset.

func (*HPAssetClient) DeleteOne

func (c *HPAssetClient) DeleteOne(ha *HPAsset) *HPAssetDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPAssetClient) DeleteOneID

func (c *HPAssetClient) DeleteOneID(id int) *HPAssetDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPAssetClient) Get

func (c *HPAssetClient) Get(ctx context.Context, id int) (*HPAsset, error)

Get returns a HPAsset entity by its id.

func (*HPAssetClient) GetX

func (c *HPAssetClient) GetX(ctx context.Context, id int) *HPAsset

GetX is like Get, but panics if an error occurs.

func (*HPAssetClient) Hooks

func (c *HPAssetClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPAssetClient) Intercept

func (c *HPAssetClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpasset.Intercept(f(g(h())))`.

func (*HPAssetClient) Interceptors

func (c *HPAssetClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPAssetClient) Query

func (c *HPAssetClient) Query() *HPAssetQuery

Query returns a query builder for HPAsset.

func (*HPAssetClient) QueryAmebloPosts

func (c *HPAssetClient) QueryAmebloPosts(ha *HPAsset) *HPAmebloPostQuery

QueryAmebloPosts queries the ameblo_posts edge of a HPAsset.

func (*HPAssetClient) QueryArtist

func (c *HPAssetClient) QueryArtist(ha *HPAsset) *HPArtistQuery

QueryArtist queries the artist edge of a HPAsset.

func (*HPAssetClient) QueryIgPosts

func (c *HPAssetClient) QueryIgPosts(ha *HPAsset) *HPIgPostQuery

QueryIgPosts queries the ig_posts edge of a HPAsset.

func (*HPAssetClient) QueryMembers

func (c *HPAssetClient) QueryMembers(ha *HPAsset) *HPMemberQuery

QueryMembers queries the members edge of a HPAsset.

func (*HPAssetClient) Update

func (c *HPAssetClient) Update() *HPAssetUpdate

Update returns an update builder for HPAsset.

func (*HPAssetClient) UpdateOne

func (c *HPAssetClient) UpdateOne(ha *HPAsset) *HPAssetUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPAssetClient) UpdateOneID

func (c *HPAssetClient) UpdateOneID(id int) *HPAssetUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPAssetClient) Use

func (c *HPAssetClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpasset.Hooks(f(g(h())))`.

type HPAssetCreate

HPAssetCreate is the builder for creating a HPAsset entity.

type HPAssetCreate struct {
    // contains filtered or unexported fields
}

func (*HPAssetCreate) AddAmebloPostIDs

func (hac *HPAssetCreate) AddAmebloPostIDs(ids ...int) *HPAssetCreate

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPAssetCreate) AddAmebloPosts

func (hac *HPAssetCreate) AddAmebloPosts(h ...*HPAmebloPost) *HPAssetCreate

AddAmebloPosts adds the "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPAssetCreate) AddIgPostIDs

func (hac *HPAssetCreate) AddIgPostIDs(ids ...int) *HPAssetCreate

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPAssetCreate) AddIgPosts

func (hac *HPAssetCreate) AddIgPosts(h ...*HPIgPost) *HPAssetCreate

AddIgPosts adds the "ig_posts" edges to the HPIgPost entity.

func (*HPAssetCreate) AddMemberIDs

func (hac *HPAssetCreate) AddMemberIDs(ids ...int) *HPAssetCreate

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPAssetCreate) AddMembers

func (hac *HPAssetCreate) AddMembers(h ...*HPMember) *HPAssetCreate

AddMembers adds the "members" edges to the HPMember entity.

func (*HPAssetCreate) Exec

func (hac *HPAssetCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAssetCreate) ExecX

func (hac *HPAssetCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetCreate) Mutation

func (hac *HPAssetCreate) Mutation() *HPAssetMutation

Mutation returns the HPAssetMutation object of the builder.

func (*HPAssetCreate) OnConflict

func (hac *HPAssetCreate) OnConflict(opts ...sql.ConflictOption) *HPAssetUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPAsset.Create().
	SetKey(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPAssetUpsert) {
		SetKey(v+v).
	}).
	Exec(ctx)

func (*HPAssetCreate) OnConflictColumns

func (hac *HPAssetCreate) OnConflictColumns(columns ...string) *HPAssetUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPAsset.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPAssetCreate) Save

func (hac *HPAssetCreate) Save(ctx context.Context) (*HPAsset, error)

Save creates the HPAsset in the database.

func (*HPAssetCreate) SaveX

func (hac *HPAssetCreate) SaveX(ctx context.Context) *HPAsset

SaveX calls Save and panics if Save returns an error.

func (*HPAssetCreate) SetArtist

func (hac *HPAssetCreate) SetArtist(h *HPArtist) *HPAssetCreate

SetArtist sets the "artist" edge to the HPArtist entity.

func (*HPAssetCreate) SetArtistID

func (hac *HPAssetCreate) SetArtistID(id int) *HPAssetCreate

SetArtistID sets the "artist" edge to the HPArtist entity by ID.

func (*HPAssetCreate) SetAssetType

func (hac *HPAssetCreate) SetAssetType(eat enums.HPAssetType) *HPAssetCreate

SetAssetType sets the "asset_type" field.

func (*HPAssetCreate) SetKey

func (hac *HPAssetCreate) SetKey(s string) *HPAssetCreate

SetKey sets the "key" field.

func (*HPAssetCreate) SetNillableArtistID

func (hac *HPAssetCreate) SetNillableArtistID(id *int) *HPAssetCreate

SetNillableArtistID sets the "artist" edge to the HPArtist entity by ID if the given value is not nil.

type HPAssetCreateBulk

HPAssetCreateBulk is the builder for creating many HPAsset entities in bulk.

type HPAssetCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPAssetCreateBulk) Exec

func (hacb *HPAssetCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAssetCreateBulk) ExecX

func (hacb *HPAssetCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetCreateBulk) OnConflict

func (hacb *HPAssetCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPAssetUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPAsset.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPAssetUpsert) {
		SetKey(v+v).
	}).
	Exec(ctx)

func (*HPAssetCreateBulk) OnConflictColumns

func (hacb *HPAssetCreateBulk) OnConflictColumns(columns ...string) *HPAssetUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPAsset.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPAssetCreateBulk) Save

func (hacb *HPAssetCreateBulk) Save(ctx context.Context) ([]*HPAsset, error)

Save creates the HPAsset entities in the database.

func (*HPAssetCreateBulk) SaveX

func (hacb *HPAssetCreateBulk) SaveX(ctx context.Context) []*HPAsset

SaveX is like Save, but panics if an error occurs.

type HPAssetDelete

HPAssetDelete is the builder for deleting a HPAsset entity.

type HPAssetDelete struct {
    // contains filtered or unexported fields
}

func (*HPAssetDelete) Exec

func (had *HPAssetDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPAssetDelete) ExecX

func (had *HPAssetDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetDelete) Where

func (had *HPAssetDelete) Where(ps ...predicate.HPAsset) *HPAssetDelete

Where appends a list predicates to the HPAssetDelete builder.

type HPAssetDeleteOne

HPAssetDeleteOne is the builder for deleting a single HPAsset entity.

type HPAssetDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPAssetDeleteOne) Exec

func (hado *HPAssetDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPAssetDeleteOne) ExecX

func (hado *HPAssetDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetDeleteOne) Where

func (hado *HPAssetDeleteOne) Where(ps ...predicate.HPAsset) *HPAssetDeleteOne

Where appends a list predicates to the HPAssetDelete builder.

type HPAssetEdges

HPAssetEdges holds the relations/edges for other nodes in the graph.

type HPAssetEdges struct {
    // Artist holds the value of the artist edge.
    Artist *HPArtist `json:"artist,omitempty"`
    // Members holds the value of the members edge.
    Members []*HPMember `json:"members,omitempty"`
    // AmebloPosts holds the value of the ameblo_posts edge.
    AmebloPosts []*HPAmebloPost `json:"ameblo_posts,omitempty"`
    // IgPosts holds the value of the ig_posts edge.
    IgPosts []*HPIgPost `json:"ig_posts,omitempty"`
    // contains filtered or unexported fields
}

func (HPAssetEdges) AmebloPostsOrErr

func (e HPAssetEdges) AmebloPostsOrErr() ([]*HPAmebloPost, error)

AmebloPostsOrErr returns the AmebloPosts value or an error if the edge was not loaded in eager-loading.

func (HPAssetEdges) ArtistOrErr

func (e HPAssetEdges) ArtistOrErr() (*HPArtist, error)

ArtistOrErr returns the Artist value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPAssetEdges) IgPostsOrErr

func (e HPAssetEdges) IgPostsOrErr() ([]*HPIgPost, error)

IgPostsOrErr returns the IgPosts value or an error if the edge was not loaded in eager-loading.

func (HPAssetEdges) MembersOrErr

func (e HPAssetEdges) MembersOrErr() ([]*HPMember, error)

MembersOrErr returns the Members value or an error if the edge was not loaded in eager-loading.

type HPAssetFilter

HPAssetFilter provides a generic filtering capability at runtime for HPAssetQuery.

type HPAssetFilter struct {
    // contains filtered or unexported fields
}

func (*HPAssetFilter) Where

func (f *HPAssetFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPAssetFilter) WhereAssetType

func (f *HPAssetFilter) WhereAssetType(p entql.StringP)

WhereAssetType applies the entql string predicate on the asset_type field.

func (*HPAssetFilter) WhereHasAmebloPosts

func (f *HPAssetFilter) WhereHasAmebloPosts()

WhereHasAmebloPosts applies a predicate to check if query has an edge ameblo_posts.

func (*HPAssetFilter) WhereHasAmebloPostsWith

func (f *HPAssetFilter) WhereHasAmebloPostsWith(preds ...predicate.HPAmebloPost)

WhereHasAmebloPostsWith applies a predicate to check if query has an edge ameblo_posts with a given conditions (other predicates).

func (*HPAssetFilter) WhereHasArtist

func (f *HPAssetFilter) WhereHasArtist()

WhereHasArtist applies a predicate to check if query has an edge artist.

func (*HPAssetFilter) WhereHasArtistWith

func (f *HPAssetFilter) WhereHasArtistWith(preds ...predicate.HPArtist)

WhereHasArtistWith applies a predicate to check if query has an edge artist with a given conditions (other predicates).

func (*HPAssetFilter) WhereHasIgPosts

func (f *HPAssetFilter) WhereHasIgPosts()

WhereHasIgPosts applies a predicate to check if query has an edge ig_posts.

func (*HPAssetFilter) WhereHasIgPostsWith

func (f *HPAssetFilter) WhereHasIgPostsWith(preds ...predicate.HPIgPost)

WhereHasIgPostsWith applies a predicate to check if query has an edge ig_posts with a given conditions (other predicates).

func (*HPAssetFilter) WhereHasMembers

func (f *HPAssetFilter) WhereHasMembers()

WhereHasMembers applies a predicate to check if query has an edge members.

func (*HPAssetFilter) WhereHasMembersWith

func (f *HPAssetFilter) WhereHasMembersWith(preds ...predicate.HPMember)

WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates).

func (*HPAssetFilter) WhereID

func (f *HPAssetFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPAssetFilter) WhereKey

func (f *HPAssetFilter) WhereKey(p entql.StringP)

WhereKey applies the entql string predicate on the key field.

type HPAssetGroupBy

HPAssetGroupBy is the group-by builder for HPAsset entities.

type HPAssetGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPAssetGroupBy) Aggregate

func (hagb *HPAssetGroupBy) Aggregate(fns ...AggregateFunc) *HPAssetGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPAssetGroupBy) Bool

func (s *HPAssetGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) BoolX

func (s *HPAssetGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPAssetGroupBy) Bools

func (s *HPAssetGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) BoolsX

func (s *HPAssetGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPAssetGroupBy) Float64

func (s *HPAssetGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) Float64X

func (s *HPAssetGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPAssetGroupBy) Float64s

func (s *HPAssetGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) Float64sX

func (s *HPAssetGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPAssetGroupBy) Int

func (s *HPAssetGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) IntX

func (s *HPAssetGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPAssetGroupBy) Ints

func (s *HPAssetGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) IntsX

func (s *HPAssetGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPAssetGroupBy) Scan

func (hagb *HPAssetGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPAssetGroupBy) ScanX

func (s *HPAssetGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPAssetGroupBy) String

func (s *HPAssetGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) StringX

func (s *HPAssetGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPAssetGroupBy) Strings

func (s *HPAssetGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPAssetGroupBy) StringsX

func (s *HPAssetGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPAssetMutation

HPAssetMutation represents an operation that mutates the HPAsset nodes in the graph.

type HPAssetMutation struct {
    // contains filtered or unexported fields
}

func (*HPAssetMutation) AddAmebloPostIDs

func (m *HPAssetMutation) AddAmebloPostIDs(ids ...int)

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by ids.

func (*HPAssetMutation) AddField

func (m *HPAssetMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPAssetMutation) AddIgPostIDs

func (m *HPAssetMutation) AddIgPostIDs(ids ...int)

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by ids.

func (*HPAssetMutation) AddMemberIDs

func (m *HPAssetMutation) AddMemberIDs(ids ...int)

AddMemberIDs adds the "members" edge to the HPMember entity by ids.

func (*HPAssetMutation) AddedEdges

func (m *HPAssetMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPAssetMutation) AddedField

func (m *HPAssetMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPAssetMutation) AddedFields

func (m *HPAssetMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPAssetMutation) AddedIDs

func (m *HPAssetMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPAssetMutation) AmebloPostsCleared

func (m *HPAssetMutation) AmebloPostsCleared() bool

AmebloPostsCleared reports if the "ameblo_posts" edge to the HPAmebloPost entity was cleared.

func (*HPAssetMutation) AmebloPostsIDs

func (m *HPAssetMutation) AmebloPostsIDs() (ids []int)

AmebloPostsIDs returns the "ameblo_posts" edge IDs in the mutation.

func (*HPAssetMutation) ArtistCleared

func (m *HPAssetMutation) ArtistCleared() bool

ArtistCleared reports if the "artist" edge to the HPArtist entity was cleared.

func (*HPAssetMutation) ArtistID

func (m *HPAssetMutation) ArtistID() (id int, exists bool)

ArtistID returns the "artist" edge ID in the mutation.

func (*HPAssetMutation) ArtistIDs

func (m *HPAssetMutation) ArtistIDs() (ids []int)

ArtistIDs returns the "artist" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ArtistID instead. It exists only for internal usage by the builders.

func (*HPAssetMutation) AssetType

func (m *HPAssetMutation) AssetType() (r enums.HPAssetType, exists bool)

AssetType returns the value of the "asset_type" field in the mutation.

func (*HPAssetMutation) ClearAmebloPosts

func (m *HPAssetMutation) ClearAmebloPosts()

ClearAmebloPosts clears the "ameblo_posts" edge to the HPAmebloPost entity.

func (*HPAssetMutation) ClearArtist

func (m *HPAssetMutation) ClearArtist()

ClearArtist clears the "artist" edge to the HPArtist entity.

func (*HPAssetMutation) ClearEdge

func (m *HPAssetMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPAssetMutation) ClearField

func (m *HPAssetMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPAssetMutation) ClearIgPosts

func (m *HPAssetMutation) ClearIgPosts()

ClearIgPosts clears the "ig_posts" edge to the HPIgPost entity.

func (*HPAssetMutation) ClearMembers

func (m *HPAssetMutation) ClearMembers()

ClearMembers clears the "members" edge to the HPMember entity.

func (*HPAssetMutation) ClearedEdges

func (m *HPAssetMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPAssetMutation) ClearedFields

func (m *HPAssetMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPAssetMutation) Client

func (m HPAssetMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPAssetMutation) EdgeCleared

func (m *HPAssetMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPAssetMutation) Field

func (m *HPAssetMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPAssetMutation) FieldCleared

func (m *HPAssetMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPAssetMutation) Fields

func (m *HPAssetMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPAssetMutation) Filter

func (m *HPAssetMutation) Filter() *HPAssetFilter

Filter returns an entql.Where implementation to apply filters on the HPAssetMutation builder.

func (*HPAssetMutation) ID

func (m *HPAssetMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPAssetMutation) IDs

func (m *HPAssetMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPAssetMutation) IgPostsCleared

func (m *HPAssetMutation) IgPostsCleared() bool

IgPostsCleared reports if the "ig_posts" edge to the HPIgPost entity was cleared.

func (*HPAssetMutation) IgPostsIDs

func (m *HPAssetMutation) IgPostsIDs() (ids []int)

IgPostsIDs returns the "ig_posts" edge IDs in the mutation.

func (*HPAssetMutation) Key

func (m *HPAssetMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*HPAssetMutation) MembersCleared

func (m *HPAssetMutation) MembersCleared() bool

MembersCleared reports if the "members" edge to the HPMember entity was cleared.

func (*HPAssetMutation) MembersIDs

func (m *HPAssetMutation) MembersIDs() (ids []int)

MembersIDs returns the "members" edge IDs in the mutation.

func (*HPAssetMutation) OldAssetType

func (m *HPAssetMutation) OldAssetType(ctx context.Context) (v enums.HPAssetType, err error)

OldAssetType returns the old "asset_type" field's value of the HPAsset entity. If the HPAsset object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAssetMutation) OldField

func (m *HPAssetMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPAssetMutation) OldKey

func (m *HPAssetMutation) OldKey(ctx context.Context) (v string, err error)

OldKey returns the old "key" field's value of the HPAsset entity. If the HPAsset object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPAssetMutation) Op

func (m *HPAssetMutation) Op() Op

Op returns the operation name.

func (*HPAssetMutation) RemoveAmebloPostIDs

func (m *HPAssetMutation) RemoveAmebloPostIDs(ids ...int)

RemoveAmebloPostIDs removes the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPAssetMutation) RemoveIgPostIDs

func (m *HPAssetMutation) RemoveIgPostIDs(ids ...int)

RemoveIgPostIDs removes the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPAssetMutation) RemoveMemberIDs

func (m *HPAssetMutation) RemoveMemberIDs(ids ...int)

RemoveMemberIDs removes the "members" edge to the HPMember entity by IDs.

func (*HPAssetMutation) RemovedAmebloPostsIDs

func (m *HPAssetMutation) RemovedAmebloPostsIDs() (ids []int)

RemovedAmebloPosts returns the removed IDs of the "ameblo_posts" edge to the HPAmebloPost entity.

func (*HPAssetMutation) RemovedEdges

func (m *HPAssetMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPAssetMutation) RemovedIDs

func (m *HPAssetMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPAssetMutation) RemovedIgPostsIDs

func (m *HPAssetMutation) RemovedIgPostsIDs() (ids []int)

RemovedIgPosts returns the removed IDs of the "ig_posts" edge to the HPIgPost entity.

func (*HPAssetMutation) RemovedMembersIDs

func (m *HPAssetMutation) RemovedMembersIDs() (ids []int)

RemovedMembers returns the removed IDs of the "members" edge to the HPMember entity.

func (*HPAssetMutation) ResetAmebloPosts

func (m *HPAssetMutation) ResetAmebloPosts()

ResetAmebloPosts resets all changes to the "ameblo_posts" edge.

func (*HPAssetMutation) ResetArtist

func (m *HPAssetMutation) ResetArtist()

ResetArtist resets all changes to the "artist" edge.

func (*HPAssetMutation) ResetAssetType

func (m *HPAssetMutation) ResetAssetType()

ResetAssetType resets all changes to the "asset_type" field.

func (*HPAssetMutation) ResetEdge

func (m *HPAssetMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPAssetMutation) ResetField

func (m *HPAssetMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPAssetMutation) ResetIgPosts

func (m *HPAssetMutation) ResetIgPosts()

ResetIgPosts resets all changes to the "ig_posts" edge.

func (*HPAssetMutation) ResetKey

func (m *HPAssetMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*HPAssetMutation) ResetMembers

func (m *HPAssetMutation) ResetMembers()

ResetMembers resets all changes to the "members" edge.

func (*HPAssetMutation) SetArtistID

func (m *HPAssetMutation) SetArtistID(id int)

SetArtistID sets the "artist" edge to the HPArtist entity by id.

func (*HPAssetMutation) SetAssetType

func (m *HPAssetMutation) SetAssetType(eat enums.HPAssetType)

SetAssetType sets the "asset_type" field.

func (*HPAssetMutation) SetField

func (m *HPAssetMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPAssetMutation) SetKey

func (m *HPAssetMutation) SetKey(s string)

SetKey sets the "key" field.

func (*HPAssetMutation) SetOp

func (m *HPAssetMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (HPAssetMutation) Tx

func (m HPAssetMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPAssetMutation) Type

func (m *HPAssetMutation) Type() string

Type returns the node type of this mutation (HPAsset).

func (*HPAssetMutation) Where

func (m *HPAssetMutation) Where(ps ...predicate.HPAsset)

Where appends a list predicates to the HPAssetMutation builder.

func (*HPAssetMutation) WhereP

func (m *HPAssetMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPAssetMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPAssetQuery

HPAssetQuery is the builder for querying HPAsset entities.

type HPAssetQuery struct {
    // contains filtered or unexported fields
}

func (*HPAssetQuery) Aggregate

func (haq *HPAssetQuery) Aggregate(fns ...AggregateFunc) *HPAssetSelect

Aggregate returns a HPAssetSelect configured with the given aggregations.

func (*HPAssetQuery) All

func (haq *HPAssetQuery) All(ctx context.Context) ([]*HPAsset, error)

All executes the query and returns a list of HPAssets.

func (*HPAssetQuery) AllX

func (haq *HPAssetQuery) AllX(ctx context.Context) []*HPAsset

AllX is like All, but panics if an error occurs.

func (*HPAssetQuery) Clone

func (haq *HPAssetQuery) Clone() *HPAssetQuery

Clone returns a duplicate of the HPAssetQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPAssetQuery) Count

func (haq *HPAssetQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPAssetQuery) CountX

func (haq *HPAssetQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPAssetQuery) Exist

func (haq *HPAssetQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPAssetQuery) ExistX

func (haq *HPAssetQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPAssetQuery) Filter

func (haq *HPAssetQuery) Filter() *HPAssetFilter

Filter returns a Filter implementation to apply filters on the HPAssetQuery builder.

func (*HPAssetQuery) First

func (haq *HPAssetQuery) First(ctx context.Context) (*HPAsset, error)

First returns the first HPAsset entity from the query. Returns a *NotFoundError when no HPAsset was found.

func (*HPAssetQuery) FirstID

func (haq *HPAssetQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPAsset ID from the query. Returns a *NotFoundError when no HPAsset ID was found.

func (*HPAssetQuery) FirstIDX

func (haq *HPAssetQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPAssetQuery) FirstX

func (haq *HPAssetQuery) FirstX(ctx context.Context) *HPAsset

FirstX is like First, but panics if an error occurs.

func (*HPAssetQuery) GroupBy

func (haq *HPAssetQuery) GroupBy(field string, fields ...string) *HPAssetGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Key string `json:"key,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPAsset.Query().
	GroupBy(hpasset.FieldKey).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPAssetQuery) IDs

func (haq *HPAssetQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPAsset IDs.

func (*HPAssetQuery) IDsX

func (haq *HPAssetQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPAssetQuery) Limit

func (haq *HPAssetQuery) Limit(limit int) *HPAssetQuery

Limit the number of records to be returned by this query.

func (*HPAssetQuery) Offset

func (haq *HPAssetQuery) Offset(offset int) *HPAssetQuery

Offset to start from.

func (*HPAssetQuery) Only

func (haq *HPAssetQuery) Only(ctx context.Context) (*HPAsset, error)

Only returns a single HPAsset entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPAsset entity is found. Returns a *NotFoundError when no HPAsset entities are found.

func (*HPAssetQuery) OnlyID

func (haq *HPAssetQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPAsset ID in the query. Returns a *NotSingularError when more than one HPAsset ID is found. Returns a *NotFoundError when no entities are found.

func (*HPAssetQuery) OnlyIDX

func (haq *HPAssetQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPAssetQuery) OnlyX

func (haq *HPAssetQuery) OnlyX(ctx context.Context) *HPAsset

OnlyX is like Only, but panics if an error occurs.

func (*HPAssetQuery) Order

func (haq *HPAssetQuery) Order(o ...hpasset.Order) *HPAssetQuery

Order specifies how the records should be ordered.

func (*HPAssetQuery) QueryAmebloPosts

func (haq *HPAssetQuery) QueryAmebloPosts() *HPAmebloPostQuery

QueryAmebloPosts chains the current query on the "ameblo_posts" edge.

func (*HPAssetQuery) QueryArtist

func (haq *HPAssetQuery) QueryArtist() *HPArtistQuery

QueryArtist chains the current query on the "artist" edge.

func (*HPAssetQuery) QueryIgPosts

func (haq *HPAssetQuery) QueryIgPosts() *HPIgPostQuery

QueryIgPosts chains the current query on the "ig_posts" edge.

func (*HPAssetQuery) QueryMembers

func (haq *HPAssetQuery) QueryMembers() *HPMemberQuery

QueryMembers chains the current query on the "members" edge.

func (*HPAssetQuery) Select

func (haq *HPAssetQuery) Select(fields ...string) *HPAssetSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Key string `json:"key,omitempty"`
}

client.HPAsset.Query().
	Select(hpasset.FieldKey).
	Scan(ctx, &v)

func (*HPAssetQuery) Unique

func (haq *HPAssetQuery) Unique(unique bool) *HPAssetQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPAssetQuery) Where

func (haq *HPAssetQuery) Where(ps ...predicate.HPAsset) *HPAssetQuery

Where adds a new predicate for the HPAssetQuery builder.

func (*HPAssetQuery) WithAmebloPosts

func (haq *HPAssetQuery) WithAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPAssetQuery

WithAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "ameblo_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAssetQuery) WithArtist

func (haq *HPAssetQuery) WithArtist(opts ...func(*HPArtistQuery)) *HPAssetQuery

WithArtist tells the query-builder to eager-load the nodes that are connected to the "artist" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAssetQuery) WithIgPosts

func (haq *HPAssetQuery) WithIgPosts(opts ...func(*HPIgPostQuery)) *HPAssetQuery

WithIgPosts tells the query-builder to eager-load the nodes that are connected to the "ig_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAssetQuery) WithMembers

func (haq *HPAssetQuery) WithMembers(opts ...func(*HPMemberQuery)) *HPAssetQuery

WithMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPAssetQuery) WithNamedAmebloPosts

func (haq *HPAssetQuery) WithNamedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPAssetQuery

WithNamedAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "ameblo_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPAssetQuery) WithNamedIgPosts

func (haq *HPAssetQuery) WithNamedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPAssetQuery

WithNamedIgPosts tells the query-builder to eager-load the nodes that are connected to the "ig_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPAssetQuery) WithNamedMembers

func (haq *HPAssetQuery) WithNamedMembers(name string, opts ...func(*HPMemberQuery)) *HPAssetQuery

WithNamedMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge with the given name. The optional arguments are used to configure the query builder of the edge.

type HPAssetSelect

HPAssetSelect is the builder for selecting fields of HPAsset entities.

type HPAssetSelect struct {
    *HPAssetQuery
    // contains filtered or unexported fields
}

func (*HPAssetSelect) Aggregate

func (has *HPAssetSelect) Aggregate(fns ...AggregateFunc) *HPAssetSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPAssetSelect) Bool

func (s *HPAssetSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) BoolX

func (s *HPAssetSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPAssetSelect) Bools

func (s *HPAssetSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) BoolsX

func (s *HPAssetSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPAssetSelect) Float64

func (s *HPAssetSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) Float64X

func (s *HPAssetSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPAssetSelect) Float64s

func (s *HPAssetSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) Float64sX

func (s *HPAssetSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPAssetSelect) Int

func (s *HPAssetSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) IntX

func (s *HPAssetSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPAssetSelect) Ints

func (s *HPAssetSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) IntsX

func (s *HPAssetSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPAssetSelect) Scan

func (has *HPAssetSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPAssetSelect) ScanX

func (s *HPAssetSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPAssetSelect) String

func (s *HPAssetSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) StringX

func (s *HPAssetSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPAssetSelect) Strings

func (s *HPAssetSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPAssetSelect) StringsX

func (s *HPAssetSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPAssetUpdate

HPAssetUpdate is the builder for updating HPAsset entities.

type HPAssetUpdate struct {
    // contains filtered or unexported fields
}

func (*HPAssetUpdate) AddAmebloPostIDs

func (hau *HPAssetUpdate) AddAmebloPostIDs(ids ...int) *HPAssetUpdate

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPAssetUpdate) AddAmebloPosts

func (hau *HPAssetUpdate) AddAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdate

AddAmebloPosts adds the "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPAssetUpdate) AddIgPostIDs

func (hau *HPAssetUpdate) AddIgPostIDs(ids ...int) *HPAssetUpdate

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPAssetUpdate) AddIgPosts

func (hau *HPAssetUpdate) AddIgPosts(h ...*HPIgPost) *HPAssetUpdate

AddIgPosts adds the "ig_posts" edges to the HPIgPost entity.

func (*HPAssetUpdate) AddMemberIDs

func (hau *HPAssetUpdate) AddMemberIDs(ids ...int) *HPAssetUpdate

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPAssetUpdate) AddMembers

func (hau *HPAssetUpdate) AddMembers(h ...*HPMember) *HPAssetUpdate

AddMembers adds the "members" edges to the HPMember entity.

func (*HPAssetUpdate) ClearAmebloPosts

func (hau *HPAssetUpdate) ClearAmebloPosts() *HPAssetUpdate

ClearAmebloPosts clears all "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPAssetUpdate) ClearArtist

func (hau *HPAssetUpdate) ClearArtist() *HPAssetUpdate

ClearArtist clears the "artist" edge to the HPArtist entity.

func (*HPAssetUpdate) ClearIgPosts

func (hau *HPAssetUpdate) ClearIgPosts() *HPAssetUpdate

ClearIgPosts clears all "ig_posts" edges to the HPIgPost entity.

func (*HPAssetUpdate) ClearMembers

func (hau *HPAssetUpdate) ClearMembers() *HPAssetUpdate

ClearMembers clears all "members" edges to the HPMember entity.

func (*HPAssetUpdate) Exec

func (hau *HPAssetUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAssetUpdate) ExecX

func (hau *HPAssetUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetUpdate) Mutation

func (hau *HPAssetUpdate) Mutation() *HPAssetMutation

Mutation returns the HPAssetMutation object of the builder.

func (*HPAssetUpdate) RemoveAmebloPostIDs

func (hau *HPAssetUpdate) RemoveAmebloPostIDs(ids ...int) *HPAssetUpdate

RemoveAmebloPostIDs removes the "ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPAssetUpdate) RemoveAmebloPosts

func (hau *HPAssetUpdate) RemoveAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdate

RemoveAmebloPosts removes "ameblo_posts" edges to HPAmebloPost entities.

func (*HPAssetUpdate) RemoveIgPostIDs

func (hau *HPAssetUpdate) RemoveIgPostIDs(ids ...int) *HPAssetUpdate

RemoveIgPostIDs removes the "ig_posts" edge to HPIgPost entities by IDs.

func (*HPAssetUpdate) RemoveIgPosts

func (hau *HPAssetUpdate) RemoveIgPosts(h ...*HPIgPost) *HPAssetUpdate

RemoveIgPosts removes "ig_posts" edges to HPIgPost entities.

func (*HPAssetUpdate) RemoveMemberIDs

func (hau *HPAssetUpdate) RemoveMemberIDs(ids ...int) *HPAssetUpdate

RemoveMemberIDs removes the "members" edge to HPMember entities by IDs.

func (*HPAssetUpdate) RemoveMembers

func (hau *HPAssetUpdate) RemoveMembers(h ...*HPMember) *HPAssetUpdate

RemoveMembers removes "members" edges to HPMember entities.

func (*HPAssetUpdate) Save

func (hau *HPAssetUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPAssetUpdate) SaveX

func (hau *HPAssetUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPAssetUpdate) SetArtist

func (hau *HPAssetUpdate) SetArtist(h *HPArtist) *HPAssetUpdate

SetArtist sets the "artist" edge to the HPArtist entity.

func (*HPAssetUpdate) SetArtistID

func (hau *HPAssetUpdate) SetArtistID(id int) *HPAssetUpdate

SetArtistID sets the "artist" edge to the HPArtist entity by ID.

func (*HPAssetUpdate) SetAssetType

func (hau *HPAssetUpdate) SetAssetType(eat enums.HPAssetType) *HPAssetUpdate

SetAssetType sets the "asset_type" field.

func (*HPAssetUpdate) SetKey

func (hau *HPAssetUpdate) SetKey(s string) *HPAssetUpdate

SetKey sets the "key" field.

func (*HPAssetUpdate) SetNillableArtistID

func (hau *HPAssetUpdate) SetNillableArtistID(id *int) *HPAssetUpdate

SetNillableArtistID sets the "artist" edge to the HPArtist entity by ID if the given value is not nil.

func (*HPAssetUpdate) Where

func (hau *HPAssetUpdate) Where(ps ...predicate.HPAsset) *HPAssetUpdate

Where appends a list predicates to the HPAssetUpdate builder.

type HPAssetUpdateOne

HPAssetUpdateOne is the builder for updating a single HPAsset entity.

type HPAssetUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPAssetUpdateOne) AddAmebloPostIDs

func (hauo *HPAssetUpdateOne) AddAmebloPostIDs(ids ...int) *HPAssetUpdateOne

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPAssetUpdateOne) AddAmebloPosts

func (hauo *HPAssetUpdateOne) AddAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdateOne

AddAmebloPosts adds the "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPAssetUpdateOne) AddIgPostIDs

func (hauo *HPAssetUpdateOne) AddIgPostIDs(ids ...int) *HPAssetUpdateOne

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPAssetUpdateOne) AddIgPosts

func (hauo *HPAssetUpdateOne) AddIgPosts(h ...*HPIgPost) *HPAssetUpdateOne

AddIgPosts adds the "ig_posts" edges to the HPIgPost entity.

func (*HPAssetUpdateOne) AddMemberIDs

func (hauo *HPAssetUpdateOne) AddMemberIDs(ids ...int) *HPAssetUpdateOne

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPAssetUpdateOne) AddMembers

func (hauo *HPAssetUpdateOne) AddMembers(h ...*HPMember) *HPAssetUpdateOne

AddMembers adds the "members" edges to the HPMember entity.

func (*HPAssetUpdateOne) ClearAmebloPosts

func (hauo *HPAssetUpdateOne) ClearAmebloPosts() *HPAssetUpdateOne

ClearAmebloPosts clears all "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPAssetUpdateOne) ClearArtist

func (hauo *HPAssetUpdateOne) ClearArtist() *HPAssetUpdateOne

ClearArtist clears the "artist" edge to the HPArtist entity.

func (*HPAssetUpdateOne) ClearIgPosts

func (hauo *HPAssetUpdateOne) ClearIgPosts() *HPAssetUpdateOne

ClearIgPosts clears all "ig_posts" edges to the HPIgPost entity.

func (*HPAssetUpdateOne) ClearMembers

func (hauo *HPAssetUpdateOne) ClearMembers() *HPAssetUpdateOne

ClearMembers clears all "members" edges to the HPMember entity.

func (*HPAssetUpdateOne) Exec

func (hauo *HPAssetUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPAssetUpdateOne) ExecX

func (hauo *HPAssetUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetUpdateOne) Mutation

func (hauo *HPAssetUpdateOne) Mutation() *HPAssetMutation

Mutation returns the HPAssetMutation object of the builder.

func (*HPAssetUpdateOne) RemoveAmebloPostIDs

func (hauo *HPAssetUpdateOne) RemoveAmebloPostIDs(ids ...int) *HPAssetUpdateOne

RemoveAmebloPostIDs removes the "ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPAssetUpdateOne) RemoveAmebloPosts

func (hauo *HPAssetUpdateOne) RemoveAmebloPosts(h ...*HPAmebloPost) *HPAssetUpdateOne

RemoveAmebloPosts removes "ameblo_posts" edges to HPAmebloPost entities.

func (*HPAssetUpdateOne) RemoveIgPostIDs

func (hauo *HPAssetUpdateOne) RemoveIgPostIDs(ids ...int) *HPAssetUpdateOne

RemoveIgPostIDs removes the "ig_posts" edge to HPIgPost entities by IDs.

func (*HPAssetUpdateOne) RemoveIgPosts

func (hauo *HPAssetUpdateOne) RemoveIgPosts(h ...*HPIgPost) *HPAssetUpdateOne

RemoveIgPosts removes "ig_posts" edges to HPIgPost entities.

func (*HPAssetUpdateOne) RemoveMemberIDs

func (hauo *HPAssetUpdateOne) RemoveMemberIDs(ids ...int) *HPAssetUpdateOne

RemoveMemberIDs removes the "members" edge to HPMember entities by IDs.

func (*HPAssetUpdateOne) RemoveMembers

func (hauo *HPAssetUpdateOne) RemoveMembers(h ...*HPMember) *HPAssetUpdateOne

RemoveMembers removes "members" edges to HPMember entities.

func (*HPAssetUpdateOne) Save

func (hauo *HPAssetUpdateOne) Save(ctx context.Context) (*HPAsset, error)

Save executes the query and returns the updated HPAsset entity.

func (*HPAssetUpdateOne) SaveX

func (hauo *HPAssetUpdateOne) SaveX(ctx context.Context) *HPAsset

SaveX is like Save, but panics if an error occurs.

func (*HPAssetUpdateOne) Select

func (hauo *HPAssetUpdateOne) Select(field string, fields ...string) *HPAssetUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPAssetUpdateOne) SetArtist

func (hauo *HPAssetUpdateOne) SetArtist(h *HPArtist) *HPAssetUpdateOne

SetArtist sets the "artist" edge to the HPArtist entity.

func (*HPAssetUpdateOne) SetArtistID

func (hauo *HPAssetUpdateOne) SetArtistID(id int) *HPAssetUpdateOne

SetArtistID sets the "artist" edge to the HPArtist entity by ID.

func (*HPAssetUpdateOne) SetAssetType

func (hauo *HPAssetUpdateOne) SetAssetType(eat enums.HPAssetType) *HPAssetUpdateOne

SetAssetType sets the "asset_type" field.

func (*HPAssetUpdateOne) SetKey

func (hauo *HPAssetUpdateOne) SetKey(s string) *HPAssetUpdateOne

SetKey sets the "key" field.

func (*HPAssetUpdateOne) SetNillableArtistID

func (hauo *HPAssetUpdateOne) SetNillableArtistID(id *int) *HPAssetUpdateOne

SetNillableArtistID sets the "artist" edge to the HPArtist entity by ID if the given value is not nil.

func (*HPAssetUpdateOne) Where

func (hauo *HPAssetUpdateOne) Where(ps ...predicate.HPAsset) *HPAssetUpdateOne

Where appends a list predicates to the HPAssetUpdate builder.

type HPAssetUpsert

HPAssetUpsert is the "OnConflict" setter.

type HPAssetUpsert struct {
    *sql.UpdateSet
}

func (*HPAssetUpsert) SetAssetType

func (u *HPAssetUpsert) SetAssetType(v enums.HPAssetType) *HPAssetUpsert

SetAssetType sets the "asset_type" field.

func (*HPAssetUpsert) SetKey

func (u *HPAssetUpsert) SetKey(v string) *HPAssetUpsert

SetKey sets the "key" field.

func (*HPAssetUpsert) UpdateAssetType

func (u *HPAssetUpsert) UpdateAssetType() *HPAssetUpsert

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPAssetUpsert) UpdateKey

func (u *HPAssetUpsert) UpdateKey() *HPAssetUpsert

UpdateKey sets the "key" field to the value that was provided on create.

type HPAssetUpsertBulk

HPAssetUpsertBulk is the builder for "upsert"-ing a bulk of HPAsset nodes.

type HPAssetUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPAssetUpsertBulk) DoNothing

func (u *HPAssetUpsertBulk) DoNothing() *HPAssetUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPAssetUpsertBulk) Exec

func (u *HPAssetUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAssetUpsertBulk) ExecX

func (u *HPAssetUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetUpsertBulk) Ignore

func (u *HPAssetUpsertBulk) Ignore() *HPAssetUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPAsset.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPAssetUpsertBulk) SetAssetType

func (u *HPAssetUpsertBulk) SetAssetType(v enums.HPAssetType) *HPAssetUpsertBulk

SetAssetType sets the "asset_type" field.

func (*HPAssetUpsertBulk) SetKey

func (u *HPAssetUpsertBulk) SetKey(v string) *HPAssetUpsertBulk

SetKey sets the "key" field.

func (*HPAssetUpsertBulk) Update

func (u *HPAssetUpsertBulk) Update(set func(*HPAssetUpsert)) *HPAssetUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPAssetCreateBulk.OnConflict documentation for more info.

func (*HPAssetUpsertBulk) UpdateAssetType

func (u *HPAssetUpsertBulk) UpdateAssetType() *HPAssetUpsertBulk

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPAssetUpsertBulk) UpdateKey

func (u *HPAssetUpsertBulk) UpdateKey() *HPAssetUpsertBulk

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPAssetUpsertBulk) UpdateNewValues

func (u *HPAssetUpsertBulk) UpdateNewValues() *HPAssetUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPAsset.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type HPAssetUpsertOne

HPAssetUpsertOne is the builder for "upsert"-ing

one HPAsset node.
type HPAssetUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPAssetUpsertOne) DoNothing

func (u *HPAssetUpsertOne) DoNothing() *HPAssetUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPAssetUpsertOne) Exec

func (u *HPAssetUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPAssetUpsertOne) ExecX

func (u *HPAssetUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPAssetUpsertOne) ID

func (u *HPAssetUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPAssetUpsertOne) IDX

func (u *HPAssetUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPAssetUpsertOne) Ignore

func (u *HPAssetUpsertOne) Ignore() *HPAssetUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPAsset.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPAssetUpsertOne) SetAssetType

func (u *HPAssetUpsertOne) SetAssetType(v enums.HPAssetType) *HPAssetUpsertOne

SetAssetType sets the "asset_type" field.

func (*HPAssetUpsertOne) SetKey

func (u *HPAssetUpsertOne) SetKey(v string) *HPAssetUpsertOne

SetKey sets the "key" field.

func (*HPAssetUpsertOne) Update

func (u *HPAssetUpsertOne) Update(set func(*HPAssetUpsert)) *HPAssetUpsertOne

Update allows overriding fields `UPDATE` values. See the HPAssetCreate.OnConflict documentation for more info.

func (*HPAssetUpsertOne) UpdateAssetType

func (u *HPAssetUpsertOne) UpdateAssetType() *HPAssetUpsertOne

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPAssetUpsertOne) UpdateKey

func (u *HPAssetUpsertOne) UpdateKey() *HPAssetUpsertOne

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPAssetUpsertOne) UpdateNewValues

func (u *HPAssetUpsertOne) UpdateNewValues() *HPAssetUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPAsset.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type HPAssets

HPAssets is a parsable slice of HPAsset.

type HPAssets []*HPAsset

type HPBlob

HPBlob is the model entity for the HPBlob schema.

type HPBlob struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // StoragePath holds the value of the "storage_path" field.
    StoragePath string `json:"storage_path,omitempty"`
    // SourceURL holds the value of the "source_url" field.
    SourceURL string `json:"source_url,omitempty"`
    // SourceHTMLURL holds the value of the "source_html_url" field.
    SourceHTMLURL string `json:"source_html_url,omitempty"`
    // Status holds the value of the "status" field.
    Status enums.HPBlobStatus `json:"status,omitempty"`
    // StatusMessage holds the value of the "status_message" field.
    StatusMessage string `json:"status_message,omitempty"`
    // StatusErrorCount holds the value of the "status_error_count" field.
    StatusErrorCount int `json:"status_error_count,omitempty"`
    // Type holds the value of the "type" field.
    Type enums.HPBlobType `json:"type,omitempty"`
    // SubType holds the value of the "sub_type" field.
    SubType enums.HPBlobSubType `json:"sub_type,omitempty"`
    // Width holds the value of the "width" field.
    Width int `json:"width,omitempty"`
    // Height holds the value of the "height" field.
    Height int `json:"height,omitempty"`
    // Size holds the value of the "size" field.
    Size int64 `json:"size,omitempty"`
    // OwnerArtistID holds the value of the "owner_artist_id" field.
    OwnerArtistID int `json:"owner_artist_id,omitempty"`
    // OwnerMemberID holds the value of the "owner_member_id" field.
    OwnerMemberID int `json:"owner_member_id,omitempty"`
    // NumFaces holds the value of the "num_faces" field.
    NumFaces int `json:"num_faces,omitempty"`
    // Faces holds the value of the "faces" field.
    Faces jsonfields.HPBlobImageFace `json:"faces,omitempty"`
    // FaceRecognitionStatus holds the value of the "face_recognition_status" field.
    FaceRecognitionStatus enums.HPBlobFaceRecognitionStatus `json:"face_recognition_status,omitempty"`
    // Thumbnail holds the value of the "thumbnail" field.
    Thumbnail *jsonfields.HPBlobThumbnail `json:"thumbnail,omitempty"`
    // DurationSeconds holds the value of the "duration_seconds" field.
    DurationSeconds float64 `json:"duration_seconds,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPBlobQuery when eager-loading is set.
    Edges HPBlobEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPBlob) AmebloPosts

func (hb *HPBlob) AmebloPosts(ctx context.Context) (result []*HPAmebloPost, err error)

func (*HPBlob) IgPosts

func (hb *HPBlob) IgPosts(ctx context.Context) (result []*HPIgPost, err error)

func (*HPBlob) IsNode

func (n *HPBlob) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPBlob) NamedAmebloPosts

func (hb *HPBlob) NamedAmebloPosts(name string) ([]*HPAmebloPost, error)

NamedAmebloPosts returns the AmebloPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPBlob) NamedIgPosts

func (hb *HPBlob) NamedIgPosts(name string) ([]*HPIgPost, error)

NamedIgPosts returns the IgPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPBlob) OwnerArtist

func (hb *HPBlob) OwnerArtist(ctx context.Context) (*HPArtist, error)

func (*HPBlob) OwnerMember

func (hb *HPBlob) OwnerMember(ctx context.Context) (*HPMember, error)

func (*HPBlob) QueryAmebloPosts

func (hb *HPBlob) QueryAmebloPosts() *HPAmebloPostQuery

QueryAmebloPosts queries the "ameblo_posts" edge of the HPBlob entity.

func (*HPBlob) QueryIgPosts

func (hb *HPBlob) QueryIgPosts() *HPIgPostQuery

QueryIgPosts queries the "ig_posts" edge of the HPBlob entity.

func (*HPBlob) QueryOwnerArtist

func (hb *HPBlob) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist queries the "owner_artist" edge of the HPBlob entity.

func (*HPBlob) QueryOwnerMember

func (hb *HPBlob) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember queries the "owner_member" edge of the HPBlob entity.

func (*HPBlob) String

func (hb *HPBlob) String() string

String implements the fmt.Stringer.

func (*HPBlob) ToEdge

func (hb *HPBlob) ToEdge(order *HPBlobOrder) *HPBlobEdge

ToEdge converts HPBlob into HPBlobEdge.

func (*HPBlob) Unwrap

func (hb *HPBlob) Unwrap() *HPBlob

Unwrap unwraps the HPBlob entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPBlob) Update

func (hb *HPBlob) Update() *HPBlobUpdateOne

Update returns a builder for updating this HPBlob. Note that you need to call HPBlob.Unwrap() before calling this method if this HPBlob was returned from a transaction, and the transaction was committed or rolled back.

func (*HPBlob) Value

func (hb *HPBlob) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPBlob. This includes values selected through modifiers, order, etc.

type HPBlobClient

HPBlobClient is a client for the HPBlob schema.

type HPBlobClient struct {
    // contains filtered or unexported fields
}

func NewHPBlobClient

func NewHPBlobClient(c config) *HPBlobClient

NewHPBlobClient returns a client for the HPBlob from the given config.

func (*HPBlobClient) Create

func (c *HPBlobClient) Create() *HPBlobCreate

Create returns a builder for creating a HPBlob entity.

func (*HPBlobClient) CreateBulk

func (c *HPBlobClient) CreateBulk(builders ...*HPBlobCreate) *HPBlobCreateBulk

CreateBulk returns a builder for creating a bulk of HPBlob entities.

func (*HPBlobClient) Delete

func (c *HPBlobClient) Delete() *HPBlobDelete

Delete returns a delete builder for HPBlob.

func (*HPBlobClient) DeleteOne

func (c *HPBlobClient) DeleteOne(hb *HPBlob) *HPBlobDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPBlobClient) DeleteOneID

func (c *HPBlobClient) DeleteOneID(id int) *HPBlobDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPBlobClient) Get

func (c *HPBlobClient) Get(ctx context.Context, id int) (*HPBlob, error)

Get returns a HPBlob entity by its id.

func (*HPBlobClient) GetX

func (c *HPBlobClient) GetX(ctx context.Context, id int) *HPBlob

GetX is like Get, but panics if an error occurs.

func (*HPBlobClient) Hooks

func (c *HPBlobClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPBlobClient) Intercept

func (c *HPBlobClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpblob.Intercept(f(g(h())))`.

func (*HPBlobClient) Interceptors

func (c *HPBlobClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPBlobClient) Query

func (c *HPBlobClient) Query() *HPBlobQuery

Query returns a query builder for HPBlob.

func (*HPBlobClient) QueryAmebloPosts

func (c *HPBlobClient) QueryAmebloPosts(hb *HPBlob) *HPAmebloPostQuery

QueryAmebloPosts queries the ameblo_posts edge of a HPBlob.

func (*HPBlobClient) QueryIgPosts

func (c *HPBlobClient) QueryIgPosts(hb *HPBlob) *HPIgPostQuery

QueryIgPosts queries the ig_posts edge of a HPBlob.

func (*HPBlobClient) QueryOwnerArtist

func (c *HPBlobClient) QueryOwnerArtist(hb *HPBlob) *HPArtistQuery

QueryOwnerArtist queries the owner_artist edge of a HPBlob.

func (*HPBlobClient) QueryOwnerMember

func (c *HPBlobClient) QueryOwnerMember(hb *HPBlob) *HPMemberQuery

QueryOwnerMember queries the owner_member edge of a HPBlob.

func (*HPBlobClient) Update

func (c *HPBlobClient) Update() *HPBlobUpdate

Update returns an update builder for HPBlob.

func (*HPBlobClient) UpdateOne

func (c *HPBlobClient) UpdateOne(hb *HPBlob) *HPBlobUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPBlobClient) UpdateOneID

func (c *HPBlobClient) UpdateOneID(id int) *HPBlobUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPBlobClient) Use

func (c *HPBlobClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpblob.Hooks(f(g(h())))`.

type HPBlobConnection

HPBlobConnection is the connection containing edges to HPBlob.

type HPBlobConnection struct {
    Edges      []*HPBlobEdge `json:"edges"`
    PageInfo   PageInfo      `json:"pageInfo"`
    TotalCount int           `json:"totalCount"`
}

type HPBlobCreate

HPBlobCreate is the builder for creating a HPBlob entity.

type HPBlobCreate struct {
    // contains filtered or unexported fields
}

func (*HPBlobCreate) AddAmebloPostIDs

func (hbc *HPBlobCreate) AddAmebloPostIDs(ids ...int) *HPBlobCreate

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPBlobCreate) AddAmebloPosts

func (hbc *HPBlobCreate) AddAmebloPosts(h ...*HPAmebloPost) *HPBlobCreate

AddAmebloPosts adds the "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPBlobCreate) AddIgPostIDs

func (hbc *HPBlobCreate) AddIgPostIDs(ids ...int) *HPBlobCreate

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPBlobCreate) AddIgPosts

func (hbc *HPBlobCreate) AddIgPosts(h ...*HPIgPost) *HPBlobCreate

AddIgPosts adds the "ig_posts" edges to the HPIgPost entity.

func (*HPBlobCreate) Exec

func (hbc *HPBlobCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPBlobCreate) ExecX

func (hbc *HPBlobCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobCreate) Mutation

func (hbc *HPBlobCreate) Mutation() *HPBlobMutation

Mutation returns the HPBlobMutation object of the builder.

func (*HPBlobCreate) OnConflict

func (hbc *HPBlobCreate) OnConflict(opts ...sql.ConflictOption) *HPBlobUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPBlob.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPBlobUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPBlobCreate) OnConflictColumns

func (hbc *HPBlobCreate) OnConflictColumns(columns ...string) *HPBlobUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPBlob.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPBlobCreate) Save

func (hbc *HPBlobCreate) Save(ctx context.Context) (*HPBlob, error)

Save creates the HPBlob in the database.

func (*HPBlobCreate) SaveX

func (hbc *HPBlobCreate) SaveX(ctx context.Context) *HPBlob

SaveX calls Save and panics if Save returns an error.

func (*HPBlobCreate) SetCreatedAt

func (hbc *HPBlobCreate) SetCreatedAt(t time.Time) *HPBlobCreate

SetCreatedAt sets the "created_at" field.

func (*HPBlobCreate) SetDurationSeconds

func (hbc *HPBlobCreate) SetDurationSeconds(f float64) *HPBlobCreate

SetDurationSeconds sets the "duration_seconds" field.

func (*HPBlobCreate) SetFaceRecognitionStatus

func (hbc *HPBlobCreate) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus) *HPBlobCreate

SetFaceRecognitionStatus sets the "face_recognition_status" field.

func (*HPBlobCreate) SetFaces

func (hbc *HPBlobCreate) SetFaces(jbif jsonfields.HPBlobImageFace) *HPBlobCreate

SetFaces sets the "faces" field.

func (*HPBlobCreate) SetHeight

func (hbc *HPBlobCreate) SetHeight(i int) *HPBlobCreate

SetHeight sets the "height" field.

func (*HPBlobCreate) SetNillableCreatedAt

func (hbc *HPBlobCreate) SetNillableCreatedAt(t *time.Time) *HPBlobCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPBlobCreate) SetNillableDurationSeconds

func (hbc *HPBlobCreate) SetNillableDurationSeconds(f *float64) *HPBlobCreate

SetNillableDurationSeconds sets the "duration_seconds" field if the given value is not nil.

func (*HPBlobCreate) SetNillableFaceRecognitionStatus

func (hbc *HPBlobCreate) SetNillableFaceRecognitionStatus(ebfrs *enums.HPBlobFaceRecognitionStatus) *HPBlobCreate

SetNillableFaceRecognitionStatus sets the "face_recognition_status" field if the given value is not nil.

func (*HPBlobCreate) SetNillableFaces

func (hbc *HPBlobCreate) SetNillableFaces(jbif *jsonfields.HPBlobImageFace) *HPBlobCreate

SetNillableFaces sets the "faces" field if the given value is not nil.

func (*HPBlobCreate) SetNillableHeight

func (hbc *HPBlobCreate) SetNillableHeight(i *int) *HPBlobCreate

SetNillableHeight sets the "height" field if the given value is not nil.

func (*HPBlobCreate) SetNillableNumFaces

func (hbc *HPBlobCreate) SetNillableNumFaces(i *int) *HPBlobCreate

SetNillableNumFaces sets the "num_faces" field if the given value is not nil.

func (*HPBlobCreate) SetNillableOwnerArtistID

func (hbc *HPBlobCreate) SetNillableOwnerArtistID(i *int) *HPBlobCreate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPBlobCreate) SetNillableOwnerMemberID

func (hbc *HPBlobCreate) SetNillableOwnerMemberID(i *int) *HPBlobCreate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPBlobCreate) SetNillableSize

func (hbc *HPBlobCreate) SetNillableSize(i *int64) *HPBlobCreate

SetNillableSize sets the "size" field if the given value is not nil.

func (*HPBlobCreate) SetNillableStatusErrorCount

func (hbc *HPBlobCreate) SetNillableStatusErrorCount(i *int) *HPBlobCreate

SetNillableStatusErrorCount sets the "status_error_count" field if the given value is not nil.

func (*HPBlobCreate) SetNillableStatusMessage

func (hbc *HPBlobCreate) SetNillableStatusMessage(s *string) *HPBlobCreate

SetNillableStatusMessage sets the "status_message" field if the given value is not nil.

func (*HPBlobCreate) SetNillableUpdatedAt

func (hbc *HPBlobCreate) SetNillableUpdatedAt(t *time.Time) *HPBlobCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPBlobCreate) SetNillableWidth

func (hbc *HPBlobCreate) SetNillableWidth(i *int) *HPBlobCreate

SetNillableWidth sets the "width" field if the given value is not nil.

func (*HPBlobCreate) SetNumFaces

func (hbc *HPBlobCreate) SetNumFaces(i int) *HPBlobCreate

SetNumFaces sets the "num_faces" field.

func (*HPBlobCreate) SetOwnerArtist

func (hbc *HPBlobCreate) SetOwnerArtist(h *HPArtist) *HPBlobCreate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPBlobCreate) SetOwnerArtistID

func (hbc *HPBlobCreate) SetOwnerArtistID(i int) *HPBlobCreate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPBlobCreate) SetOwnerMember

func (hbc *HPBlobCreate) SetOwnerMember(h *HPMember) *HPBlobCreate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPBlobCreate) SetOwnerMemberID

func (hbc *HPBlobCreate) SetOwnerMemberID(i int) *HPBlobCreate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPBlobCreate) SetSize

func (hbc *HPBlobCreate) SetSize(i int64) *HPBlobCreate

SetSize sets the "size" field.

func (*HPBlobCreate) SetSourceHTMLURL

func (hbc *HPBlobCreate) SetSourceHTMLURL(s string) *HPBlobCreate

SetSourceHTMLURL sets the "source_html_url" field.

func (*HPBlobCreate) SetSourceURL

func (hbc *HPBlobCreate) SetSourceURL(s string) *HPBlobCreate

SetSourceURL sets the "source_url" field.

func (*HPBlobCreate) SetStatus

func (hbc *HPBlobCreate) SetStatus(ebs enums.HPBlobStatus) *HPBlobCreate

SetStatus sets the "status" field.

func (*HPBlobCreate) SetStatusErrorCount

func (hbc *HPBlobCreate) SetStatusErrorCount(i int) *HPBlobCreate

SetStatusErrorCount sets the "status_error_count" field.

func (*HPBlobCreate) SetStatusMessage

func (hbc *HPBlobCreate) SetStatusMessage(s string) *HPBlobCreate

SetStatusMessage sets the "status_message" field.

func (*HPBlobCreate) SetStoragePath

func (hbc *HPBlobCreate) SetStoragePath(s string) *HPBlobCreate

SetStoragePath sets the "storage_path" field.

func (*HPBlobCreate) SetSubType

func (hbc *HPBlobCreate) SetSubType(ebst enums.HPBlobSubType) *HPBlobCreate

SetSubType sets the "sub_type" field.

func (*HPBlobCreate) SetThumbnail

func (hbc *HPBlobCreate) SetThumbnail(jbt *jsonfields.HPBlobThumbnail) *HPBlobCreate

SetThumbnail sets the "thumbnail" field.

func (*HPBlobCreate) SetType

func (hbc *HPBlobCreate) SetType(ebt enums.HPBlobType) *HPBlobCreate

SetType sets the "type" field.

func (*HPBlobCreate) SetUpdatedAt

func (hbc *HPBlobCreate) SetUpdatedAt(t time.Time) *HPBlobCreate

SetUpdatedAt sets the "updated_at" field.

func (*HPBlobCreate) SetWidth

func (hbc *HPBlobCreate) SetWidth(i int) *HPBlobCreate

SetWidth sets the "width" field.

type HPBlobCreateBulk

HPBlobCreateBulk is the builder for creating many HPBlob entities in bulk.

type HPBlobCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPBlobCreateBulk) Exec

func (hbcb *HPBlobCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPBlobCreateBulk) ExecX

func (hbcb *HPBlobCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobCreateBulk) OnConflict

func (hbcb *HPBlobCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPBlobUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPBlob.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPBlobUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPBlobCreateBulk) OnConflictColumns

func (hbcb *HPBlobCreateBulk) OnConflictColumns(columns ...string) *HPBlobUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPBlob.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPBlobCreateBulk) Save

func (hbcb *HPBlobCreateBulk) Save(ctx context.Context) ([]*HPBlob, error)

Save creates the HPBlob entities in the database.

func (*HPBlobCreateBulk) SaveX

func (hbcb *HPBlobCreateBulk) SaveX(ctx context.Context) []*HPBlob

SaveX is like Save, but panics if an error occurs.

type HPBlobDelete

HPBlobDelete is the builder for deleting a HPBlob entity.

type HPBlobDelete struct {
    // contains filtered or unexported fields
}

func (*HPBlobDelete) Exec

func (hbd *HPBlobDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPBlobDelete) ExecX

func (hbd *HPBlobDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobDelete) Where

func (hbd *HPBlobDelete) Where(ps ...predicate.HPBlob) *HPBlobDelete

Where appends a list predicates to the HPBlobDelete builder.

type HPBlobDeleteOne

HPBlobDeleteOne is the builder for deleting a single HPBlob entity.

type HPBlobDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPBlobDeleteOne) Exec

func (hbdo *HPBlobDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPBlobDeleteOne) ExecX

func (hbdo *HPBlobDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobDeleteOne) Where

func (hbdo *HPBlobDeleteOne) Where(ps ...predicate.HPBlob) *HPBlobDeleteOne

Where appends a list predicates to the HPBlobDelete builder.

type HPBlobEdge

HPBlobEdge is the edge representation of HPBlob.

type HPBlobEdge struct {
    Node   *HPBlob `json:"node"`
    Cursor Cursor  `json:"cursor"`
}

type HPBlobEdges

HPBlobEdges holds the relations/edges for other nodes in the graph.

type HPBlobEdges struct {
    // OwnerArtist holds the value of the owner_artist edge.
    OwnerArtist *HPArtist `json:"owner_artist,omitempty"`
    // OwnerMember holds the value of the owner_member edge.
    OwnerMember *HPMember `json:"owner_member,omitempty"`
    // AmebloPosts holds the value of the ameblo_posts edge.
    AmebloPosts []*HPAmebloPost `json:"ameblo_posts,omitempty"`
    // IgPosts holds the value of the ig_posts edge.
    IgPosts []*HPIgPost `json:"ig_posts,omitempty"`
    // contains filtered or unexported fields
}

func (HPBlobEdges) AmebloPostsOrErr

func (e HPBlobEdges) AmebloPostsOrErr() ([]*HPAmebloPost, error)

AmebloPostsOrErr returns the AmebloPosts value or an error if the edge was not loaded in eager-loading.

func (HPBlobEdges) IgPostsOrErr

func (e HPBlobEdges) IgPostsOrErr() ([]*HPIgPost, error)

IgPostsOrErr returns the IgPosts value or an error if the edge was not loaded in eager-loading.

func (HPBlobEdges) OwnerArtistOrErr

func (e HPBlobEdges) OwnerArtistOrErr() (*HPArtist, error)

OwnerArtistOrErr returns the OwnerArtist value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPBlobEdges) OwnerMemberOrErr

func (e HPBlobEdges) OwnerMemberOrErr() (*HPMember, error)

OwnerMemberOrErr returns the OwnerMember value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type HPBlobFilter

HPBlobFilter provides a generic filtering capability at runtime for HPBlobQuery.

type HPBlobFilter struct {
    // contains filtered or unexported fields
}

func (*HPBlobFilter) Where

func (f *HPBlobFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPBlobFilter) WhereCreatedAt

func (f *HPBlobFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPBlobFilter) WhereDurationSeconds

func (f *HPBlobFilter) WhereDurationSeconds(p entql.Float64P)

WhereDurationSeconds applies the entql float64 predicate on the duration_seconds field.

func (*HPBlobFilter) WhereFaceRecognitionStatus

func (f *HPBlobFilter) WhereFaceRecognitionStatus(p entql.StringP)

WhereFaceRecognitionStatus applies the entql string predicate on the face_recognition_status field.

func (*HPBlobFilter) WhereFaces

func (f *HPBlobFilter) WhereFaces(p entql.BytesP)

WhereFaces applies the entql json.RawMessage predicate on the faces field.

func (*HPBlobFilter) WhereHasAmebloPosts

func (f *HPBlobFilter) WhereHasAmebloPosts()

WhereHasAmebloPosts applies a predicate to check if query has an edge ameblo_posts.

func (*HPBlobFilter) WhereHasAmebloPostsWith

func (f *HPBlobFilter) WhereHasAmebloPostsWith(preds ...predicate.HPAmebloPost)

WhereHasAmebloPostsWith applies a predicate to check if query has an edge ameblo_posts with a given conditions (other predicates).

func (*HPBlobFilter) WhereHasIgPosts

func (f *HPBlobFilter) WhereHasIgPosts()

WhereHasIgPosts applies a predicate to check if query has an edge ig_posts.

func (*HPBlobFilter) WhereHasIgPostsWith

func (f *HPBlobFilter) WhereHasIgPostsWith(preds ...predicate.HPIgPost)

WhereHasIgPostsWith applies a predicate to check if query has an edge ig_posts with a given conditions (other predicates).

func (*HPBlobFilter) WhereHasOwnerArtist

func (f *HPBlobFilter) WhereHasOwnerArtist()

WhereHasOwnerArtist applies a predicate to check if query has an edge owner_artist.

func (*HPBlobFilter) WhereHasOwnerArtistWith

func (f *HPBlobFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)

WhereHasOwnerArtistWith applies a predicate to check if query has an edge owner_artist with a given conditions (other predicates).

func (*HPBlobFilter) WhereHasOwnerMember

func (f *HPBlobFilter) WhereHasOwnerMember()

WhereHasOwnerMember applies a predicate to check if query has an edge owner_member.

func (*HPBlobFilter) WhereHasOwnerMemberWith

func (f *HPBlobFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)

WhereHasOwnerMemberWith applies a predicate to check if query has an edge owner_member with a given conditions (other predicates).

func (*HPBlobFilter) WhereHeight

func (f *HPBlobFilter) WhereHeight(p entql.IntP)

WhereHeight applies the entql int predicate on the height field.

func (*HPBlobFilter) WhereID

func (f *HPBlobFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPBlobFilter) WhereNumFaces

func (f *HPBlobFilter) WhereNumFaces(p entql.IntP)

WhereNumFaces applies the entql int predicate on the num_faces field.

func (*HPBlobFilter) WhereOwnerArtistID

func (f *HPBlobFilter) WhereOwnerArtistID(p entql.IntP)

WhereOwnerArtistID applies the entql int predicate on the owner_artist_id field.

func (*HPBlobFilter) WhereOwnerMemberID

func (f *HPBlobFilter) WhereOwnerMemberID(p entql.IntP)

WhereOwnerMemberID applies the entql int predicate on the owner_member_id field.

func (*HPBlobFilter) WhereSize

func (f *HPBlobFilter) WhereSize(p entql.Int64P)

WhereSize applies the entql int64 predicate on the size field.

func (*HPBlobFilter) WhereSourceHTMLURL

func (f *HPBlobFilter) WhereSourceHTMLURL(p entql.StringP)

WhereSourceHTMLURL applies the entql string predicate on the source_html_url field.

func (*HPBlobFilter) WhereSourceURL

func (f *HPBlobFilter) WhereSourceURL(p entql.StringP)

WhereSourceURL applies the entql string predicate on the source_url field.

func (*HPBlobFilter) WhereStatus

func (f *HPBlobFilter) WhereStatus(p entql.StringP)

WhereStatus applies the entql string predicate on the status field.

func (*HPBlobFilter) WhereStatusErrorCount

func (f *HPBlobFilter) WhereStatusErrorCount(p entql.IntP)

WhereStatusErrorCount applies the entql int predicate on the status_error_count field.

func (*HPBlobFilter) WhereStatusMessage

func (f *HPBlobFilter) WhereStatusMessage(p entql.StringP)

WhereStatusMessage applies the entql string predicate on the status_message field.

func (*HPBlobFilter) WhereStoragePath

func (f *HPBlobFilter) WhereStoragePath(p entql.StringP)

WhereStoragePath applies the entql string predicate on the storage_path field.

func (*HPBlobFilter) WhereSubType

func (f *HPBlobFilter) WhereSubType(p entql.StringP)

WhereSubType applies the entql string predicate on the sub_type field.

func (*HPBlobFilter) WhereThumbnail

func (f *HPBlobFilter) WhereThumbnail(p entql.BytesP)

WhereThumbnail applies the entql json.RawMessage predicate on the thumbnail field.

func (*HPBlobFilter) WhereType

func (f *HPBlobFilter) WhereType(p entql.StringP)

WhereType applies the entql string predicate on the type field.

func (*HPBlobFilter) WhereUpdatedAt

func (f *HPBlobFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*HPBlobFilter) WhereWidth

func (f *HPBlobFilter) WhereWidth(p entql.IntP)

WhereWidth applies the entql int predicate on the width field.

type HPBlobGroupBy

HPBlobGroupBy is the group-by builder for HPBlob entities.

type HPBlobGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPBlobGroupBy) Aggregate

func (hbgb *HPBlobGroupBy) Aggregate(fns ...AggregateFunc) *HPBlobGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPBlobGroupBy) Bool

func (s *HPBlobGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) BoolX

func (s *HPBlobGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPBlobGroupBy) Bools

func (s *HPBlobGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) BoolsX

func (s *HPBlobGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPBlobGroupBy) Float64

func (s *HPBlobGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) Float64X

func (s *HPBlobGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPBlobGroupBy) Float64s

func (s *HPBlobGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) Float64sX

func (s *HPBlobGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPBlobGroupBy) Int

func (s *HPBlobGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) IntX

func (s *HPBlobGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPBlobGroupBy) Ints

func (s *HPBlobGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) IntsX

func (s *HPBlobGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPBlobGroupBy) Scan

func (hbgb *HPBlobGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPBlobGroupBy) ScanX

func (s *HPBlobGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPBlobGroupBy) String

func (s *HPBlobGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) StringX

func (s *HPBlobGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPBlobGroupBy) Strings

func (s *HPBlobGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPBlobGroupBy) StringsX

func (s *HPBlobGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPBlobMutation

HPBlobMutation represents an operation that mutates the HPBlob nodes in the graph.

type HPBlobMutation struct {
    // contains filtered or unexported fields
}

func (*HPBlobMutation) AddAmebloPostIDs

func (m *HPBlobMutation) AddAmebloPostIDs(ids ...int)

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by ids.

func (*HPBlobMutation) AddDurationSeconds

func (m *HPBlobMutation) AddDurationSeconds(f float64)

AddDurationSeconds adds f to the "duration_seconds" field.

func (*HPBlobMutation) AddField

func (m *HPBlobMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPBlobMutation) AddHeight

func (m *HPBlobMutation) AddHeight(i int)

AddHeight adds i to the "height" field.

func (*HPBlobMutation) AddIgPostIDs

func (m *HPBlobMutation) AddIgPostIDs(ids ...int)

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by ids.

func (*HPBlobMutation) AddNumFaces

func (m *HPBlobMutation) AddNumFaces(i int)

AddNumFaces adds i to the "num_faces" field.

func (*HPBlobMutation) AddSize

func (m *HPBlobMutation) AddSize(i int64)

AddSize adds i to the "size" field.

func (*HPBlobMutation) AddStatusErrorCount

func (m *HPBlobMutation) AddStatusErrorCount(i int)

AddStatusErrorCount adds i to the "status_error_count" field.

func (*HPBlobMutation) AddWidth

func (m *HPBlobMutation) AddWidth(i int)

AddWidth adds i to the "width" field.

func (*HPBlobMutation) AddedDurationSeconds

func (m *HPBlobMutation) AddedDurationSeconds() (r float64, exists bool)

AddedDurationSeconds returns the value that was added to the "duration_seconds" field in this mutation.

func (*HPBlobMutation) AddedEdges

func (m *HPBlobMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPBlobMutation) AddedField

func (m *HPBlobMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPBlobMutation) AddedFields

func (m *HPBlobMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPBlobMutation) AddedHeight

func (m *HPBlobMutation) AddedHeight() (r int, exists bool)

AddedHeight returns the value that was added to the "height" field in this mutation.

func (*HPBlobMutation) AddedIDs

func (m *HPBlobMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPBlobMutation) AddedNumFaces

func (m *HPBlobMutation) AddedNumFaces() (r int, exists bool)

AddedNumFaces returns the value that was added to the "num_faces" field in this mutation.

func (*HPBlobMutation) AddedSize

func (m *HPBlobMutation) AddedSize() (r int64, exists bool)

AddedSize returns the value that was added to the "size" field in this mutation.

func (*HPBlobMutation) AddedStatusErrorCount

func (m *HPBlobMutation) AddedStatusErrorCount() (r int, exists bool)

AddedStatusErrorCount returns the value that was added to the "status_error_count" field in this mutation.

func (*HPBlobMutation) AddedWidth

func (m *HPBlobMutation) AddedWidth() (r int, exists bool)

AddedWidth returns the value that was added to the "width" field in this mutation.

func (*HPBlobMutation) AmebloPostsCleared

func (m *HPBlobMutation) AmebloPostsCleared() bool

AmebloPostsCleared reports if the "ameblo_posts" edge to the HPAmebloPost entity was cleared.

func (*HPBlobMutation) AmebloPostsIDs

func (m *HPBlobMutation) AmebloPostsIDs() (ids []int)

AmebloPostsIDs returns the "ameblo_posts" edge IDs in the mutation.

func (*HPBlobMutation) ClearAmebloPosts

func (m *HPBlobMutation) ClearAmebloPosts()

ClearAmebloPosts clears the "ameblo_posts" edge to the HPAmebloPost entity.

func (*HPBlobMutation) ClearCreatedAt

func (m *HPBlobMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPBlobMutation) ClearDurationSeconds

func (m *HPBlobMutation) ClearDurationSeconds()

ClearDurationSeconds clears the value of the "duration_seconds" field.

func (*HPBlobMutation) ClearEdge

func (m *HPBlobMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPBlobMutation) ClearFaceRecognitionStatus

func (m *HPBlobMutation) ClearFaceRecognitionStatus()

ClearFaceRecognitionStatus clears the value of the "face_recognition_status" field.

func (*HPBlobMutation) ClearFaces

func (m *HPBlobMutation) ClearFaces()

ClearFaces clears the value of the "faces" field.

func (*HPBlobMutation) ClearField

func (m *HPBlobMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPBlobMutation) ClearHeight

func (m *HPBlobMutation) ClearHeight()

ClearHeight clears the value of the "height" field.

func (*HPBlobMutation) ClearIgPosts

func (m *HPBlobMutation) ClearIgPosts()

ClearIgPosts clears the "ig_posts" edge to the HPIgPost entity.

func (*HPBlobMutation) ClearNumFaces

func (m *HPBlobMutation) ClearNumFaces()

ClearNumFaces clears the value of the "num_faces" field.

func (*HPBlobMutation) ClearOwnerArtist

func (m *HPBlobMutation) ClearOwnerArtist()

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPBlobMutation) ClearOwnerArtistID

func (m *HPBlobMutation) ClearOwnerArtistID()

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPBlobMutation) ClearOwnerMember

func (m *HPBlobMutation) ClearOwnerMember()

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPBlobMutation) ClearOwnerMemberID

func (m *HPBlobMutation) ClearOwnerMemberID()

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPBlobMutation) ClearSize

func (m *HPBlobMutation) ClearSize()

ClearSize clears the value of the "size" field.

func (*HPBlobMutation) ClearStatusErrorCount

func (m *HPBlobMutation) ClearStatusErrorCount()

ClearStatusErrorCount clears the value of the "status_error_count" field.

func (*HPBlobMutation) ClearStatusMessage

func (m *HPBlobMutation) ClearStatusMessage()

ClearStatusMessage clears the value of the "status_message" field.

func (*HPBlobMutation) ClearThumbnail

func (m *HPBlobMutation) ClearThumbnail()

ClearThumbnail clears the value of the "thumbnail" field.

func (*HPBlobMutation) ClearUpdatedAt

func (m *HPBlobMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPBlobMutation) ClearWidth

func (m *HPBlobMutation) ClearWidth()

ClearWidth clears the value of the "width" field.

func (*HPBlobMutation) ClearedEdges

func (m *HPBlobMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPBlobMutation) ClearedFields

func (m *HPBlobMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPBlobMutation) Client

func (m HPBlobMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPBlobMutation) CreatedAt

func (m *HPBlobMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPBlobMutation) CreatedAtCleared

func (m *HPBlobMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPBlobMutation) DurationSeconds

func (m *HPBlobMutation) DurationSeconds() (r float64, exists bool)

DurationSeconds returns the value of the "duration_seconds" field in the mutation.

func (*HPBlobMutation) DurationSecondsCleared

func (m *HPBlobMutation) DurationSecondsCleared() bool

DurationSecondsCleared returns if the "duration_seconds" field was cleared in this mutation.

func (*HPBlobMutation) EdgeCleared

func (m *HPBlobMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPBlobMutation) FaceRecognitionStatus

func (m *HPBlobMutation) FaceRecognitionStatus() (r enums.HPBlobFaceRecognitionStatus, exists bool)

FaceRecognitionStatus returns the value of the "face_recognition_status" field in the mutation.

func (*HPBlobMutation) FaceRecognitionStatusCleared

func (m *HPBlobMutation) FaceRecognitionStatusCleared() bool

FaceRecognitionStatusCleared returns if the "face_recognition_status" field was cleared in this mutation.

func (*HPBlobMutation) Faces

func (m *HPBlobMutation) Faces() (r jsonfields.HPBlobImageFace, exists bool)

Faces returns the value of the "faces" field in the mutation.

func (*HPBlobMutation) FacesCleared

func (m *HPBlobMutation) FacesCleared() bool

FacesCleared returns if the "faces" field was cleared in this mutation.

func (*HPBlobMutation) Field

func (m *HPBlobMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPBlobMutation) FieldCleared

func (m *HPBlobMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPBlobMutation) Fields

func (m *HPBlobMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPBlobMutation) Filter

func (m *HPBlobMutation) Filter() *HPBlobFilter

Filter returns an entql.Where implementation to apply filters on the HPBlobMutation builder.

func (*HPBlobMutation) GetType

func (m *HPBlobMutation) GetType() (r enums.HPBlobType, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*HPBlobMutation) Height

func (m *HPBlobMutation) Height() (r int, exists bool)

Height returns the value of the "height" field in the mutation.

func (*HPBlobMutation) HeightCleared

func (m *HPBlobMutation) HeightCleared() bool

HeightCleared returns if the "height" field was cleared in this mutation.

func (*HPBlobMutation) ID

func (m *HPBlobMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPBlobMutation) IDs

func (m *HPBlobMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPBlobMutation) IgPostsCleared

func (m *HPBlobMutation) IgPostsCleared() bool

IgPostsCleared reports if the "ig_posts" edge to the HPIgPost entity was cleared.

func (*HPBlobMutation) IgPostsIDs

func (m *HPBlobMutation) IgPostsIDs() (ids []int)

IgPostsIDs returns the "ig_posts" edge IDs in the mutation.

func (*HPBlobMutation) NumFaces

func (m *HPBlobMutation) NumFaces() (r int, exists bool)

NumFaces returns the value of the "num_faces" field in the mutation.

func (*HPBlobMutation) NumFacesCleared

func (m *HPBlobMutation) NumFacesCleared() bool

NumFacesCleared returns if the "num_faces" field was cleared in this mutation.

func (*HPBlobMutation) OldCreatedAt

func (m *HPBlobMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldDurationSeconds

func (m *HPBlobMutation) OldDurationSeconds(ctx context.Context) (v float64, err error)

OldDurationSeconds returns the old "duration_seconds" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldFaceRecognitionStatus

func (m *HPBlobMutation) OldFaceRecognitionStatus(ctx context.Context) (v enums.HPBlobFaceRecognitionStatus, err error)

OldFaceRecognitionStatus returns the old "face_recognition_status" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldFaces

func (m *HPBlobMutation) OldFaces(ctx context.Context) (v jsonfields.HPBlobImageFace, err error)

OldFaces returns the old "faces" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldField

func (m *HPBlobMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPBlobMutation) OldHeight

func (m *HPBlobMutation) OldHeight(ctx context.Context) (v int, err error)

OldHeight returns the old "height" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldNumFaces

func (m *HPBlobMutation) OldNumFaces(ctx context.Context) (v int, err error)

OldNumFaces returns the old "num_faces" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldOwnerArtistID

func (m *HPBlobMutation) OldOwnerArtistID(ctx context.Context) (v int, err error)

OldOwnerArtistID returns the old "owner_artist_id" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldOwnerMemberID

func (m *HPBlobMutation) OldOwnerMemberID(ctx context.Context) (v int, err error)

OldOwnerMemberID returns the old "owner_member_id" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldSize

func (m *HPBlobMutation) OldSize(ctx context.Context) (v int64, err error)

OldSize returns the old "size" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldSourceHTMLURL

func (m *HPBlobMutation) OldSourceHTMLURL(ctx context.Context) (v string, err error)

OldSourceHTMLURL returns the old "source_html_url" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldSourceURL

func (m *HPBlobMutation) OldSourceURL(ctx context.Context) (v string, err error)

OldSourceURL returns the old "source_url" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldStatus

func (m *HPBlobMutation) OldStatus(ctx context.Context) (v enums.HPBlobStatus, err error)

OldStatus returns the old "status" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldStatusErrorCount

func (m *HPBlobMutation) OldStatusErrorCount(ctx context.Context) (v int, err error)

OldStatusErrorCount returns the old "status_error_count" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldStatusMessage

func (m *HPBlobMutation) OldStatusMessage(ctx context.Context) (v string, err error)

OldStatusMessage returns the old "status_message" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldStoragePath

func (m *HPBlobMutation) OldStoragePath(ctx context.Context) (v string, err error)

OldStoragePath returns the old "storage_path" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldSubType

func (m *HPBlobMutation) OldSubType(ctx context.Context) (v enums.HPBlobSubType, err error)

OldSubType returns the old "sub_type" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldThumbnail

func (m *HPBlobMutation) OldThumbnail(ctx context.Context) (v *jsonfields.HPBlobThumbnail, err error)

OldThumbnail returns the old "thumbnail" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldType

func (m *HPBlobMutation) OldType(ctx context.Context) (v enums.HPBlobType, err error)

OldType returns the old "type" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldUpdatedAt

func (m *HPBlobMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) OldWidth

func (m *HPBlobMutation) OldWidth(ctx context.Context) (v int, err error)

OldWidth returns the old "width" field's value of the HPBlob entity. If the HPBlob object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPBlobMutation) Op

func (m *HPBlobMutation) Op() Op

Op returns the operation name.

func (*HPBlobMutation) OwnerArtistCleared

func (m *HPBlobMutation) OwnerArtistCleared() bool

OwnerArtistCleared reports if the "owner_artist" edge to the HPArtist entity was cleared.

func (*HPBlobMutation) OwnerArtistID

func (m *HPBlobMutation) OwnerArtistID() (r int, exists bool)

OwnerArtistID returns the value of the "owner_artist_id" field in the mutation.

func (*HPBlobMutation) OwnerArtistIDCleared

func (m *HPBlobMutation) OwnerArtistIDCleared() bool

OwnerArtistIDCleared returns if the "owner_artist_id" field was cleared in this mutation.

func (*HPBlobMutation) OwnerArtistIDs

func (m *HPBlobMutation) OwnerArtistIDs() (ids []int)

OwnerArtistIDs returns the "owner_artist" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerArtistID instead. It exists only for internal usage by the builders.

func (*HPBlobMutation) OwnerMemberCleared

func (m *HPBlobMutation) OwnerMemberCleared() bool

OwnerMemberCleared reports if the "owner_member" edge to the HPMember entity was cleared.

func (*HPBlobMutation) OwnerMemberID

func (m *HPBlobMutation) OwnerMemberID() (r int, exists bool)

OwnerMemberID returns the value of the "owner_member_id" field in the mutation.

func (*HPBlobMutation) OwnerMemberIDCleared

func (m *HPBlobMutation) OwnerMemberIDCleared() bool

OwnerMemberIDCleared returns if the "owner_member_id" field was cleared in this mutation.

func (*HPBlobMutation) OwnerMemberIDs

func (m *HPBlobMutation) OwnerMemberIDs() (ids []int)

OwnerMemberIDs returns the "owner_member" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerMemberID instead. It exists only for internal usage by the builders.

func (*HPBlobMutation) RemoveAmebloPostIDs

func (m *HPBlobMutation) RemoveAmebloPostIDs(ids ...int)

RemoveAmebloPostIDs removes the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPBlobMutation) RemoveIgPostIDs

func (m *HPBlobMutation) RemoveIgPostIDs(ids ...int)

RemoveIgPostIDs removes the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPBlobMutation) RemovedAmebloPostsIDs

func (m *HPBlobMutation) RemovedAmebloPostsIDs() (ids []int)

RemovedAmebloPosts returns the removed IDs of the "ameblo_posts" edge to the HPAmebloPost entity.

func (*HPBlobMutation) RemovedEdges

func (m *HPBlobMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPBlobMutation) RemovedIDs

func (m *HPBlobMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPBlobMutation) RemovedIgPostsIDs

func (m *HPBlobMutation) RemovedIgPostsIDs() (ids []int)

RemovedIgPosts returns the removed IDs of the "ig_posts" edge to the HPIgPost entity.

func (*HPBlobMutation) ResetAmebloPosts

func (m *HPBlobMutation) ResetAmebloPosts()

ResetAmebloPosts resets all changes to the "ameblo_posts" edge.

func (*HPBlobMutation) ResetCreatedAt

func (m *HPBlobMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPBlobMutation) ResetDurationSeconds

func (m *HPBlobMutation) ResetDurationSeconds()

ResetDurationSeconds resets all changes to the "duration_seconds" field.

func (*HPBlobMutation) ResetEdge

func (m *HPBlobMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPBlobMutation) ResetFaceRecognitionStatus

func (m *HPBlobMutation) ResetFaceRecognitionStatus()

ResetFaceRecognitionStatus resets all changes to the "face_recognition_status" field.

func (*HPBlobMutation) ResetFaces

func (m *HPBlobMutation) ResetFaces()

ResetFaces resets all changes to the "faces" field.

func (*HPBlobMutation) ResetField

func (m *HPBlobMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPBlobMutation) ResetHeight

func (m *HPBlobMutation) ResetHeight()

ResetHeight resets all changes to the "height" field.

func (*HPBlobMutation) ResetIgPosts

func (m *HPBlobMutation) ResetIgPosts()

ResetIgPosts resets all changes to the "ig_posts" edge.

func (*HPBlobMutation) ResetNumFaces

func (m *HPBlobMutation) ResetNumFaces()

ResetNumFaces resets all changes to the "num_faces" field.

func (*HPBlobMutation) ResetOwnerArtist

func (m *HPBlobMutation) ResetOwnerArtist()

ResetOwnerArtist resets all changes to the "owner_artist" edge.

func (*HPBlobMutation) ResetOwnerArtistID

func (m *HPBlobMutation) ResetOwnerArtistID()

ResetOwnerArtistID resets all changes to the "owner_artist_id" field.

func (*HPBlobMutation) ResetOwnerMember

func (m *HPBlobMutation) ResetOwnerMember()

ResetOwnerMember resets all changes to the "owner_member" edge.

func (*HPBlobMutation) ResetOwnerMemberID

func (m *HPBlobMutation) ResetOwnerMemberID()

ResetOwnerMemberID resets all changes to the "owner_member_id" field.

func (*HPBlobMutation) ResetSize

func (m *HPBlobMutation) ResetSize()

ResetSize resets all changes to the "size" field.

func (*HPBlobMutation) ResetSourceHTMLURL

func (m *HPBlobMutation) ResetSourceHTMLURL()

ResetSourceHTMLURL resets all changes to the "source_html_url" field.

func (*HPBlobMutation) ResetSourceURL

func (m *HPBlobMutation) ResetSourceURL()

ResetSourceURL resets all changes to the "source_url" field.

func (*HPBlobMutation) ResetStatus

func (m *HPBlobMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*HPBlobMutation) ResetStatusErrorCount

func (m *HPBlobMutation) ResetStatusErrorCount()

ResetStatusErrorCount resets all changes to the "status_error_count" field.

func (*HPBlobMutation) ResetStatusMessage

func (m *HPBlobMutation) ResetStatusMessage()

ResetStatusMessage resets all changes to the "status_message" field.

func (*HPBlobMutation) ResetStoragePath

func (m *HPBlobMutation) ResetStoragePath()

ResetStoragePath resets all changes to the "storage_path" field.

func (*HPBlobMutation) ResetSubType

func (m *HPBlobMutation) ResetSubType()

ResetSubType resets all changes to the "sub_type" field.

func (*HPBlobMutation) ResetThumbnail

func (m *HPBlobMutation) ResetThumbnail()

ResetThumbnail resets all changes to the "thumbnail" field.

func (*HPBlobMutation) ResetType

func (m *HPBlobMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*HPBlobMutation) ResetUpdatedAt

func (m *HPBlobMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPBlobMutation) ResetWidth

func (m *HPBlobMutation) ResetWidth()

ResetWidth resets all changes to the "width" field.

func (*HPBlobMutation) SetCreatedAt

func (m *HPBlobMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPBlobMutation) SetDurationSeconds

func (m *HPBlobMutation) SetDurationSeconds(f float64)

SetDurationSeconds sets the "duration_seconds" field.

func (*HPBlobMutation) SetFaceRecognitionStatus

func (m *HPBlobMutation) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus)

SetFaceRecognitionStatus sets the "face_recognition_status" field.

func (*HPBlobMutation) SetFaces

func (m *HPBlobMutation) SetFaces(jbif jsonfields.HPBlobImageFace)

SetFaces sets the "faces" field.

func (*HPBlobMutation) SetField

func (m *HPBlobMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPBlobMutation) SetHeight

func (m *HPBlobMutation) SetHeight(i int)

SetHeight sets the "height" field.

func (*HPBlobMutation) SetNumFaces

func (m *HPBlobMutation) SetNumFaces(i int)

SetNumFaces sets the "num_faces" field.

func (*HPBlobMutation) SetOp

func (m *HPBlobMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPBlobMutation) SetOwnerArtistID

func (m *HPBlobMutation) SetOwnerArtistID(i int)

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPBlobMutation) SetOwnerMemberID

func (m *HPBlobMutation) SetOwnerMemberID(i int)

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPBlobMutation) SetSize

func (m *HPBlobMutation) SetSize(i int64)

SetSize sets the "size" field.

func (*HPBlobMutation) SetSourceHTMLURL

func (m *HPBlobMutation) SetSourceHTMLURL(s string)

SetSourceHTMLURL sets the "source_html_url" field.

func (*HPBlobMutation) SetSourceURL

func (m *HPBlobMutation) SetSourceURL(s string)

SetSourceURL sets the "source_url" field.

func (*HPBlobMutation) SetStatus

func (m *HPBlobMutation) SetStatus(ebs enums.HPBlobStatus)

SetStatus sets the "status" field.

func (*HPBlobMutation) SetStatusErrorCount

func (m *HPBlobMutation) SetStatusErrorCount(i int)

SetStatusErrorCount sets the "status_error_count" field.

func (*HPBlobMutation) SetStatusMessage

func (m *HPBlobMutation) SetStatusMessage(s string)

SetStatusMessage sets the "status_message" field.

func (*HPBlobMutation) SetStoragePath

func (m *HPBlobMutation) SetStoragePath(s string)

SetStoragePath sets the "storage_path" field.

func (*HPBlobMutation) SetSubType

func (m *HPBlobMutation) SetSubType(ebst enums.HPBlobSubType)

SetSubType sets the "sub_type" field.

func (*HPBlobMutation) SetThumbnail

func (m *HPBlobMutation) SetThumbnail(jbt *jsonfields.HPBlobThumbnail)

SetThumbnail sets the "thumbnail" field.

func (*HPBlobMutation) SetType

func (m *HPBlobMutation) SetType(ebt enums.HPBlobType)

SetType sets the "type" field.

func (*HPBlobMutation) SetUpdatedAt

func (m *HPBlobMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPBlobMutation) SetWidth

func (m *HPBlobMutation) SetWidth(i int)

SetWidth sets the "width" field.

func (*HPBlobMutation) Size

func (m *HPBlobMutation) Size() (r int64, exists bool)

Size returns the value of the "size" field in the mutation.

func (*HPBlobMutation) SizeCleared

func (m *HPBlobMutation) SizeCleared() bool

SizeCleared returns if the "size" field was cleared in this mutation.

func (*HPBlobMutation) SourceHTMLURL

func (m *HPBlobMutation) SourceHTMLURL() (r string, exists bool)

SourceHTMLURL returns the value of the "source_html_url" field in the mutation.

func (*HPBlobMutation) SourceURL

func (m *HPBlobMutation) SourceURL() (r string, exists bool)

SourceURL returns the value of the "source_url" field in the mutation.

func (*HPBlobMutation) Status

func (m *HPBlobMutation) Status() (r enums.HPBlobStatus, exists bool)

Status returns the value of the "status" field in the mutation.

func (*HPBlobMutation) StatusErrorCount

func (m *HPBlobMutation) StatusErrorCount() (r int, exists bool)

StatusErrorCount returns the value of the "status_error_count" field in the mutation.

func (*HPBlobMutation) StatusErrorCountCleared

func (m *HPBlobMutation) StatusErrorCountCleared() bool

StatusErrorCountCleared returns if the "status_error_count" field was cleared in this mutation.

func (*HPBlobMutation) StatusMessage

func (m *HPBlobMutation) StatusMessage() (r string, exists bool)

StatusMessage returns the value of the "status_message" field in the mutation.

func (*HPBlobMutation) StatusMessageCleared

func (m *HPBlobMutation) StatusMessageCleared() bool

StatusMessageCleared returns if the "status_message" field was cleared in this mutation.

func (*HPBlobMutation) StoragePath

func (m *HPBlobMutation) StoragePath() (r string, exists bool)

StoragePath returns the value of the "storage_path" field in the mutation.

func (*HPBlobMutation) SubType

func (m *HPBlobMutation) SubType() (r enums.HPBlobSubType, exists bool)

SubType returns the value of the "sub_type" field in the mutation.

func (*HPBlobMutation) Thumbnail

func (m *HPBlobMutation) Thumbnail() (r *jsonfields.HPBlobThumbnail, exists bool)

Thumbnail returns the value of the "thumbnail" field in the mutation.

func (*HPBlobMutation) ThumbnailCleared

func (m *HPBlobMutation) ThumbnailCleared() bool

ThumbnailCleared returns if the "thumbnail" field was cleared in this mutation.

func (HPBlobMutation) Tx

func (m HPBlobMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPBlobMutation) Type

func (m *HPBlobMutation) Type() string

Type returns the node type of this mutation (HPBlob).

func (*HPBlobMutation) UpdatedAt

func (m *HPBlobMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPBlobMutation) UpdatedAtCleared

func (m *HPBlobMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPBlobMutation) Where

func (m *HPBlobMutation) Where(ps ...predicate.HPBlob)

Where appends a list predicates to the HPBlobMutation builder.

func (*HPBlobMutation) WhereP

func (m *HPBlobMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPBlobMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*HPBlobMutation) Width

func (m *HPBlobMutation) Width() (r int, exists bool)

Width returns the value of the "width" field in the mutation.

func (*HPBlobMutation) WidthCleared

func (m *HPBlobMutation) WidthCleared() bool

WidthCleared returns if the "width" field was cleared in this mutation.

type HPBlobOrder

HPBlobOrder defines the ordering of HPBlob.

type HPBlobOrder struct {
    Direction OrderDirection    `json:"direction"`
    Field     *HPBlobOrderField `json:"field"`
}

type HPBlobOrderField

HPBlobOrderField defines the ordering field of HPBlob.

type HPBlobOrderField struct {
    // contains filtered or unexported fields
}

type HPBlobPaginateOption

HPBlobPaginateOption enables pagination customization.

type HPBlobPaginateOption func(*hpblobPager) error

func WithHPBlobFilter

func WithHPBlobFilter(filter func(*HPBlobQuery) (*HPBlobQuery, error)) HPBlobPaginateOption

WithHPBlobFilter configures pagination filter.

func WithHPBlobOrder

func WithHPBlobOrder(order *HPBlobOrder) HPBlobPaginateOption

WithHPBlobOrder configures pagination ordering.

type HPBlobQuery

HPBlobQuery is the builder for querying HPBlob entities.

type HPBlobQuery struct {
    // contains filtered or unexported fields
}

func (*HPBlobQuery) Aggregate

func (hbq *HPBlobQuery) Aggregate(fns ...AggregateFunc) *HPBlobSelect

Aggregate returns a HPBlobSelect configured with the given aggregations.

func (*HPBlobQuery) All

func (hbq *HPBlobQuery) All(ctx context.Context) ([]*HPBlob, error)

All executes the query and returns a list of HPBlobs.

func (*HPBlobQuery) AllX

func (hbq *HPBlobQuery) AllX(ctx context.Context) []*HPBlob

AllX is like All, but panics if an error occurs.

func (*HPBlobQuery) Clone

func (hbq *HPBlobQuery) Clone() *HPBlobQuery

Clone returns a duplicate of the HPBlobQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPBlobQuery) CollectFields

func (hb *HPBlobQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPBlobQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPBlobQuery) Count

func (hbq *HPBlobQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPBlobQuery) CountX

func (hbq *HPBlobQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPBlobQuery) Exist

func (hbq *HPBlobQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPBlobQuery) ExistX

func (hbq *HPBlobQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPBlobQuery) Filter

func (hbq *HPBlobQuery) Filter() *HPBlobFilter

Filter returns a Filter implementation to apply filters on the HPBlobQuery builder.

func (*HPBlobQuery) First

func (hbq *HPBlobQuery) First(ctx context.Context) (*HPBlob, error)

First returns the first HPBlob entity from the query. Returns a *NotFoundError when no HPBlob was found.

func (*HPBlobQuery) FirstID

func (hbq *HPBlobQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPBlob ID from the query. Returns a *NotFoundError when no HPBlob ID was found.

func (*HPBlobQuery) FirstIDX

func (hbq *HPBlobQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPBlobQuery) FirstX

func (hbq *HPBlobQuery) FirstX(ctx context.Context) *HPBlob

FirstX is like First, but panics if an error occurs.

func (*HPBlobQuery) GroupBy

func (hbq *HPBlobQuery) GroupBy(field string, fields ...string) *HPBlobGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPBlob.Query().
	GroupBy(hpblob.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPBlobQuery) IDs

func (hbq *HPBlobQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPBlob IDs.

func (*HPBlobQuery) IDsX

func (hbq *HPBlobQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPBlobQuery) Limit

func (hbq *HPBlobQuery) Limit(limit int) *HPBlobQuery

Limit the number of records to be returned by this query.

func (*HPBlobQuery) Offset

func (hbq *HPBlobQuery) Offset(offset int) *HPBlobQuery

Offset to start from.

func (*HPBlobQuery) Only

func (hbq *HPBlobQuery) Only(ctx context.Context) (*HPBlob, error)

Only returns a single HPBlob entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPBlob entity is found. Returns a *NotFoundError when no HPBlob entities are found.

func (*HPBlobQuery) OnlyID

func (hbq *HPBlobQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPBlob ID in the query. Returns a *NotSingularError when more than one HPBlob ID is found. Returns a *NotFoundError when no entities are found.

func (*HPBlobQuery) OnlyIDX

func (hbq *HPBlobQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPBlobQuery) OnlyX

func (hbq *HPBlobQuery) OnlyX(ctx context.Context) *HPBlob

OnlyX is like Only, but panics if an error occurs.

func (*HPBlobQuery) Order

func (hbq *HPBlobQuery) Order(o ...hpblob.Order) *HPBlobQuery

Order specifies how the records should be ordered.

func (*HPBlobQuery) Paginate

func (hb *HPBlobQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPBlobPaginateOption,
) (*HPBlobConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPBlob.

func (*HPBlobQuery) QueryAmebloPosts

func (hbq *HPBlobQuery) QueryAmebloPosts() *HPAmebloPostQuery

QueryAmebloPosts chains the current query on the "ameblo_posts" edge.

func (*HPBlobQuery) QueryIgPosts

func (hbq *HPBlobQuery) QueryIgPosts() *HPIgPostQuery

QueryIgPosts chains the current query on the "ig_posts" edge.

func (*HPBlobQuery) QueryOwnerArtist

func (hbq *HPBlobQuery) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist chains the current query on the "owner_artist" edge.

func (*HPBlobQuery) QueryOwnerMember

func (hbq *HPBlobQuery) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember chains the current query on the "owner_member" edge.

func (*HPBlobQuery) Select

func (hbq *HPBlobQuery) Select(fields ...string) *HPBlobSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.HPBlob.Query().
	Select(hpblob.FieldCreatedAt).
	Scan(ctx, &v)

func (*HPBlobQuery) Unique

func (hbq *HPBlobQuery) Unique(unique bool) *HPBlobQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPBlobQuery) Where

func (hbq *HPBlobQuery) Where(ps ...predicate.HPBlob) *HPBlobQuery

Where adds a new predicate for the HPBlobQuery builder.

func (*HPBlobQuery) WithAmebloPosts

func (hbq *HPBlobQuery) WithAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPBlobQuery

WithAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "ameblo_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPBlobQuery) WithIgPosts

func (hbq *HPBlobQuery) WithIgPosts(opts ...func(*HPIgPostQuery)) *HPBlobQuery

WithIgPosts tells the query-builder to eager-load the nodes that are connected to the "ig_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPBlobQuery) WithNamedAmebloPosts

func (hbq *HPBlobQuery) WithNamedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPBlobQuery

WithNamedAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "ameblo_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPBlobQuery) WithNamedIgPosts

func (hbq *HPBlobQuery) WithNamedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPBlobQuery

WithNamedIgPosts tells the query-builder to eager-load the nodes that are connected to the "ig_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPBlobQuery) WithOwnerArtist

func (hbq *HPBlobQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPBlobQuery

WithOwnerArtist tells the query-builder to eager-load the nodes that are connected to the "owner_artist" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPBlobQuery) WithOwnerMember

func (hbq *HPBlobQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPBlobQuery

WithOwnerMember tells the query-builder to eager-load the nodes that are connected to the "owner_member" edge. The optional arguments are used to configure the query builder of the edge.

type HPBlobSelect

HPBlobSelect is the builder for selecting fields of HPBlob entities.

type HPBlobSelect struct {
    *HPBlobQuery
    // contains filtered or unexported fields
}

func (*HPBlobSelect) Aggregate

func (hbs *HPBlobSelect) Aggregate(fns ...AggregateFunc) *HPBlobSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPBlobSelect) Bool

func (s *HPBlobSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) BoolX

func (s *HPBlobSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPBlobSelect) Bools

func (s *HPBlobSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) BoolsX

func (s *HPBlobSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPBlobSelect) Float64

func (s *HPBlobSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) Float64X

func (s *HPBlobSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPBlobSelect) Float64s

func (s *HPBlobSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) Float64sX

func (s *HPBlobSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPBlobSelect) Int

func (s *HPBlobSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) IntX

func (s *HPBlobSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPBlobSelect) Ints

func (s *HPBlobSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) IntsX

func (s *HPBlobSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPBlobSelect) Scan

func (hbs *HPBlobSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPBlobSelect) ScanX

func (s *HPBlobSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPBlobSelect) String

func (s *HPBlobSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) StringX

func (s *HPBlobSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPBlobSelect) Strings

func (s *HPBlobSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPBlobSelect) StringsX

func (s *HPBlobSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPBlobUpdate

HPBlobUpdate is the builder for updating HPBlob entities.

type HPBlobUpdate struct {
    // contains filtered or unexported fields
}

func (*HPBlobUpdate) AddAmebloPostIDs

func (hbu *HPBlobUpdate) AddAmebloPostIDs(ids ...int) *HPBlobUpdate

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPBlobUpdate) AddAmebloPosts

func (hbu *HPBlobUpdate) AddAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdate

AddAmebloPosts adds the "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPBlobUpdate) AddDurationSeconds

func (hbu *HPBlobUpdate) AddDurationSeconds(f float64) *HPBlobUpdate

AddDurationSeconds adds f to the "duration_seconds" field.

func (*HPBlobUpdate) AddHeight

func (hbu *HPBlobUpdate) AddHeight(i int) *HPBlobUpdate

AddHeight adds i to the "height" field.

func (*HPBlobUpdate) AddIgPostIDs

func (hbu *HPBlobUpdate) AddIgPostIDs(ids ...int) *HPBlobUpdate

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPBlobUpdate) AddIgPosts

func (hbu *HPBlobUpdate) AddIgPosts(h ...*HPIgPost) *HPBlobUpdate

AddIgPosts adds the "ig_posts" edges to the HPIgPost entity.

func (*HPBlobUpdate) AddNumFaces

func (hbu *HPBlobUpdate) AddNumFaces(i int) *HPBlobUpdate

AddNumFaces adds i to the "num_faces" field.

func (*HPBlobUpdate) AddSize

func (hbu *HPBlobUpdate) AddSize(i int64) *HPBlobUpdate

AddSize adds i to the "size" field.

func (*HPBlobUpdate) AddStatusErrorCount

func (hbu *HPBlobUpdate) AddStatusErrorCount(i int) *HPBlobUpdate

AddStatusErrorCount adds i to the "status_error_count" field.

func (*HPBlobUpdate) AddWidth

func (hbu *HPBlobUpdate) AddWidth(i int) *HPBlobUpdate

AddWidth adds i to the "width" field.

func (*HPBlobUpdate) ClearAmebloPosts

func (hbu *HPBlobUpdate) ClearAmebloPosts() *HPBlobUpdate

ClearAmebloPosts clears all "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPBlobUpdate) ClearDurationSeconds

func (hbu *HPBlobUpdate) ClearDurationSeconds() *HPBlobUpdate

ClearDurationSeconds clears the value of the "duration_seconds" field.

func (*HPBlobUpdate) ClearFaceRecognitionStatus

func (hbu *HPBlobUpdate) ClearFaceRecognitionStatus() *HPBlobUpdate

ClearFaceRecognitionStatus clears the value of the "face_recognition_status" field.

func (*HPBlobUpdate) ClearFaces

func (hbu *HPBlobUpdate) ClearFaces() *HPBlobUpdate

ClearFaces clears the value of the "faces" field.

func (*HPBlobUpdate) ClearHeight

func (hbu *HPBlobUpdate) ClearHeight() *HPBlobUpdate

ClearHeight clears the value of the "height" field.

func (*HPBlobUpdate) ClearIgPosts

func (hbu *HPBlobUpdate) ClearIgPosts() *HPBlobUpdate

ClearIgPosts clears all "ig_posts" edges to the HPIgPost entity.

func (*HPBlobUpdate) ClearNumFaces

func (hbu *HPBlobUpdate) ClearNumFaces() *HPBlobUpdate

ClearNumFaces clears the value of the "num_faces" field.

func (*HPBlobUpdate) ClearOwnerArtist

func (hbu *HPBlobUpdate) ClearOwnerArtist() *HPBlobUpdate

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPBlobUpdate) ClearOwnerArtistID

func (hbu *HPBlobUpdate) ClearOwnerArtistID() *HPBlobUpdate

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPBlobUpdate) ClearOwnerMember

func (hbu *HPBlobUpdate) ClearOwnerMember() *HPBlobUpdate

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPBlobUpdate) ClearOwnerMemberID

func (hbu *HPBlobUpdate) ClearOwnerMemberID() *HPBlobUpdate

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPBlobUpdate) ClearSize

func (hbu *HPBlobUpdate) ClearSize() *HPBlobUpdate

ClearSize clears the value of the "size" field.

func (*HPBlobUpdate) ClearStatusErrorCount

func (hbu *HPBlobUpdate) ClearStatusErrorCount() *HPBlobUpdate

ClearStatusErrorCount clears the value of the "status_error_count" field.

func (*HPBlobUpdate) ClearStatusMessage

func (hbu *HPBlobUpdate) ClearStatusMessage() *HPBlobUpdate

ClearStatusMessage clears the value of the "status_message" field.

func (*HPBlobUpdate) ClearThumbnail

func (hbu *HPBlobUpdate) ClearThumbnail() *HPBlobUpdate

ClearThumbnail clears the value of the "thumbnail" field.

func (*HPBlobUpdate) ClearUpdatedAt

func (hbu *HPBlobUpdate) ClearUpdatedAt() *HPBlobUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPBlobUpdate) ClearWidth

func (hbu *HPBlobUpdate) ClearWidth() *HPBlobUpdate

ClearWidth clears the value of the "width" field.

func (*HPBlobUpdate) Exec

func (hbu *HPBlobUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPBlobUpdate) ExecX

func (hbu *HPBlobUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobUpdate) Mutation

func (hbu *HPBlobUpdate) Mutation() *HPBlobMutation

Mutation returns the HPBlobMutation object of the builder.

func (*HPBlobUpdate) RemoveAmebloPostIDs

func (hbu *HPBlobUpdate) RemoveAmebloPostIDs(ids ...int) *HPBlobUpdate

RemoveAmebloPostIDs removes the "ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPBlobUpdate) RemoveAmebloPosts

func (hbu *HPBlobUpdate) RemoveAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdate

RemoveAmebloPosts removes "ameblo_posts" edges to HPAmebloPost entities.

func (*HPBlobUpdate) RemoveIgPostIDs

func (hbu *HPBlobUpdate) RemoveIgPostIDs(ids ...int) *HPBlobUpdate

RemoveIgPostIDs removes the "ig_posts" edge to HPIgPost entities by IDs.

func (*HPBlobUpdate) RemoveIgPosts

func (hbu *HPBlobUpdate) RemoveIgPosts(h ...*HPIgPost) *HPBlobUpdate

RemoveIgPosts removes "ig_posts" edges to HPIgPost entities.

func (*HPBlobUpdate) Save

func (hbu *HPBlobUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPBlobUpdate) SaveX

func (hbu *HPBlobUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPBlobUpdate) SetDurationSeconds

func (hbu *HPBlobUpdate) SetDurationSeconds(f float64) *HPBlobUpdate

SetDurationSeconds sets the "duration_seconds" field.

func (*HPBlobUpdate) SetFaceRecognitionStatus

func (hbu *HPBlobUpdate) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus) *HPBlobUpdate

SetFaceRecognitionStatus sets the "face_recognition_status" field.

func (*HPBlobUpdate) SetFaces

func (hbu *HPBlobUpdate) SetFaces(jbif jsonfields.HPBlobImageFace) *HPBlobUpdate

SetFaces sets the "faces" field.

func (*HPBlobUpdate) SetHeight

func (hbu *HPBlobUpdate) SetHeight(i int) *HPBlobUpdate

SetHeight sets the "height" field.

func (*HPBlobUpdate) SetNillableDurationSeconds

func (hbu *HPBlobUpdate) SetNillableDurationSeconds(f *float64) *HPBlobUpdate

SetNillableDurationSeconds sets the "duration_seconds" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableFaceRecognitionStatus

func (hbu *HPBlobUpdate) SetNillableFaceRecognitionStatus(ebfrs *enums.HPBlobFaceRecognitionStatus) *HPBlobUpdate

SetNillableFaceRecognitionStatus sets the "face_recognition_status" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableFaces

func (hbu *HPBlobUpdate) SetNillableFaces(jbif *jsonfields.HPBlobImageFace) *HPBlobUpdate

SetNillableFaces sets the "faces" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableHeight

func (hbu *HPBlobUpdate) SetNillableHeight(i *int) *HPBlobUpdate

SetNillableHeight sets the "height" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableNumFaces

func (hbu *HPBlobUpdate) SetNillableNumFaces(i *int) *HPBlobUpdate

SetNillableNumFaces sets the "num_faces" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableOwnerArtistID

func (hbu *HPBlobUpdate) SetNillableOwnerArtistID(i *int) *HPBlobUpdate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableOwnerMemberID

func (hbu *HPBlobUpdate) SetNillableOwnerMemberID(i *int) *HPBlobUpdate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableSize

func (hbu *HPBlobUpdate) SetNillableSize(i *int64) *HPBlobUpdate

SetNillableSize sets the "size" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableStatusErrorCount

func (hbu *HPBlobUpdate) SetNillableStatusErrorCount(i *int) *HPBlobUpdate

SetNillableStatusErrorCount sets the "status_error_count" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableStatusMessage

func (hbu *HPBlobUpdate) SetNillableStatusMessage(s *string) *HPBlobUpdate

SetNillableStatusMessage sets the "status_message" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableUpdatedAt

func (hbu *HPBlobUpdate) SetNillableUpdatedAt(t *time.Time) *HPBlobUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPBlobUpdate) SetNillableWidth

func (hbu *HPBlobUpdate) SetNillableWidth(i *int) *HPBlobUpdate

SetNillableWidth sets the "width" field if the given value is not nil.

func (*HPBlobUpdate) SetNumFaces

func (hbu *HPBlobUpdate) SetNumFaces(i int) *HPBlobUpdate

SetNumFaces sets the "num_faces" field.

func (*HPBlobUpdate) SetOwnerArtist

func (hbu *HPBlobUpdate) SetOwnerArtist(h *HPArtist) *HPBlobUpdate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPBlobUpdate) SetOwnerArtistID

func (hbu *HPBlobUpdate) SetOwnerArtistID(i int) *HPBlobUpdate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPBlobUpdate) SetOwnerMember

func (hbu *HPBlobUpdate) SetOwnerMember(h *HPMember) *HPBlobUpdate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPBlobUpdate) SetOwnerMemberID

func (hbu *HPBlobUpdate) SetOwnerMemberID(i int) *HPBlobUpdate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPBlobUpdate) SetSize

func (hbu *HPBlobUpdate) SetSize(i int64) *HPBlobUpdate

SetSize sets the "size" field.

func (*HPBlobUpdate) SetSourceHTMLURL

func (hbu *HPBlobUpdate) SetSourceHTMLURL(s string) *HPBlobUpdate

SetSourceHTMLURL sets the "source_html_url" field.

func (*HPBlobUpdate) SetSourceURL

func (hbu *HPBlobUpdate) SetSourceURL(s string) *HPBlobUpdate

SetSourceURL sets the "source_url" field.

func (*HPBlobUpdate) SetStatus

func (hbu *HPBlobUpdate) SetStatus(ebs enums.HPBlobStatus) *HPBlobUpdate

SetStatus sets the "status" field.

func (*HPBlobUpdate) SetStatusErrorCount

func (hbu *HPBlobUpdate) SetStatusErrorCount(i int) *HPBlobUpdate

SetStatusErrorCount sets the "status_error_count" field.

func (*HPBlobUpdate) SetStatusMessage

func (hbu *HPBlobUpdate) SetStatusMessage(s string) *HPBlobUpdate

SetStatusMessage sets the "status_message" field.

func (*HPBlobUpdate) SetStoragePath

func (hbu *HPBlobUpdate) SetStoragePath(s string) *HPBlobUpdate

SetStoragePath sets the "storage_path" field.

func (*HPBlobUpdate) SetSubType

func (hbu *HPBlobUpdate) SetSubType(ebst enums.HPBlobSubType) *HPBlobUpdate

SetSubType sets the "sub_type" field.

func (*HPBlobUpdate) SetThumbnail

func (hbu *HPBlobUpdate) SetThumbnail(jbt *jsonfields.HPBlobThumbnail) *HPBlobUpdate

SetThumbnail sets the "thumbnail" field.

func (*HPBlobUpdate) SetType

func (hbu *HPBlobUpdate) SetType(ebt enums.HPBlobType) *HPBlobUpdate

SetType sets the "type" field.

func (*HPBlobUpdate) SetUpdatedAt

func (hbu *HPBlobUpdate) SetUpdatedAt(t time.Time) *HPBlobUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPBlobUpdate) SetWidth

func (hbu *HPBlobUpdate) SetWidth(i int) *HPBlobUpdate

SetWidth sets the "width" field.

func (*HPBlobUpdate) Where

func (hbu *HPBlobUpdate) Where(ps ...predicate.HPBlob) *HPBlobUpdate

Where appends a list predicates to the HPBlobUpdate builder.

type HPBlobUpdateOne

HPBlobUpdateOne is the builder for updating a single HPBlob entity.

type HPBlobUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPBlobUpdateOne) AddAmebloPostIDs

func (hbuo *HPBlobUpdateOne) AddAmebloPostIDs(ids ...int) *HPBlobUpdateOne

AddAmebloPostIDs adds the "ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPBlobUpdateOne) AddAmebloPosts

func (hbuo *HPBlobUpdateOne) AddAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdateOne

AddAmebloPosts adds the "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPBlobUpdateOne) AddDurationSeconds

func (hbuo *HPBlobUpdateOne) AddDurationSeconds(f float64) *HPBlobUpdateOne

AddDurationSeconds adds f to the "duration_seconds" field.

func (*HPBlobUpdateOne) AddHeight

func (hbuo *HPBlobUpdateOne) AddHeight(i int) *HPBlobUpdateOne

AddHeight adds i to the "height" field.

func (*HPBlobUpdateOne) AddIgPostIDs

func (hbuo *HPBlobUpdateOne) AddIgPostIDs(ids ...int) *HPBlobUpdateOne

AddIgPostIDs adds the "ig_posts" edge to the HPIgPost entity by IDs.

func (*HPBlobUpdateOne) AddIgPosts

func (hbuo *HPBlobUpdateOne) AddIgPosts(h ...*HPIgPost) *HPBlobUpdateOne

AddIgPosts adds the "ig_posts" edges to the HPIgPost entity.

func (*HPBlobUpdateOne) AddNumFaces

func (hbuo *HPBlobUpdateOne) AddNumFaces(i int) *HPBlobUpdateOne

AddNumFaces adds i to the "num_faces" field.

func (*HPBlobUpdateOne) AddSize

func (hbuo *HPBlobUpdateOne) AddSize(i int64) *HPBlobUpdateOne

AddSize adds i to the "size" field.

func (*HPBlobUpdateOne) AddStatusErrorCount

func (hbuo *HPBlobUpdateOne) AddStatusErrorCount(i int) *HPBlobUpdateOne

AddStatusErrorCount adds i to the "status_error_count" field.

func (*HPBlobUpdateOne) AddWidth

func (hbuo *HPBlobUpdateOne) AddWidth(i int) *HPBlobUpdateOne

AddWidth adds i to the "width" field.

func (*HPBlobUpdateOne) ClearAmebloPosts

func (hbuo *HPBlobUpdateOne) ClearAmebloPosts() *HPBlobUpdateOne

ClearAmebloPosts clears all "ameblo_posts" edges to the HPAmebloPost entity.

func (*HPBlobUpdateOne) ClearDurationSeconds

func (hbuo *HPBlobUpdateOne) ClearDurationSeconds() *HPBlobUpdateOne

ClearDurationSeconds clears the value of the "duration_seconds" field.

func (*HPBlobUpdateOne) ClearFaceRecognitionStatus

func (hbuo *HPBlobUpdateOne) ClearFaceRecognitionStatus() *HPBlobUpdateOne

ClearFaceRecognitionStatus clears the value of the "face_recognition_status" field.

func (*HPBlobUpdateOne) ClearFaces

func (hbuo *HPBlobUpdateOne) ClearFaces() *HPBlobUpdateOne

ClearFaces clears the value of the "faces" field.

func (*HPBlobUpdateOne) ClearHeight

func (hbuo *HPBlobUpdateOne) ClearHeight() *HPBlobUpdateOne

ClearHeight clears the value of the "height" field.

func (*HPBlobUpdateOne) ClearIgPosts

func (hbuo *HPBlobUpdateOne) ClearIgPosts() *HPBlobUpdateOne

ClearIgPosts clears all "ig_posts" edges to the HPIgPost entity.

func (*HPBlobUpdateOne) ClearNumFaces

func (hbuo *HPBlobUpdateOne) ClearNumFaces() *HPBlobUpdateOne

ClearNumFaces clears the value of the "num_faces" field.

func (*HPBlobUpdateOne) ClearOwnerArtist

func (hbuo *HPBlobUpdateOne) ClearOwnerArtist() *HPBlobUpdateOne

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPBlobUpdateOne) ClearOwnerArtistID

func (hbuo *HPBlobUpdateOne) ClearOwnerArtistID() *HPBlobUpdateOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPBlobUpdateOne) ClearOwnerMember

func (hbuo *HPBlobUpdateOne) ClearOwnerMember() *HPBlobUpdateOne

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPBlobUpdateOne) ClearOwnerMemberID

func (hbuo *HPBlobUpdateOne) ClearOwnerMemberID() *HPBlobUpdateOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPBlobUpdateOne) ClearSize

func (hbuo *HPBlobUpdateOne) ClearSize() *HPBlobUpdateOne

ClearSize clears the value of the "size" field.

func (*HPBlobUpdateOne) ClearStatusErrorCount

func (hbuo *HPBlobUpdateOne) ClearStatusErrorCount() *HPBlobUpdateOne

ClearStatusErrorCount clears the value of the "status_error_count" field.

func (*HPBlobUpdateOne) ClearStatusMessage

func (hbuo *HPBlobUpdateOne) ClearStatusMessage() *HPBlobUpdateOne

ClearStatusMessage clears the value of the "status_message" field.

func (*HPBlobUpdateOne) ClearThumbnail

func (hbuo *HPBlobUpdateOne) ClearThumbnail() *HPBlobUpdateOne

ClearThumbnail clears the value of the "thumbnail" field.

func (*HPBlobUpdateOne) ClearUpdatedAt

func (hbuo *HPBlobUpdateOne) ClearUpdatedAt() *HPBlobUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPBlobUpdateOne) ClearWidth

func (hbuo *HPBlobUpdateOne) ClearWidth() *HPBlobUpdateOne

ClearWidth clears the value of the "width" field.

func (*HPBlobUpdateOne) Exec

func (hbuo *HPBlobUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPBlobUpdateOne) ExecX

func (hbuo *HPBlobUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobUpdateOne) Mutation

func (hbuo *HPBlobUpdateOne) Mutation() *HPBlobMutation

Mutation returns the HPBlobMutation object of the builder.

func (*HPBlobUpdateOne) RemoveAmebloPostIDs

func (hbuo *HPBlobUpdateOne) RemoveAmebloPostIDs(ids ...int) *HPBlobUpdateOne

RemoveAmebloPostIDs removes the "ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPBlobUpdateOne) RemoveAmebloPosts

func (hbuo *HPBlobUpdateOne) RemoveAmebloPosts(h ...*HPAmebloPost) *HPBlobUpdateOne

RemoveAmebloPosts removes "ameblo_posts" edges to HPAmebloPost entities.

func (*HPBlobUpdateOne) RemoveIgPostIDs

func (hbuo *HPBlobUpdateOne) RemoveIgPostIDs(ids ...int) *HPBlobUpdateOne

RemoveIgPostIDs removes the "ig_posts" edge to HPIgPost entities by IDs.

func (*HPBlobUpdateOne) RemoveIgPosts

func (hbuo *HPBlobUpdateOne) RemoveIgPosts(h ...*HPIgPost) *HPBlobUpdateOne

RemoveIgPosts removes "ig_posts" edges to HPIgPost entities.

func (*HPBlobUpdateOne) Save

func (hbuo *HPBlobUpdateOne) Save(ctx context.Context) (*HPBlob, error)

Save executes the query and returns the updated HPBlob entity.

func (*HPBlobUpdateOne) SaveX

func (hbuo *HPBlobUpdateOne) SaveX(ctx context.Context) *HPBlob

SaveX is like Save, but panics if an error occurs.

func (*HPBlobUpdateOne) Select

func (hbuo *HPBlobUpdateOne) Select(field string, fields ...string) *HPBlobUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPBlobUpdateOne) SetDurationSeconds

func (hbuo *HPBlobUpdateOne) SetDurationSeconds(f float64) *HPBlobUpdateOne

SetDurationSeconds sets the "duration_seconds" field.

func (*HPBlobUpdateOne) SetFaceRecognitionStatus

func (hbuo *HPBlobUpdateOne) SetFaceRecognitionStatus(ebfrs enums.HPBlobFaceRecognitionStatus) *HPBlobUpdateOne

SetFaceRecognitionStatus sets the "face_recognition_status" field.

func (*HPBlobUpdateOne) SetFaces

func (hbuo *HPBlobUpdateOne) SetFaces(jbif jsonfields.HPBlobImageFace) *HPBlobUpdateOne

SetFaces sets the "faces" field.

func (*HPBlobUpdateOne) SetHeight

func (hbuo *HPBlobUpdateOne) SetHeight(i int) *HPBlobUpdateOne

SetHeight sets the "height" field.

func (*HPBlobUpdateOne) SetNillableDurationSeconds

func (hbuo *HPBlobUpdateOne) SetNillableDurationSeconds(f *float64) *HPBlobUpdateOne

SetNillableDurationSeconds sets the "duration_seconds" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableFaceRecognitionStatus

func (hbuo *HPBlobUpdateOne) SetNillableFaceRecognitionStatus(ebfrs *enums.HPBlobFaceRecognitionStatus) *HPBlobUpdateOne

SetNillableFaceRecognitionStatus sets the "face_recognition_status" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableFaces

func (hbuo *HPBlobUpdateOne) SetNillableFaces(jbif *jsonfields.HPBlobImageFace) *HPBlobUpdateOne

SetNillableFaces sets the "faces" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableHeight

func (hbuo *HPBlobUpdateOne) SetNillableHeight(i *int) *HPBlobUpdateOne

SetNillableHeight sets the "height" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableNumFaces

func (hbuo *HPBlobUpdateOne) SetNillableNumFaces(i *int) *HPBlobUpdateOne

SetNillableNumFaces sets the "num_faces" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableOwnerArtistID

func (hbuo *HPBlobUpdateOne) SetNillableOwnerArtistID(i *int) *HPBlobUpdateOne

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableOwnerMemberID

func (hbuo *HPBlobUpdateOne) SetNillableOwnerMemberID(i *int) *HPBlobUpdateOne

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableSize

func (hbuo *HPBlobUpdateOne) SetNillableSize(i *int64) *HPBlobUpdateOne

SetNillableSize sets the "size" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableStatusErrorCount

func (hbuo *HPBlobUpdateOne) SetNillableStatusErrorCount(i *int) *HPBlobUpdateOne

SetNillableStatusErrorCount sets the "status_error_count" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableStatusMessage

func (hbuo *HPBlobUpdateOne) SetNillableStatusMessage(s *string) *HPBlobUpdateOne

SetNillableStatusMessage sets the "status_message" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableUpdatedAt

func (hbuo *HPBlobUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPBlobUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNillableWidth

func (hbuo *HPBlobUpdateOne) SetNillableWidth(i *int) *HPBlobUpdateOne

SetNillableWidth sets the "width" field if the given value is not nil.

func (*HPBlobUpdateOne) SetNumFaces

func (hbuo *HPBlobUpdateOne) SetNumFaces(i int) *HPBlobUpdateOne

SetNumFaces sets the "num_faces" field.

func (*HPBlobUpdateOne) SetOwnerArtist

func (hbuo *HPBlobUpdateOne) SetOwnerArtist(h *HPArtist) *HPBlobUpdateOne

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPBlobUpdateOne) SetOwnerArtistID

func (hbuo *HPBlobUpdateOne) SetOwnerArtistID(i int) *HPBlobUpdateOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPBlobUpdateOne) SetOwnerMember

func (hbuo *HPBlobUpdateOne) SetOwnerMember(h *HPMember) *HPBlobUpdateOne

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPBlobUpdateOne) SetOwnerMemberID

func (hbuo *HPBlobUpdateOne) SetOwnerMemberID(i int) *HPBlobUpdateOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPBlobUpdateOne) SetSize

func (hbuo *HPBlobUpdateOne) SetSize(i int64) *HPBlobUpdateOne

SetSize sets the "size" field.

func (*HPBlobUpdateOne) SetSourceHTMLURL

func (hbuo *HPBlobUpdateOne) SetSourceHTMLURL(s string) *HPBlobUpdateOne

SetSourceHTMLURL sets the "source_html_url" field.

func (*HPBlobUpdateOne) SetSourceURL

func (hbuo *HPBlobUpdateOne) SetSourceURL(s string) *HPBlobUpdateOne

SetSourceURL sets the "source_url" field.

func (*HPBlobUpdateOne) SetStatus

func (hbuo *HPBlobUpdateOne) SetStatus(ebs enums.HPBlobStatus) *HPBlobUpdateOne

SetStatus sets the "status" field.

func (*HPBlobUpdateOne) SetStatusErrorCount

func (hbuo *HPBlobUpdateOne) SetStatusErrorCount(i int) *HPBlobUpdateOne

SetStatusErrorCount sets the "status_error_count" field.

func (*HPBlobUpdateOne) SetStatusMessage

func (hbuo *HPBlobUpdateOne) SetStatusMessage(s string) *HPBlobUpdateOne

SetStatusMessage sets the "status_message" field.

func (*HPBlobUpdateOne) SetStoragePath

func (hbuo *HPBlobUpdateOne) SetStoragePath(s string) *HPBlobUpdateOne

SetStoragePath sets the "storage_path" field.

func (*HPBlobUpdateOne) SetSubType

func (hbuo *HPBlobUpdateOne) SetSubType(ebst enums.HPBlobSubType) *HPBlobUpdateOne

SetSubType sets the "sub_type" field.

func (*HPBlobUpdateOne) SetThumbnail

func (hbuo *HPBlobUpdateOne) SetThumbnail(jbt *jsonfields.HPBlobThumbnail) *HPBlobUpdateOne

SetThumbnail sets the "thumbnail" field.

func (*HPBlobUpdateOne) SetType

func (hbuo *HPBlobUpdateOne) SetType(ebt enums.HPBlobType) *HPBlobUpdateOne

SetType sets the "type" field.

func (*HPBlobUpdateOne) SetUpdatedAt

func (hbuo *HPBlobUpdateOne) SetUpdatedAt(t time.Time) *HPBlobUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPBlobUpdateOne) SetWidth

func (hbuo *HPBlobUpdateOne) SetWidth(i int) *HPBlobUpdateOne

SetWidth sets the "width" field.

func (*HPBlobUpdateOne) Where

func (hbuo *HPBlobUpdateOne) Where(ps ...predicate.HPBlob) *HPBlobUpdateOne

Where appends a list predicates to the HPBlobUpdate builder.

type HPBlobUpsert

HPBlobUpsert is the "OnConflict" setter.

type HPBlobUpsert struct {
    *sql.UpdateSet
}

func (*HPBlobUpsert) AddDurationSeconds

func (u *HPBlobUpsert) AddDurationSeconds(v float64) *HPBlobUpsert

AddDurationSeconds adds v to the "duration_seconds" field.

func (*HPBlobUpsert) AddHeight

func (u *HPBlobUpsert) AddHeight(v int) *HPBlobUpsert

AddHeight adds v to the "height" field.

func (*HPBlobUpsert) AddNumFaces

func (u *HPBlobUpsert) AddNumFaces(v int) *HPBlobUpsert

AddNumFaces adds v to the "num_faces" field.

func (*HPBlobUpsert) AddSize

func (u *HPBlobUpsert) AddSize(v int64) *HPBlobUpsert

AddSize adds v to the "size" field.

func (*HPBlobUpsert) AddStatusErrorCount

func (u *HPBlobUpsert) AddStatusErrorCount(v int) *HPBlobUpsert

AddStatusErrorCount adds v to the "status_error_count" field.

func (*HPBlobUpsert) AddWidth

func (u *HPBlobUpsert) AddWidth(v int) *HPBlobUpsert

AddWidth adds v to the "width" field.

func (*HPBlobUpsert) ClearDurationSeconds

func (u *HPBlobUpsert) ClearDurationSeconds() *HPBlobUpsert

ClearDurationSeconds clears the value of the "duration_seconds" field.

func (*HPBlobUpsert) ClearFaceRecognitionStatus

func (u *HPBlobUpsert) ClearFaceRecognitionStatus() *HPBlobUpsert

ClearFaceRecognitionStatus clears the value of the "face_recognition_status" field.

func (*HPBlobUpsert) ClearFaces

func (u *HPBlobUpsert) ClearFaces() *HPBlobUpsert

ClearFaces clears the value of the "faces" field.

func (*HPBlobUpsert) ClearHeight

func (u *HPBlobUpsert) ClearHeight() *HPBlobUpsert

ClearHeight clears the value of the "height" field.

func (*HPBlobUpsert) ClearNumFaces

func (u *HPBlobUpsert) ClearNumFaces() *HPBlobUpsert

ClearNumFaces clears the value of the "num_faces" field.

func (*HPBlobUpsert) ClearOwnerArtistID

func (u *HPBlobUpsert) ClearOwnerArtistID() *HPBlobUpsert

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPBlobUpsert) ClearOwnerMemberID

func (u *HPBlobUpsert) ClearOwnerMemberID() *HPBlobUpsert

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPBlobUpsert) ClearSize

func (u *HPBlobUpsert) ClearSize() *HPBlobUpsert

ClearSize clears the value of the "size" field.

func (*HPBlobUpsert) ClearStatusErrorCount

func (u *HPBlobUpsert) ClearStatusErrorCount() *HPBlobUpsert

ClearStatusErrorCount clears the value of the "status_error_count" field.

func (*HPBlobUpsert) ClearStatusMessage

func (u *HPBlobUpsert) ClearStatusMessage() *HPBlobUpsert

ClearStatusMessage clears the value of the "status_message" field.

func (*HPBlobUpsert) ClearThumbnail

func (u *HPBlobUpsert) ClearThumbnail() *HPBlobUpsert

ClearThumbnail clears the value of the "thumbnail" field.

func (*HPBlobUpsert) ClearUpdatedAt

func (u *HPBlobUpsert) ClearUpdatedAt() *HPBlobUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPBlobUpsert) ClearWidth

func (u *HPBlobUpsert) ClearWidth() *HPBlobUpsert

ClearWidth clears the value of the "width" field.

func (*HPBlobUpsert) SetDurationSeconds

func (u *HPBlobUpsert) SetDurationSeconds(v float64) *HPBlobUpsert

SetDurationSeconds sets the "duration_seconds" field.

func (*HPBlobUpsert) SetFaceRecognitionStatus

func (u *HPBlobUpsert) SetFaceRecognitionStatus(v enums.HPBlobFaceRecognitionStatus) *HPBlobUpsert

SetFaceRecognitionStatus sets the "face_recognition_status" field.

func (*HPBlobUpsert) SetFaces

func (u *HPBlobUpsert) SetFaces(v jsonfields.HPBlobImageFace) *HPBlobUpsert

SetFaces sets the "faces" field.

func (*HPBlobUpsert) SetHeight

func (u *HPBlobUpsert) SetHeight(v int) *HPBlobUpsert

SetHeight sets the "height" field.

func (*HPBlobUpsert) SetNumFaces

func (u *HPBlobUpsert) SetNumFaces(v int) *HPBlobUpsert

SetNumFaces sets the "num_faces" field.

func (*HPBlobUpsert) SetOwnerArtistID

func (u *HPBlobUpsert) SetOwnerArtistID(v int) *HPBlobUpsert

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPBlobUpsert) SetOwnerMemberID

func (u *HPBlobUpsert) SetOwnerMemberID(v int) *HPBlobUpsert

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPBlobUpsert) SetSize

func (u *HPBlobUpsert) SetSize(v int64) *HPBlobUpsert

SetSize sets the "size" field.

func (*HPBlobUpsert) SetSourceHTMLURL

func (u *HPBlobUpsert) SetSourceHTMLURL(v string) *HPBlobUpsert

SetSourceHTMLURL sets the "source_html_url" field.

func (*HPBlobUpsert) SetSourceURL

func (u *HPBlobUpsert) SetSourceURL(v string) *HPBlobUpsert

SetSourceURL sets the "source_url" field.

func (*HPBlobUpsert) SetStatus

func (u *HPBlobUpsert) SetStatus(v enums.HPBlobStatus) *HPBlobUpsert

SetStatus sets the "status" field.

func (*HPBlobUpsert) SetStatusErrorCount

func (u *HPBlobUpsert) SetStatusErrorCount(v int) *HPBlobUpsert

SetStatusErrorCount sets the "status_error_count" field.

func (*HPBlobUpsert) SetStatusMessage

func (u *HPBlobUpsert) SetStatusMessage(v string) *HPBlobUpsert

SetStatusMessage sets the "status_message" field.

func (*HPBlobUpsert) SetStoragePath

func (u *HPBlobUpsert) SetStoragePath(v string) *HPBlobUpsert

SetStoragePath sets the "storage_path" field.

func (*HPBlobUpsert) SetSubType

func (u *HPBlobUpsert) SetSubType(v enums.HPBlobSubType) *HPBlobUpsert

SetSubType sets the "sub_type" field.

func (*HPBlobUpsert) SetThumbnail

func (u *HPBlobUpsert) SetThumbnail(v *jsonfields.HPBlobThumbnail) *HPBlobUpsert

SetThumbnail sets the "thumbnail" field.

func (*HPBlobUpsert) SetType

func (u *HPBlobUpsert) SetType(v enums.HPBlobType) *HPBlobUpsert

SetType sets the "type" field.

func (*HPBlobUpsert) SetUpdatedAt

func (u *HPBlobUpsert) SetUpdatedAt(v time.Time) *HPBlobUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPBlobUpsert) SetWidth

func (u *HPBlobUpsert) SetWidth(v int) *HPBlobUpsert

SetWidth sets the "width" field.

func (*HPBlobUpsert) UpdateDurationSeconds

func (u *HPBlobUpsert) UpdateDurationSeconds() *HPBlobUpsert

UpdateDurationSeconds sets the "duration_seconds" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateFaceRecognitionStatus

func (u *HPBlobUpsert) UpdateFaceRecognitionStatus() *HPBlobUpsert

UpdateFaceRecognitionStatus sets the "face_recognition_status" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateFaces

func (u *HPBlobUpsert) UpdateFaces() *HPBlobUpsert

UpdateFaces sets the "faces" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateHeight

func (u *HPBlobUpsert) UpdateHeight() *HPBlobUpsert

UpdateHeight sets the "height" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateNumFaces

func (u *HPBlobUpsert) UpdateNumFaces() *HPBlobUpsert

UpdateNumFaces sets the "num_faces" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateOwnerArtistID

func (u *HPBlobUpsert) UpdateOwnerArtistID() *HPBlobUpsert

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateOwnerMemberID

func (u *HPBlobUpsert) UpdateOwnerMemberID() *HPBlobUpsert

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateSize

func (u *HPBlobUpsert) UpdateSize() *HPBlobUpsert

UpdateSize sets the "size" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateSourceHTMLURL

func (u *HPBlobUpsert) UpdateSourceHTMLURL() *HPBlobUpsert

UpdateSourceHTMLURL sets the "source_html_url" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateSourceURL

func (u *HPBlobUpsert) UpdateSourceURL() *HPBlobUpsert

UpdateSourceURL sets the "source_url" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateStatus

func (u *HPBlobUpsert) UpdateStatus() *HPBlobUpsert

UpdateStatus sets the "status" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateStatusErrorCount

func (u *HPBlobUpsert) UpdateStatusErrorCount() *HPBlobUpsert

UpdateStatusErrorCount sets the "status_error_count" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateStatusMessage

func (u *HPBlobUpsert) UpdateStatusMessage() *HPBlobUpsert

UpdateStatusMessage sets the "status_message" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateStoragePath

func (u *HPBlobUpsert) UpdateStoragePath() *HPBlobUpsert

UpdateStoragePath sets the "storage_path" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateSubType

func (u *HPBlobUpsert) UpdateSubType() *HPBlobUpsert

UpdateSubType sets the "sub_type" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateThumbnail

func (u *HPBlobUpsert) UpdateThumbnail() *HPBlobUpsert

UpdateThumbnail sets the "thumbnail" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateType

func (u *HPBlobUpsert) UpdateType() *HPBlobUpsert

UpdateType sets the "type" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateUpdatedAt

func (u *HPBlobUpsert) UpdateUpdatedAt() *HPBlobUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*HPBlobUpsert) UpdateWidth

func (u *HPBlobUpsert) UpdateWidth() *HPBlobUpsert

UpdateWidth sets the "width" field to the value that was provided on create.

type HPBlobUpsertBulk

HPBlobUpsertBulk is the builder for "upsert"-ing a bulk of HPBlob nodes.

type HPBlobUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPBlobUpsertBulk) AddDurationSeconds

func (u *HPBlobUpsertBulk) AddDurationSeconds(v float64) *HPBlobUpsertBulk

AddDurationSeconds adds v to the "duration_seconds" field.

func (*HPBlobUpsertBulk) AddHeight

func (u *HPBlobUpsertBulk) AddHeight(v int) *HPBlobUpsertBulk

AddHeight adds v to the "height" field.

func (*HPBlobUpsertBulk) AddNumFaces

func (u *HPBlobUpsertBulk) AddNumFaces(v int) *HPBlobUpsertBulk

AddNumFaces adds v to the "num_faces" field.

func (*HPBlobUpsertBulk) AddSize

func (u *HPBlobUpsertBulk) AddSize(v int64) *HPBlobUpsertBulk

AddSize adds v to the "size" field.

func (*HPBlobUpsertBulk) AddStatusErrorCount

func (u *HPBlobUpsertBulk) AddStatusErrorCount(v int) *HPBlobUpsertBulk

AddStatusErrorCount adds v to the "status_error_count" field.

func (*HPBlobUpsertBulk) AddWidth

func (u *HPBlobUpsertBulk) AddWidth(v int) *HPBlobUpsertBulk

AddWidth adds v to the "width" field.

func (*HPBlobUpsertBulk) ClearDurationSeconds

func (u *HPBlobUpsertBulk) ClearDurationSeconds() *HPBlobUpsertBulk

ClearDurationSeconds clears the value of the "duration_seconds" field.

func (*HPBlobUpsertBulk) ClearFaceRecognitionStatus

func (u *HPBlobUpsertBulk) ClearFaceRecognitionStatus() *HPBlobUpsertBulk

ClearFaceRecognitionStatus clears the value of the "face_recognition_status" field.

func (*HPBlobUpsertBulk) ClearFaces

func (u *HPBlobUpsertBulk) ClearFaces() *HPBlobUpsertBulk

ClearFaces clears the value of the "faces" field.

func (*HPBlobUpsertBulk) ClearHeight

func (u *HPBlobUpsertBulk) ClearHeight() *HPBlobUpsertBulk

ClearHeight clears the value of the "height" field.

func (*HPBlobUpsertBulk) ClearNumFaces

func (u *HPBlobUpsertBulk) ClearNumFaces() *HPBlobUpsertBulk

ClearNumFaces clears the value of the "num_faces" field.

func (*HPBlobUpsertBulk) ClearOwnerArtistID

func (u *HPBlobUpsertBulk) ClearOwnerArtistID() *HPBlobUpsertBulk

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPBlobUpsertBulk) ClearOwnerMemberID

func (u *HPBlobUpsertBulk) ClearOwnerMemberID() *HPBlobUpsertBulk

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPBlobUpsertBulk) ClearSize

func (u *HPBlobUpsertBulk) ClearSize() *HPBlobUpsertBulk

ClearSize clears the value of the "size" field.

func (*HPBlobUpsertBulk) ClearStatusErrorCount

func (u *HPBlobUpsertBulk) ClearStatusErrorCount() *HPBlobUpsertBulk

ClearStatusErrorCount clears the value of the "status_error_count" field.

func (*HPBlobUpsertBulk) ClearStatusMessage

func (u *HPBlobUpsertBulk) ClearStatusMessage() *HPBlobUpsertBulk

ClearStatusMessage clears the value of the "status_message" field.

func (*HPBlobUpsertBulk) ClearThumbnail

func (u *HPBlobUpsertBulk) ClearThumbnail() *HPBlobUpsertBulk

ClearThumbnail clears the value of the "thumbnail" field.

func (*HPBlobUpsertBulk) ClearUpdatedAt

func (u *HPBlobUpsertBulk) ClearUpdatedAt() *HPBlobUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPBlobUpsertBulk) ClearWidth

func (u *HPBlobUpsertBulk) ClearWidth() *HPBlobUpsertBulk

ClearWidth clears the value of the "width" field.

func (*HPBlobUpsertBulk) DoNothing

func (u *HPBlobUpsertBulk) DoNothing() *HPBlobUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPBlobUpsertBulk) Exec

func (u *HPBlobUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPBlobUpsertBulk) ExecX

func (u *HPBlobUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobUpsertBulk) Ignore

func (u *HPBlobUpsertBulk) Ignore() *HPBlobUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPBlob.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPBlobUpsertBulk) SetDurationSeconds

func (u *HPBlobUpsertBulk) SetDurationSeconds(v float64) *HPBlobUpsertBulk

SetDurationSeconds sets the "duration_seconds" field.

func (*HPBlobUpsertBulk) SetFaceRecognitionStatus

func (u *HPBlobUpsertBulk) SetFaceRecognitionStatus(v enums.HPBlobFaceRecognitionStatus) *HPBlobUpsertBulk

SetFaceRecognitionStatus sets the "face_recognition_status" field.

func (*HPBlobUpsertBulk) SetFaces

func (u *HPBlobUpsertBulk) SetFaces(v jsonfields.HPBlobImageFace) *HPBlobUpsertBulk

SetFaces sets the "faces" field.

func (*HPBlobUpsertBulk) SetHeight

func (u *HPBlobUpsertBulk) SetHeight(v int) *HPBlobUpsertBulk

SetHeight sets the "height" field.

func (*HPBlobUpsertBulk) SetNumFaces

func (u *HPBlobUpsertBulk) SetNumFaces(v int) *HPBlobUpsertBulk

SetNumFaces sets the "num_faces" field.

func (*HPBlobUpsertBulk) SetOwnerArtistID

func (u *HPBlobUpsertBulk) SetOwnerArtistID(v int) *HPBlobUpsertBulk

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPBlobUpsertBulk) SetOwnerMemberID

func (u *HPBlobUpsertBulk) SetOwnerMemberID(v int) *HPBlobUpsertBulk

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPBlobUpsertBulk) SetSize

func (u *HPBlobUpsertBulk) SetSize(v int64) *HPBlobUpsertBulk

SetSize sets the "size" field.

func (*HPBlobUpsertBulk) SetSourceHTMLURL

func (u *HPBlobUpsertBulk) SetSourceHTMLURL(v string) *HPBlobUpsertBulk

SetSourceHTMLURL sets the "source_html_url" field.

func (*HPBlobUpsertBulk) SetSourceURL

func (u *HPBlobUpsertBulk) SetSourceURL(v string) *HPBlobUpsertBulk

SetSourceURL sets the "source_url" field.

func (*HPBlobUpsertBulk) SetStatus

func (u *HPBlobUpsertBulk) SetStatus(v enums.HPBlobStatus) *HPBlobUpsertBulk

SetStatus sets the "status" field.

func (*HPBlobUpsertBulk) SetStatusErrorCount

func (u *HPBlobUpsertBulk) SetStatusErrorCount(v int) *HPBlobUpsertBulk

SetStatusErrorCount sets the "status_error_count" field.

func (*HPBlobUpsertBulk) SetStatusMessage

func (u *HPBlobUpsertBulk) SetStatusMessage(v string) *HPBlobUpsertBulk

SetStatusMessage sets the "status_message" field.

func (*HPBlobUpsertBulk) SetStoragePath

func (u *HPBlobUpsertBulk) SetStoragePath(v string) *HPBlobUpsertBulk

SetStoragePath sets the "storage_path" field.

func (*HPBlobUpsertBulk) SetSubType

func (u *HPBlobUpsertBulk) SetSubType(v enums.HPBlobSubType) *HPBlobUpsertBulk

SetSubType sets the "sub_type" field.

func (*HPBlobUpsertBulk) SetThumbnail

func (u *HPBlobUpsertBulk) SetThumbnail(v *jsonfields.HPBlobThumbnail) *HPBlobUpsertBulk

SetThumbnail sets the "thumbnail" field.

func (*HPBlobUpsertBulk) SetType

func (u *HPBlobUpsertBulk) SetType(v enums.HPBlobType) *HPBlobUpsertBulk

SetType sets the "type" field.

func (*HPBlobUpsertBulk) SetUpdatedAt

func (u *HPBlobUpsertBulk) SetUpdatedAt(v time.Time) *HPBlobUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPBlobUpsertBulk) SetWidth

func (u *HPBlobUpsertBulk) SetWidth(v int) *HPBlobUpsertBulk

SetWidth sets the "width" field.

func (*HPBlobUpsertBulk) Update

func (u *HPBlobUpsertBulk) Update(set func(*HPBlobUpsert)) *HPBlobUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPBlobCreateBulk.OnConflict documentation for more info.

func (*HPBlobUpsertBulk) UpdateDurationSeconds

func (u *HPBlobUpsertBulk) UpdateDurationSeconds() *HPBlobUpsertBulk

UpdateDurationSeconds sets the "duration_seconds" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateFaceRecognitionStatus

func (u *HPBlobUpsertBulk) UpdateFaceRecognitionStatus() *HPBlobUpsertBulk

UpdateFaceRecognitionStatus sets the "face_recognition_status" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateFaces

func (u *HPBlobUpsertBulk) UpdateFaces() *HPBlobUpsertBulk

UpdateFaces sets the "faces" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateHeight

func (u *HPBlobUpsertBulk) UpdateHeight() *HPBlobUpsertBulk

UpdateHeight sets the "height" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateNewValues

func (u *HPBlobUpsertBulk) UpdateNewValues() *HPBlobUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPBlob.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPBlobUpsertBulk) UpdateNumFaces

func (u *HPBlobUpsertBulk) UpdateNumFaces() *HPBlobUpsertBulk

UpdateNumFaces sets the "num_faces" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateOwnerArtistID

func (u *HPBlobUpsertBulk) UpdateOwnerArtistID() *HPBlobUpsertBulk

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateOwnerMemberID

func (u *HPBlobUpsertBulk) UpdateOwnerMemberID() *HPBlobUpsertBulk

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateSize

func (u *HPBlobUpsertBulk) UpdateSize() *HPBlobUpsertBulk

UpdateSize sets the "size" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateSourceHTMLURL

func (u *HPBlobUpsertBulk) UpdateSourceHTMLURL() *HPBlobUpsertBulk

UpdateSourceHTMLURL sets the "source_html_url" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateSourceURL

func (u *HPBlobUpsertBulk) UpdateSourceURL() *HPBlobUpsertBulk

UpdateSourceURL sets the "source_url" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateStatus

func (u *HPBlobUpsertBulk) UpdateStatus() *HPBlobUpsertBulk

UpdateStatus sets the "status" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateStatusErrorCount

func (u *HPBlobUpsertBulk) UpdateStatusErrorCount() *HPBlobUpsertBulk

UpdateStatusErrorCount sets the "status_error_count" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateStatusMessage

func (u *HPBlobUpsertBulk) UpdateStatusMessage() *HPBlobUpsertBulk

UpdateStatusMessage sets the "status_message" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateStoragePath

func (u *HPBlobUpsertBulk) UpdateStoragePath() *HPBlobUpsertBulk

UpdateStoragePath sets the "storage_path" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateSubType

func (u *HPBlobUpsertBulk) UpdateSubType() *HPBlobUpsertBulk

UpdateSubType sets the "sub_type" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateThumbnail

func (u *HPBlobUpsertBulk) UpdateThumbnail() *HPBlobUpsertBulk

UpdateThumbnail sets the "thumbnail" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateType

func (u *HPBlobUpsertBulk) UpdateType() *HPBlobUpsertBulk

UpdateType sets the "type" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateUpdatedAt

func (u *HPBlobUpsertBulk) UpdateUpdatedAt() *HPBlobUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*HPBlobUpsertBulk) UpdateWidth

func (u *HPBlobUpsertBulk) UpdateWidth() *HPBlobUpsertBulk

UpdateWidth sets the "width" field to the value that was provided on create.

type HPBlobUpsertOne

HPBlobUpsertOne is the builder for "upsert"-ing

one HPBlob node.
type HPBlobUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPBlobUpsertOne) AddDurationSeconds

func (u *HPBlobUpsertOne) AddDurationSeconds(v float64) *HPBlobUpsertOne

AddDurationSeconds adds v to the "duration_seconds" field.

func (*HPBlobUpsertOne) AddHeight

func (u *HPBlobUpsertOne) AddHeight(v int) *HPBlobUpsertOne

AddHeight adds v to the "height" field.

func (*HPBlobUpsertOne) AddNumFaces

func (u *HPBlobUpsertOne) AddNumFaces(v int) *HPBlobUpsertOne

AddNumFaces adds v to the "num_faces" field.

func (*HPBlobUpsertOne) AddSize

func (u *HPBlobUpsertOne) AddSize(v int64) *HPBlobUpsertOne

AddSize adds v to the "size" field.

func (*HPBlobUpsertOne) AddStatusErrorCount

func (u *HPBlobUpsertOne) AddStatusErrorCount(v int) *HPBlobUpsertOne

AddStatusErrorCount adds v to the "status_error_count" field.

func (*HPBlobUpsertOne) AddWidth

func (u *HPBlobUpsertOne) AddWidth(v int) *HPBlobUpsertOne

AddWidth adds v to the "width" field.

func (*HPBlobUpsertOne) ClearDurationSeconds

func (u *HPBlobUpsertOne) ClearDurationSeconds() *HPBlobUpsertOne

ClearDurationSeconds clears the value of the "duration_seconds" field.

func (*HPBlobUpsertOne) ClearFaceRecognitionStatus

func (u *HPBlobUpsertOne) ClearFaceRecognitionStatus() *HPBlobUpsertOne

ClearFaceRecognitionStatus clears the value of the "face_recognition_status" field.

func (*HPBlobUpsertOne) ClearFaces

func (u *HPBlobUpsertOne) ClearFaces() *HPBlobUpsertOne

ClearFaces clears the value of the "faces" field.

func (*HPBlobUpsertOne) ClearHeight

func (u *HPBlobUpsertOne) ClearHeight() *HPBlobUpsertOne

ClearHeight clears the value of the "height" field.

func (*HPBlobUpsertOne) ClearNumFaces

func (u *HPBlobUpsertOne) ClearNumFaces() *HPBlobUpsertOne

ClearNumFaces clears the value of the "num_faces" field.

func (*HPBlobUpsertOne) ClearOwnerArtistID

func (u *HPBlobUpsertOne) ClearOwnerArtistID() *HPBlobUpsertOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPBlobUpsertOne) ClearOwnerMemberID

func (u *HPBlobUpsertOne) ClearOwnerMemberID() *HPBlobUpsertOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPBlobUpsertOne) ClearSize

func (u *HPBlobUpsertOne) ClearSize() *HPBlobUpsertOne

ClearSize clears the value of the "size" field.

func (*HPBlobUpsertOne) ClearStatusErrorCount

func (u *HPBlobUpsertOne) ClearStatusErrorCount() *HPBlobUpsertOne

ClearStatusErrorCount clears the value of the "status_error_count" field.

func (*HPBlobUpsertOne) ClearStatusMessage

func (u *HPBlobUpsertOne) ClearStatusMessage() *HPBlobUpsertOne

ClearStatusMessage clears the value of the "status_message" field.

func (*HPBlobUpsertOne) ClearThumbnail

func (u *HPBlobUpsertOne) ClearThumbnail() *HPBlobUpsertOne

ClearThumbnail clears the value of the "thumbnail" field.

func (*HPBlobUpsertOne) ClearUpdatedAt

func (u *HPBlobUpsertOne) ClearUpdatedAt() *HPBlobUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPBlobUpsertOne) ClearWidth

func (u *HPBlobUpsertOne) ClearWidth() *HPBlobUpsertOne

ClearWidth clears the value of the "width" field.

func (*HPBlobUpsertOne) DoNothing

func (u *HPBlobUpsertOne) DoNothing() *HPBlobUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPBlobUpsertOne) Exec

func (u *HPBlobUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPBlobUpsertOne) ExecX

func (u *HPBlobUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPBlobUpsertOne) ID

func (u *HPBlobUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPBlobUpsertOne) IDX

func (u *HPBlobUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPBlobUpsertOne) Ignore

func (u *HPBlobUpsertOne) Ignore() *HPBlobUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPBlob.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPBlobUpsertOne) SetDurationSeconds

func (u *HPBlobUpsertOne) SetDurationSeconds(v float64) *HPBlobUpsertOne

SetDurationSeconds sets the "duration_seconds" field.

func (*HPBlobUpsertOne) SetFaceRecognitionStatus

func (u *HPBlobUpsertOne) SetFaceRecognitionStatus(v enums.HPBlobFaceRecognitionStatus) *HPBlobUpsertOne

SetFaceRecognitionStatus sets the "face_recognition_status" field.

func (*HPBlobUpsertOne) SetFaces

func (u *HPBlobUpsertOne) SetFaces(v jsonfields.HPBlobImageFace) *HPBlobUpsertOne

SetFaces sets the "faces" field.

func (*HPBlobUpsertOne) SetHeight

func (u *HPBlobUpsertOne) SetHeight(v int) *HPBlobUpsertOne

SetHeight sets the "height" field.

func (*HPBlobUpsertOne) SetNumFaces

func (u *HPBlobUpsertOne) SetNumFaces(v int) *HPBlobUpsertOne

SetNumFaces sets the "num_faces" field.

func (*HPBlobUpsertOne) SetOwnerArtistID

func (u *HPBlobUpsertOne) SetOwnerArtistID(v int) *HPBlobUpsertOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPBlobUpsertOne) SetOwnerMemberID

func (u *HPBlobUpsertOne) SetOwnerMemberID(v int) *HPBlobUpsertOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPBlobUpsertOne) SetSize

func (u *HPBlobUpsertOne) SetSize(v int64) *HPBlobUpsertOne

SetSize sets the "size" field.

func (*HPBlobUpsertOne) SetSourceHTMLURL

func (u *HPBlobUpsertOne) SetSourceHTMLURL(v string) *HPBlobUpsertOne

SetSourceHTMLURL sets the "source_html_url" field.

func (*HPBlobUpsertOne) SetSourceURL

func (u *HPBlobUpsertOne) SetSourceURL(v string) *HPBlobUpsertOne

SetSourceURL sets the "source_url" field.

func (*HPBlobUpsertOne) SetStatus

func (u *HPBlobUpsertOne) SetStatus(v enums.HPBlobStatus) *HPBlobUpsertOne

SetStatus sets the "status" field.

func (*HPBlobUpsertOne) SetStatusErrorCount

func (u *HPBlobUpsertOne) SetStatusErrorCount(v int) *HPBlobUpsertOne

SetStatusErrorCount sets the "status_error_count" field.

func (*HPBlobUpsertOne) SetStatusMessage

func (u *HPBlobUpsertOne) SetStatusMessage(v string) *HPBlobUpsertOne

SetStatusMessage sets the "status_message" field.

func (*HPBlobUpsertOne) SetStoragePath

func (u *HPBlobUpsertOne) SetStoragePath(v string) *HPBlobUpsertOne

SetStoragePath sets the "storage_path" field.

func (*HPBlobUpsertOne) SetSubType

func (u *HPBlobUpsertOne) SetSubType(v enums.HPBlobSubType) *HPBlobUpsertOne

SetSubType sets the "sub_type" field.

func (*HPBlobUpsertOne) SetThumbnail

func (u *HPBlobUpsertOne) SetThumbnail(v *jsonfields.HPBlobThumbnail) *HPBlobUpsertOne

SetThumbnail sets the "thumbnail" field.

func (*HPBlobUpsertOne) SetType

func (u *HPBlobUpsertOne) SetType(v enums.HPBlobType) *HPBlobUpsertOne

SetType sets the "type" field.

func (*HPBlobUpsertOne) SetUpdatedAt

func (u *HPBlobUpsertOne) SetUpdatedAt(v time.Time) *HPBlobUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPBlobUpsertOne) SetWidth

func (u *HPBlobUpsertOne) SetWidth(v int) *HPBlobUpsertOne

SetWidth sets the "width" field.

func (*HPBlobUpsertOne) Update

func (u *HPBlobUpsertOne) Update(set func(*HPBlobUpsert)) *HPBlobUpsertOne

Update allows overriding fields `UPDATE` values. See the HPBlobCreate.OnConflict documentation for more info.

func (*HPBlobUpsertOne) UpdateDurationSeconds

func (u *HPBlobUpsertOne) UpdateDurationSeconds() *HPBlobUpsertOne

UpdateDurationSeconds sets the "duration_seconds" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateFaceRecognitionStatus

func (u *HPBlobUpsertOne) UpdateFaceRecognitionStatus() *HPBlobUpsertOne

UpdateFaceRecognitionStatus sets the "face_recognition_status" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateFaces

func (u *HPBlobUpsertOne) UpdateFaces() *HPBlobUpsertOne

UpdateFaces sets the "faces" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateHeight

func (u *HPBlobUpsertOne) UpdateHeight() *HPBlobUpsertOne

UpdateHeight sets the "height" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateNewValues

func (u *HPBlobUpsertOne) UpdateNewValues() *HPBlobUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPBlob.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPBlobUpsertOne) UpdateNumFaces

func (u *HPBlobUpsertOne) UpdateNumFaces() *HPBlobUpsertOne

UpdateNumFaces sets the "num_faces" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateOwnerArtistID

func (u *HPBlobUpsertOne) UpdateOwnerArtistID() *HPBlobUpsertOne

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateOwnerMemberID

func (u *HPBlobUpsertOne) UpdateOwnerMemberID() *HPBlobUpsertOne

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateSize

func (u *HPBlobUpsertOne) UpdateSize() *HPBlobUpsertOne

UpdateSize sets the "size" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateSourceHTMLURL

func (u *HPBlobUpsertOne) UpdateSourceHTMLURL() *HPBlobUpsertOne

UpdateSourceHTMLURL sets the "source_html_url" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateSourceURL

func (u *HPBlobUpsertOne) UpdateSourceURL() *HPBlobUpsertOne

UpdateSourceURL sets the "source_url" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateStatus

func (u *HPBlobUpsertOne) UpdateStatus() *HPBlobUpsertOne

UpdateStatus sets the "status" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateStatusErrorCount

func (u *HPBlobUpsertOne) UpdateStatusErrorCount() *HPBlobUpsertOne

UpdateStatusErrorCount sets the "status_error_count" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateStatusMessage

func (u *HPBlobUpsertOne) UpdateStatusMessage() *HPBlobUpsertOne

UpdateStatusMessage sets the "status_message" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateStoragePath

func (u *HPBlobUpsertOne) UpdateStoragePath() *HPBlobUpsertOne

UpdateStoragePath sets the "storage_path" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateSubType

func (u *HPBlobUpsertOne) UpdateSubType() *HPBlobUpsertOne

UpdateSubType sets the "sub_type" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateThumbnail

func (u *HPBlobUpsertOne) UpdateThumbnail() *HPBlobUpsertOne

UpdateThumbnail sets the "thumbnail" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateType

func (u *HPBlobUpsertOne) UpdateType() *HPBlobUpsertOne

UpdateType sets the "type" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateUpdatedAt

func (u *HPBlobUpsertOne) UpdateUpdatedAt() *HPBlobUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*HPBlobUpsertOne) UpdateWidth

func (u *HPBlobUpsertOne) UpdateWidth() *HPBlobUpsertOne

UpdateWidth sets the "width" field to the value that was provided on create.

type HPBlobs

HPBlobs is a parsable slice of HPBlob.

type HPBlobs []*HPBlob

type HPElineupMallItem

HPElineupMallItem is the model entity for the HPElineupMallItem schema.

type HPElineupMallItem struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CrawledAt holds the value of the "crawled_at" field.
    CrawledAt *time.Time `json:"crawled_at,omitempty"`
    // ErrorCount holds the value of the "error_count" field.
    ErrorCount int `json:"error_count,omitempty"`
    // ManuallyModified holds the value of the "manually_modified" field.
    ManuallyModified *jsonfields.ManuallyModified `json:"manually_modified,omitempty"`
    // LastErrorMessage holds the value of the "last_error_message" field.
    LastErrorMessage *string `json:"last_error_message,omitempty"`
    // RecrawlRequired holds the value of the "recrawl_required" field.
    RecrawlRequired bool `json:"recrawl_required,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Permalink holds the value of the "permalink" field.
    Permalink string `json:"permalink,omitempty"`
    // Name holds the value of the "name" field.
    Name string `json:"name,omitempty"`
    // Description holds the value of the "description" field.
    Description string `json:"description,omitempty"`
    // Supplier holds the value of the "supplier" field.
    Supplier string `json:"supplier,omitempty"`
    // Price holds the value of the "price" field.
    Price int `json:"price,omitempty"`
    // IsLimitedToFc holds the value of the "is_limited_to_fc" field.
    IsLimitedToFc bool `json:"is_limited_to_fc,omitempty"`
    // IsOutOfStock holds the value of the "is_out_of_stock" field.
    IsOutOfStock bool `json:"is_out_of_stock,omitempty"`
    // Images holds the value of the "images" field.
    Images []jsonfields.Media `json:"images,omitempty"`
    // Category holds the value of the "category" field.
    Category enums.HPElineupMallItemCategory `json:"category,omitempty"`
    // OrderStartAt holds the value of the "order_start_at" field.
    OrderStartAt *time.Time `json:"order_start_at,omitempty"`
    // OrderEndAt holds the value of the "order_end_at" field.
    OrderEndAt *time.Time `json:"order_end_at,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPElineupMallItemQuery when eager-loading is set.
    Edges HPElineupMallItemEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPElineupMallItem) IsNode

func (n *HPElineupMallItem) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPElineupMallItem) NamedTaggedArtists

func (hemi *HPElineupMallItem) NamedTaggedArtists(name string) ([]*HPArtist, error)

NamedTaggedArtists returns the TaggedArtists named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPElineupMallItem) NamedTaggedMembers

func (hemi *HPElineupMallItem) NamedTaggedMembers(name string) ([]*HPMember, error)

NamedTaggedMembers returns the TaggedMembers named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPElineupMallItem) QueryTaggedArtists

func (hemi *HPElineupMallItem) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists queries the "tagged_artists" edge of the HPElineupMallItem entity.

func (*HPElineupMallItem) QueryTaggedMembers

func (hemi *HPElineupMallItem) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers queries the "tagged_members" edge of the HPElineupMallItem entity.

func (*HPElineupMallItem) String

func (hemi *HPElineupMallItem) String() string

String implements the fmt.Stringer.

func (*HPElineupMallItem) TaggedArtists

func (hemi *HPElineupMallItem) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)

func (*HPElineupMallItem) TaggedMembers

func (hemi *HPElineupMallItem) TaggedMembers(ctx context.Context) (result []*HPMember, err error)

func (*HPElineupMallItem) ToEdge

func (hemi *HPElineupMallItem) ToEdge(order *HPElineupMallItemOrder) *HPElineupMallItemEdge

ToEdge converts HPElineupMallItem into HPElineupMallItemEdge.

func (*HPElineupMallItem) Unwrap

func (hemi *HPElineupMallItem) Unwrap() *HPElineupMallItem

Unwrap unwraps the HPElineupMallItem entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPElineupMallItem) Update

func (hemi *HPElineupMallItem) Update() *HPElineupMallItemUpdateOne

Update returns a builder for updating this HPElineupMallItem. Note that you need to call HPElineupMallItem.Unwrap() before calling this method if this HPElineupMallItem was returned from a transaction, and the transaction was committed or rolled back.

func (*HPElineupMallItem) Value

func (hemi *HPElineupMallItem) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPElineupMallItem. This includes values selected through modifiers, order, etc.

type HPElineupMallItemClient

HPElineupMallItemClient is a client for the HPElineupMallItem schema.

type HPElineupMallItemClient struct {
    // contains filtered or unexported fields
}

func NewHPElineupMallItemClient

func NewHPElineupMallItemClient(c config) *HPElineupMallItemClient

NewHPElineupMallItemClient returns a client for the HPElineupMallItem from the given config.

func (*HPElineupMallItemClient) Create

func (c *HPElineupMallItemClient) Create() *HPElineupMallItemCreate

Create returns a builder for creating a HPElineupMallItem entity.

func (*HPElineupMallItemClient) CreateBulk

func (c *HPElineupMallItemClient) CreateBulk(builders ...*HPElineupMallItemCreate) *HPElineupMallItemCreateBulk

CreateBulk returns a builder for creating a bulk of HPElineupMallItem entities.

func (*HPElineupMallItemClient) Delete

func (c *HPElineupMallItemClient) Delete() *HPElineupMallItemDelete

Delete returns a delete builder for HPElineupMallItem.

func (*HPElineupMallItemClient) DeleteOne

func (c *HPElineupMallItemClient) DeleteOne(hemi *HPElineupMallItem) *HPElineupMallItemDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPElineupMallItemClient) DeleteOneID

func (c *HPElineupMallItemClient) DeleteOneID(id int) *HPElineupMallItemDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPElineupMallItemClient) Get

func (c *HPElineupMallItemClient) Get(ctx context.Context, id int) (*HPElineupMallItem, error)

Get returns a HPElineupMallItem entity by its id.

func (*HPElineupMallItemClient) GetX

func (c *HPElineupMallItemClient) GetX(ctx context.Context, id int) *HPElineupMallItem

GetX is like Get, but panics if an error occurs.

func (*HPElineupMallItemClient) Hooks

func (c *HPElineupMallItemClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPElineupMallItemClient) Intercept

func (c *HPElineupMallItemClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpelineupmallitem.Intercept(f(g(h())))`.

func (*HPElineupMallItemClient) Interceptors

func (c *HPElineupMallItemClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPElineupMallItemClient) Query

func (c *HPElineupMallItemClient) Query() *HPElineupMallItemQuery

Query returns a query builder for HPElineupMallItem.

func (*HPElineupMallItemClient) QueryTaggedArtists

func (c *HPElineupMallItemClient) QueryTaggedArtists(hemi *HPElineupMallItem) *HPArtistQuery

QueryTaggedArtists queries the tagged_artists edge of a HPElineupMallItem.

func (*HPElineupMallItemClient) QueryTaggedMembers

func (c *HPElineupMallItemClient) QueryTaggedMembers(hemi *HPElineupMallItem) *HPMemberQuery

QueryTaggedMembers queries the tagged_members edge of a HPElineupMallItem.

func (*HPElineupMallItemClient) Update

func (c *HPElineupMallItemClient) Update() *HPElineupMallItemUpdate

Update returns an update builder for HPElineupMallItem.

func (*HPElineupMallItemClient) UpdateOne

func (c *HPElineupMallItemClient) UpdateOne(hemi *HPElineupMallItem) *HPElineupMallItemUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPElineupMallItemClient) UpdateOneID

func (c *HPElineupMallItemClient) UpdateOneID(id int) *HPElineupMallItemUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPElineupMallItemClient) Use

func (c *HPElineupMallItemClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpelineupmallitem.Hooks(f(g(h())))`.

type HPElineupMallItemConnection

HPElineupMallItemConnection is the connection containing edges to HPElineupMallItem.

type HPElineupMallItemConnection struct {
    Edges      []*HPElineupMallItemEdge `json:"edges"`
    PageInfo   PageInfo                 `json:"pageInfo"`
    TotalCount int                      `json:"totalCount"`
}

type HPElineupMallItemCreate

HPElineupMallItemCreate is the builder for creating a HPElineupMallItem entity.

type HPElineupMallItemCreate struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemCreate) AddTaggedArtistIDs

func (hemic *HPElineupMallItemCreate) AddTaggedArtistIDs(ids ...int) *HPElineupMallItemCreate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPElineupMallItemCreate) AddTaggedArtists

func (hemic *HPElineupMallItemCreate) AddTaggedArtists(h ...*HPArtist) *HPElineupMallItemCreate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPElineupMallItemCreate) AddTaggedMemberIDs

func (hemic *HPElineupMallItemCreate) AddTaggedMemberIDs(ids ...int) *HPElineupMallItemCreate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPElineupMallItemCreate) AddTaggedMembers

func (hemic *HPElineupMallItemCreate) AddTaggedMembers(h ...*HPMember) *HPElineupMallItemCreate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPElineupMallItemCreate) Exec

func (hemic *HPElineupMallItemCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPElineupMallItemCreate) ExecX

func (hemic *HPElineupMallItemCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemCreate) Mutation

func (hemic *HPElineupMallItemCreate) Mutation() *HPElineupMallItemMutation

Mutation returns the HPElineupMallItemMutation object of the builder.

func (*HPElineupMallItemCreate) OnConflict

func (hemic *HPElineupMallItemCreate) OnConflict(opts ...sql.ConflictOption) *HPElineupMallItemUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPElineupMallItem.Create().
	SetCrawledAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPElineupMallItemUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPElineupMallItemCreate) OnConflictColumns

func (hemic *HPElineupMallItemCreate) OnConflictColumns(columns ...string) *HPElineupMallItemUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPElineupMallItem.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPElineupMallItemCreate) Save

func (hemic *HPElineupMallItemCreate) Save(ctx context.Context) (*HPElineupMallItem, error)

Save creates the HPElineupMallItem in the database.

func (*HPElineupMallItemCreate) SaveX

func (hemic *HPElineupMallItemCreate) SaveX(ctx context.Context) *HPElineupMallItem

SaveX calls Save and panics if Save returns an error.

func (*HPElineupMallItemCreate) SetCategory

func (hemic *HPElineupMallItemCreate) SetCategory(eemic enums.HPElineupMallItemCategory) *HPElineupMallItemCreate

SetCategory sets the "category" field.

func (*HPElineupMallItemCreate) SetCrawledAt

func (hemic *HPElineupMallItemCreate) SetCrawledAt(t time.Time) *HPElineupMallItemCreate

SetCrawledAt sets the "crawled_at" field.

func (*HPElineupMallItemCreate) SetCreatedAt

func (hemic *HPElineupMallItemCreate) SetCreatedAt(t time.Time) *HPElineupMallItemCreate

SetCreatedAt sets the "created_at" field.

func (*HPElineupMallItemCreate) SetDescription

func (hemic *HPElineupMallItemCreate) SetDescription(s string) *HPElineupMallItemCreate

SetDescription sets the "description" field.

func (*HPElineupMallItemCreate) SetErrorCount

func (hemic *HPElineupMallItemCreate) SetErrorCount(i int) *HPElineupMallItemCreate

SetErrorCount sets the "error_count" field.

func (*HPElineupMallItemCreate) SetImages

func (hemic *HPElineupMallItemCreate) SetImages(j []jsonfields.Media) *HPElineupMallItemCreate

SetImages sets the "images" field.

func (*HPElineupMallItemCreate) SetIsLimitedToFc

func (hemic *HPElineupMallItemCreate) SetIsLimitedToFc(b bool) *HPElineupMallItemCreate

SetIsLimitedToFc sets the "is_limited_to_fc" field.

func (*HPElineupMallItemCreate) SetIsOutOfStock

func (hemic *HPElineupMallItemCreate) SetIsOutOfStock(b bool) *HPElineupMallItemCreate

SetIsOutOfStock sets the "is_out_of_stock" field.

func (*HPElineupMallItemCreate) SetLastErrorMessage

func (hemic *HPElineupMallItemCreate) SetLastErrorMessage(s string) *HPElineupMallItemCreate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPElineupMallItemCreate) SetManuallyModified

func (hemic *HPElineupMallItemCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPElineupMallItemCreate

SetManuallyModified sets the "manually_modified" field.

func (*HPElineupMallItemCreate) SetName

func (hemic *HPElineupMallItemCreate) SetName(s string) *HPElineupMallItemCreate

SetName sets the "name" field.

func (*HPElineupMallItemCreate) SetNillableCategory

func (hemic *HPElineupMallItemCreate) SetNillableCategory(eemic *enums.HPElineupMallItemCategory) *HPElineupMallItemCreate

SetNillableCategory sets the "category" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableCrawledAt

func (hemic *HPElineupMallItemCreate) SetNillableCrawledAt(t *time.Time) *HPElineupMallItemCreate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableCreatedAt

func (hemic *HPElineupMallItemCreate) SetNillableCreatedAt(t *time.Time) *HPElineupMallItemCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableDescription

func (hemic *HPElineupMallItemCreate) SetNillableDescription(s *string) *HPElineupMallItemCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableErrorCount

func (hemic *HPElineupMallItemCreate) SetNillableErrorCount(i *int) *HPElineupMallItemCreate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableLastErrorMessage

func (hemic *HPElineupMallItemCreate) SetNillableLastErrorMessage(s *string) *HPElineupMallItemCreate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableOrderEndAt

func (hemic *HPElineupMallItemCreate) SetNillableOrderEndAt(t *time.Time) *HPElineupMallItemCreate

SetNillableOrderEndAt sets the "order_end_at" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableOrderStartAt

func (hemic *HPElineupMallItemCreate) SetNillableOrderStartAt(t *time.Time) *HPElineupMallItemCreate

SetNillableOrderStartAt sets the "order_start_at" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableRecrawlRequired

func (hemic *HPElineupMallItemCreate) SetNillableRecrawlRequired(b *bool) *HPElineupMallItemCreate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetNillableUpdatedAt

func (hemic *HPElineupMallItemCreate) SetNillableUpdatedAt(t *time.Time) *HPElineupMallItemCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPElineupMallItemCreate) SetOrderEndAt

func (hemic *HPElineupMallItemCreate) SetOrderEndAt(t time.Time) *HPElineupMallItemCreate

SetOrderEndAt sets the "order_end_at" field.

func (*HPElineupMallItemCreate) SetOrderStartAt

func (hemic *HPElineupMallItemCreate) SetOrderStartAt(t time.Time) *HPElineupMallItemCreate

SetOrderStartAt sets the "order_start_at" field.

func (hemic *HPElineupMallItemCreate) SetPermalink(s string) *HPElineupMallItemCreate

SetPermalink sets the "permalink" field.

func (*HPElineupMallItemCreate) SetPrice

func (hemic *HPElineupMallItemCreate) SetPrice(i int) *HPElineupMallItemCreate

SetPrice sets the "price" field.

func (*HPElineupMallItemCreate) SetRecrawlRequired

func (hemic *HPElineupMallItemCreate) SetRecrawlRequired(b bool) *HPElineupMallItemCreate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPElineupMallItemCreate) SetSupplier

func (hemic *HPElineupMallItemCreate) SetSupplier(s string) *HPElineupMallItemCreate

SetSupplier sets the "supplier" field.

func (*HPElineupMallItemCreate) SetUpdatedAt

func (hemic *HPElineupMallItemCreate) SetUpdatedAt(t time.Time) *HPElineupMallItemCreate

SetUpdatedAt sets the "updated_at" field.

type HPElineupMallItemCreateBulk

HPElineupMallItemCreateBulk is the builder for creating many HPElineupMallItem entities in bulk.

type HPElineupMallItemCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemCreateBulk) Exec

func (hemicb *HPElineupMallItemCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPElineupMallItemCreateBulk) ExecX

func (hemicb *HPElineupMallItemCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemCreateBulk) OnConflict

func (hemicb *HPElineupMallItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPElineupMallItemUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPElineupMallItem.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPElineupMallItemUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPElineupMallItemCreateBulk) OnConflictColumns

func (hemicb *HPElineupMallItemCreateBulk) OnConflictColumns(columns ...string) *HPElineupMallItemUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPElineupMallItem.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPElineupMallItemCreateBulk) Save

func (hemicb *HPElineupMallItemCreateBulk) Save(ctx context.Context) ([]*HPElineupMallItem, error)

Save creates the HPElineupMallItem entities in the database.

func (*HPElineupMallItemCreateBulk) SaveX

func (hemicb *HPElineupMallItemCreateBulk) SaveX(ctx context.Context) []*HPElineupMallItem

SaveX is like Save, but panics if an error occurs.

type HPElineupMallItemDelete

HPElineupMallItemDelete is the builder for deleting a HPElineupMallItem entity.

type HPElineupMallItemDelete struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemDelete) Exec

func (hemid *HPElineupMallItemDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPElineupMallItemDelete) ExecX

func (hemid *HPElineupMallItemDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemDelete) Where

func (hemid *HPElineupMallItemDelete) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemDelete

Where appends a list predicates to the HPElineupMallItemDelete builder.

type HPElineupMallItemDeleteOne

HPElineupMallItemDeleteOne is the builder for deleting a single HPElineupMallItem entity.

type HPElineupMallItemDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemDeleteOne) Exec

func (hemido *HPElineupMallItemDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPElineupMallItemDeleteOne) ExecX

func (hemido *HPElineupMallItemDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemDeleteOne) Where

func (hemido *HPElineupMallItemDeleteOne) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemDeleteOne

Where appends a list predicates to the HPElineupMallItemDelete builder.

type HPElineupMallItemEdge

HPElineupMallItemEdge is the edge representation of HPElineupMallItem.

type HPElineupMallItemEdge struct {
    Node   *HPElineupMallItem `json:"node"`
    Cursor Cursor             `json:"cursor"`
}

type HPElineupMallItemEdges

HPElineupMallItemEdges holds the relations/edges for other nodes in the graph.

type HPElineupMallItemEdges struct {
    // TaggedArtists holds the value of the tagged_artists edge.
    TaggedArtists []*HPArtist `json:"tagged_artists,omitempty"`
    // TaggedMembers holds the value of the tagged_members edge.
    TaggedMembers []*HPMember `json:"tagged_members,omitempty"`
    // contains filtered or unexported fields
}

func (HPElineupMallItemEdges) TaggedArtistsOrErr

func (e HPElineupMallItemEdges) TaggedArtistsOrErr() ([]*HPArtist, error)

TaggedArtistsOrErr returns the TaggedArtists value or an error if the edge was not loaded in eager-loading.

func (HPElineupMallItemEdges) TaggedMembersOrErr

func (e HPElineupMallItemEdges) TaggedMembersOrErr() ([]*HPMember, error)

TaggedMembersOrErr returns the TaggedMembers value or an error if the edge was not loaded in eager-loading.

type HPElineupMallItemFilter

HPElineupMallItemFilter provides a generic filtering capability at runtime for HPElineupMallItemQuery.

type HPElineupMallItemFilter struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemFilter) Where

func (f *HPElineupMallItemFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPElineupMallItemFilter) WhereCategory

func (f *HPElineupMallItemFilter) WhereCategory(p entql.StringP)

WhereCategory applies the entql string predicate on the category field.

func (*HPElineupMallItemFilter) WhereCrawledAt

func (f *HPElineupMallItemFilter) WhereCrawledAt(p entql.TimeP)

WhereCrawledAt applies the entql time.Time predicate on the crawled_at field.

func (*HPElineupMallItemFilter) WhereCreatedAt

func (f *HPElineupMallItemFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPElineupMallItemFilter) WhereDescription

func (f *HPElineupMallItemFilter) WhereDescription(p entql.StringP)

WhereDescription applies the entql string predicate on the description field.

func (*HPElineupMallItemFilter) WhereErrorCount

func (f *HPElineupMallItemFilter) WhereErrorCount(p entql.IntP)

WhereErrorCount applies the entql int predicate on the error_count field.

func (*HPElineupMallItemFilter) WhereHasTaggedArtists

func (f *HPElineupMallItemFilter) WhereHasTaggedArtists()

WhereHasTaggedArtists applies a predicate to check if query has an edge tagged_artists.

func (*HPElineupMallItemFilter) WhereHasTaggedArtistsWith

func (f *HPElineupMallItemFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)

WhereHasTaggedArtistsWith applies a predicate to check if query has an edge tagged_artists with a given conditions (other predicates).

func (*HPElineupMallItemFilter) WhereHasTaggedMembers

func (f *HPElineupMallItemFilter) WhereHasTaggedMembers()

WhereHasTaggedMembers applies a predicate to check if query has an edge tagged_members.

func (*HPElineupMallItemFilter) WhereHasTaggedMembersWith

func (f *HPElineupMallItemFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)

WhereHasTaggedMembersWith applies a predicate to check if query has an edge tagged_members with a given conditions (other predicates).

func (*HPElineupMallItemFilter) WhereID

func (f *HPElineupMallItemFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPElineupMallItemFilter) WhereImages

func (f *HPElineupMallItemFilter) WhereImages(p entql.BytesP)

WhereImages applies the entql json.RawMessage predicate on the images field.

func (*HPElineupMallItemFilter) WhereIsLimitedToFc

func (f *HPElineupMallItemFilter) WhereIsLimitedToFc(p entql.BoolP)

WhereIsLimitedToFc applies the entql bool predicate on the is_limited_to_fc field.

func (*HPElineupMallItemFilter) WhereIsOutOfStock

func (f *HPElineupMallItemFilter) WhereIsOutOfStock(p entql.BoolP)

WhereIsOutOfStock applies the entql bool predicate on the is_out_of_stock field.

func (*HPElineupMallItemFilter) WhereLastErrorMessage

func (f *HPElineupMallItemFilter) WhereLastErrorMessage(p entql.StringP)

WhereLastErrorMessage applies the entql string predicate on the last_error_message field.

func (*HPElineupMallItemFilter) WhereManuallyModified

func (f *HPElineupMallItemFilter) WhereManuallyModified(p entql.BytesP)

WhereManuallyModified applies the entql json.RawMessage predicate on the manually_modified field.

func (*HPElineupMallItemFilter) WhereName

func (f *HPElineupMallItemFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*HPElineupMallItemFilter) WhereOrderEndAt

func (f *HPElineupMallItemFilter) WhereOrderEndAt(p entql.TimeP)

WhereOrderEndAt applies the entql time.Time predicate on the order_end_at field.

func (*HPElineupMallItemFilter) WhereOrderStartAt

func (f *HPElineupMallItemFilter) WhereOrderStartAt(p entql.TimeP)

WhereOrderStartAt applies the entql time.Time predicate on the order_start_at field.

func (f *HPElineupMallItemFilter) WherePermalink(p entql.StringP)

WherePermalink applies the entql string predicate on the permalink field.

func (*HPElineupMallItemFilter) WherePrice

func (f *HPElineupMallItemFilter) WherePrice(p entql.IntP)

WherePrice applies the entql int predicate on the price field.

func (*HPElineupMallItemFilter) WhereRecrawlRequired

func (f *HPElineupMallItemFilter) WhereRecrawlRequired(p entql.BoolP)

WhereRecrawlRequired applies the entql bool predicate on the recrawl_required field.

func (*HPElineupMallItemFilter) WhereSupplier

func (f *HPElineupMallItemFilter) WhereSupplier(p entql.StringP)

WhereSupplier applies the entql string predicate on the supplier field.

func (*HPElineupMallItemFilter) WhereUpdatedAt

func (f *HPElineupMallItemFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPElineupMallItemGroupBy

HPElineupMallItemGroupBy is the group-by builder for HPElineupMallItem entities.

type HPElineupMallItemGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemGroupBy) Aggregate

func (hemigb *HPElineupMallItemGroupBy) Aggregate(fns ...AggregateFunc) *HPElineupMallItemGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPElineupMallItemGroupBy) Bool

func (s *HPElineupMallItemGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) BoolX

func (s *HPElineupMallItemGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) Bools

func (s *HPElineupMallItemGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) BoolsX

func (s *HPElineupMallItemGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) Float64

func (s *HPElineupMallItemGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) Float64X

func (s *HPElineupMallItemGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) Float64s

func (s *HPElineupMallItemGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) Float64sX

func (s *HPElineupMallItemGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) Int

func (s *HPElineupMallItemGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) IntX

func (s *HPElineupMallItemGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) Ints

func (s *HPElineupMallItemGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) IntsX

func (s *HPElineupMallItemGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) Scan

func (hemigb *HPElineupMallItemGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPElineupMallItemGroupBy) ScanX

func (s *HPElineupMallItemGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) String

func (s *HPElineupMallItemGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) StringX

func (s *HPElineupMallItemGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPElineupMallItemGroupBy) Strings

func (s *HPElineupMallItemGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemGroupBy) StringsX

func (s *HPElineupMallItemGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPElineupMallItemMutation

HPElineupMallItemMutation represents an operation that mutates the HPElineupMallItem nodes in the graph.

type HPElineupMallItemMutation struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemMutation) AddErrorCount

func (m *HPElineupMallItemMutation) AddErrorCount(i int)

AddErrorCount adds i to the "error_count" field.

func (*HPElineupMallItemMutation) AddField

func (m *HPElineupMallItemMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPElineupMallItemMutation) AddPrice

func (m *HPElineupMallItemMutation) AddPrice(i int)

AddPrice adds i to the "price" field.

func (*HPElineupMallItemMutation) AddTaggedArtistIDs

func (m *HPElineupMallItemMutation) AddTaggedArtistIDs(ids ...int)

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by ids.

func (*HPElineupMallItemMutation) AddTaggedMemberIDs

func (m *HPElineupMallItemMutation) AddTaggedMemberIDs(ids ...int)

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by ids.

func (*HPElineupMallItemMutation) AddedEdges

func (m *HPElineupMallItemMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPElineupMallItemMutation) AddedErrorCount

func (m *HPElineupMallItemMutation) AddedErrorCount() (r int, exists bool)

AddedErrorCount returns the value that was added to the "error_count" field in this mutation.

func (*HPElineupMallItemMutation) AddedField

func (m *HPElineupMallItemMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPElineupMallItemMutation) AddedFields

func (m *HPElineupMallItemMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPElineupMallItemMutation) AddedIDs

func (m *HPElineupMallItemMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPElineupMallItemMutation) AddedPrice

func (m *HPElineupMallItemMutation) AddedPrice() (r int, exists bool)

AddedPrice returns the value that was added to the "price" field in this mutation.

func (*HPElineupMallItemMutation) AppendImages

func (m *HPElineupMallItemMutation) AppendImages(j []jsonfields.Media)

AppendImages adds j to the "images" field.

func (*HPElineupMallItemMutation) AppendedImages

func (m *HPElineupMallItemMutation) AppendedImages() ([]jsonfields.Media, bool)

AppendedImages returns the list of values that were appended to the "images" field in this mutation.

func (*HPElineupMallItemMutation) Category

func (m *HPElineupMallItemMutation) Category() (r enums.HPElineupMallItemCategory, exists bool)

Category returns the value of the "category" field in the mutation.

func (*HPElineupMallItemMutation) ClearCrawledAt

func (m *HPElineupMallItemMutation) ClearCrawledAt()

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPElineupMallItemMutation) ClearCreatedAt

func (m *HPElineupMallItemMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPElineupMallItemMutation) ClearEdge

func (m *HPElineupMallItemMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPElineupMallItemMutation) ClearField

func (m *HPElineupMallItemMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPElineupMallItemMutation) ClearLastErrorMessage

func (m *HPElineupMallItemMutation) ClearLastErrorMessage()

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPElineupMallItemMutation) ClearManuallyModified

func (m *HPElineupMallItemMutation) ClearManuallyModified()

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPElineupMallItemMutation) ClearOrderEndAt

func (m *HPElineupMallItemMutation) ClearOrderEndAt()

ClearOrderEndAt clears the value of the "order_end_at" field.

func (*HPElineupMallItemMutation) ClearOrderStartAt

func (m *HPElineupMallItemMutation) ClearOrderStartAt()

ClearOrderStartAt clears the value of the "order_start_at" field.

func (*HPElineupMallItemMutation) ClearRecrawlRequired

func (m *HPElineupMallItemMutation) ClearRecrawlRequired()

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPElineupMallItemMutation) ClearTaggedArtists

func (m *HPElineupMallItemMutation) ClearTaggedArtists()

ClearTaggedArtists clears the "tagged_artists" edge to the HPArtist entity.

func (*HPElineupMallItemMutation) ClearTaggedMembers

func (m *HPElineupMallItemMutation) ClearTaggedMembers()

ClearTaggedMembers clears the "tagged_members" edge to the HPMember entity.

func (*HPElineupMallItemMutation) ClearUpdatedAt

func (m *HPElineupMallItemMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPElineupMallItemMutation) ClearedEdges

func (m *HPElineupMallItemMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPElineupMallItemMutation) ClearedFields

func (m *HPElineupMallItemMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPElineupMallItemMutation) Client

func (m HPElineupMallItemMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPElineupMallItemMutation) CrawledAt

func (m *HPElineupMallItemMutation) CrawledAt() (r time.Time, exists bool)

CrawledAt returns the value of the "crawled_at" field in the mutation.

func (*HPElineupMallItemMutation) CrawledAtCleared

func (m *HPElineupMallItemMutation) CrawledAtCleared() bool

CrawledAtCleared returns if the "crawled_at" field was cleared in this mutation.

func (*HPElineupMallItemMutation) CreatedAt

func (m *HPElineupMallItemMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPElineupMallItemMutation) CreatedAtCleared

func (m *HPElineupMallItemMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPElineupMallItemMutation) Description

func (m *HPElineupMallItemMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*HPElineupMallItemMutation) EdgeCleared

func (m *HPElineupMallItemMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPElineupMallItemMutation) ErrorCount

func (m *HPElineupMallItemMutation) ErrorCount() (r int, exists bool)

ErrorCount returns the value of the "error_count" field in the mutation.

func (*HPElineupMallItemMutation) Field

func (m *HPElineupMallItemMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPElineupMallItemMutation) FieldCleared

func (m *HPElineupMallItemMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPElineupMallItemMutation) Fields

func (m *HPElineupMallItemMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPElineupMallItemMutation) Filter

func (m *HPElineupMallItemMutation) Filter() *HPElineupMallItemFilter

Filter returns an entql.Where implementation to apply filters on the HPElineupMallItemMutation builder.

func (*HPElineupMallItemMutation) ID

func (m *HPElineupMallItemMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPElineupMallItemMutation) IDs

func (m *HPElineupMallItemMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPElineupMallItemMutation) Images

func (m *HPElineupMallItemMutation) Images() (r []jsonfields.Media, exists bool)

Images returns the value of the "images" field in the mutation.

func (*HPElineupMallItemMutation) IsLimitedToFc

func (m *HPElineupMallItemMutation) IsLimitedToFc() (r bool, exists bool)

IsLimitedToFc returns the value of the "is_limited_to_fc" field in the mutation.

func (*HPElineupMallItemMutation) IsOutOfStock

func (m *HPElineupMallItemMutation) IsOutOfStock() (r bool, exists bool)

IsOutOfStock returns the value of the "is_out_of_stock" field in the mutation.

func (*HPElineupMallItemMutation) LastErrorMessage

func (m *HPElineupMallItemMutation) LastErrorMessage() (r string, exists bool)

LastErrorMessage returns the value of the "last_error_message" field in the mutation.

func (*HPElineupMallItemMutation) LastErrorMessageCleared

func (m *HPElineupMallItemMutation) LastErrorMessageCleared() bool

LastErrorMessageCleared returns if the "last_error_message" field was cleared in this mutation.

func (*HPElineupMallItemMutation) ManuallyModified

func (m *HPElineupMallItemMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)

ManuallyModified returns the value of the "manually_modified" field in the mutation.

func (*HPElineupMallItemMutation) ManuallyModifiedCleared

func (m *HPElineupMallItemMutation) ManuallyModifiedCleared() bool

ManuallyModifiedCleared returns if the "manually_modified" field was cleared in this mutation.

func (*HPElineupMallItemMutation) Name

func (m *HPElineupMallItemMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*HPElineupMallItemMutation) OldCategory

func (m *HPElineupMallItemMutation) OldCategory(ctx context.Context) (v enums.HPElineupMallItemCategory, err error)

OldCategory returns the old "category" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldCrawledAt

func (m *HPElineupMallItemMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)

OldCrawledAt returns the old "crawled_at" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldCreatedAt

func (m *HPElineupMallItemMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldDescription

func (m *HPElineupMallItemMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldErrorCount

func (m *HPElineupMallItemMutation) OldErrorCount(ctx context.Context) (v int, err error)

OldErrorCount returns the old "error_count" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldField

func (m *HPElineupMallItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPElineupMallItemMutation) OldImages

func (m *HPElineupMallItemMutation) OldImages(ctx context.Context) (v []jsonfields.Media, err error)

OldImages returns the old "images" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldIsLimitedToFc

func (m *HPElineupMallItemMutation) OldIsLimitedToFc(ctx context.Context) (v bool, err error)

OldIsLimitedToFc returns the old "is_limited_to_fc" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldIsOutOfStock

func (m *HPElineupMallItemMutation) OldIsOutOfStock(ctx context.Context) (v bool, err error)

OldIsOutOfStock returns the old "is_out_of_stock" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldLastErrorMessage

func (m *HPElineupMallItemMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)

OldLastErrorMessage returns the old "last_error_message" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldManuallyModified

func (m *HPElineupMallItemMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)

OldManuallyModified returns the old "manually_modified" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldName

func (m *HPElineupMallItemMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldOrderEndAt

func (m *HPElineupMallItemMutation) OldOrderEndAt(ctx context.Context) (v *time.Time, err error)

OldOrderEndAt returns the old "order_end_at" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldOrderStartAt

func (m *HPElineupMallItemMutation) OldOrderStartAt(ctx context.Context) (v *time.Time, err error)

OldOrderStartAt returns the old "order_start_at" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (m *HPElineupMallItemMutation) OldPermalink(ctx context.Context) (v string, err error)

OldPermalink returns the old "permalink" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldPrice

func (m *HPElineupMallItemMutation) OldPrice(ctx context.Context) (v int, err error)

OldPrice returns the old "price" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldRecrawlRequired

func (m *HPElineupMallItemMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)

OldRecrawlRequired returns the old "recrawl_required" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldSupplier

func (m *HPElineupMallItemMutation) OldSupplier(ctx context.Context) (v string, err error)

OldSupplier returns the old "supplier" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) OldUpdatedAt

func (m *HPElineupMallItemMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPElineupMallItem entity. If the HPElineupMallItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPElineupMallItemMutation) Op

func (m *HPElineupMallItemMutation) Op() Op

Op returns the operation name.

func (*HPElineupMallItemMutation) OrderEndAt

func (m *HPElineupMallItemMutation) OrderEndAt() (r time.Time, exists bool)

OrderEndAt returns the value of the "order_end_at" field in the mutation.

func (*HPElineupMallItemMutation) OrderEndAtCleared

func (m *HPElineupMallItemMutation) OrderEndAtCleared() bool

OrderEndAtCleared returns if the "order_end_at" field was cleared in this mutation.

func (*HPElineupMallItemMutation) OrderStartAt

func (m *HPElineupMallItemMutation) OrderStartAt() (r time.Time, exists bool)

OrderStartAt returns the value of the "order_start_at" field in the mutation.

func (*HPElineupMallItemMutation) OrderStartAtCleared

func (m *HPElineupMallItemMutation) OrderStartAtCleared() bool

OrderStartAtCleared returns if the "order_start_at" field was cleared in this mutation.

func (m *HPElineupMallItemMutation) Permalink() (r string, exists bool)

Permalink returns the value of the "permalink" field in the mutation.

func (*HPElineupMallItemMutation) Price

func (m *HPElineupMallItemMutation) Price() (r int, exists bool)

Price returns the value of the "price" field in the mutation.

func (*HPElineupMallItemMutation) RecrawlRequired

func (m *HPElineupMallItemMutation) RecrawlRequired() (r bool, exists bool)

RecrawlRequired returns the value of the "recrawl_required" field in the mutation.

func (*HPElineupMallItemMutation) RecrawlRequiredCleared

func (m *HPElineupMallItemMutation) RecrawlRequiredCleared() bool

RecrawlRequiredCleared returns if the "recrawl_required" field was cleared in this mutation.

func (*HPElineupMallItemMutation) RemoveTaggedArtistIDs

func (m *HPElineupMallItemMutation) RemoveTaggedArtistIDs(ids ...int)

RemoveTaggedArtistIDs removes the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPElineupMallItemMutation) RemoveTaggedMemberIDs

func (m *HPElineupMallItemMutation) RemoveTaggedMemberIDs(ids ...int)

RemoveTaggedMemberIDs removes the "tagged_members" edge to the HPMember entity by IDs.

func (*HPElineupMallItemMutation) RemovedEdges

func (m *HPElineupMallItemMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPElineupMallItemMutation) RemovedIDs

func (m *HPElineupMallItemMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPElineupMallItemMutation) RemovedTaggedArtistsIDs

func (m *HPElineupMallItemMutation) RemovedTaggedArtistsIDs() (ids []int)

RemovedTaggedArtists returns the removed IDs of the "tagged_artists" edge to the HPArtist entity.

func (*HPElineupMallItemMutation) RemovedTaggedMembersIDs

func (m *HPElineupMallItemMutation) RemovedTaggedMembersIDs() (ids []int)

RemovedTaggedMembers returns the removed IDs of the "tagged_members" edge to the HPMember entity.

func (*HPElineupMallItemMutation) ResetCategory

func (m *HPElineupMallItemMutation) ResetCategory()

ResetCategory resets all changes to the "category" field.

func (*HPElineupMallItemMutation) ResetCrawledAt

func (m *HPElineupMallItemMutation) ResetCrawledAt()

ResetCrawledAt resets all changes to the "crawled_at" field.

func (*HPElineupMallItemMutation) ResetCreatedAt

func (m *HPElineupMallItemMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPElineupMallItemMutation) ResetDescription

func (m *HPElineupMallItemMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*HPElineupMallItemMutation) ResetEdge

func (m *HPElineupMallItemMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPElineupMallItemMutation) ResetErrorCount

func (m *HPElineupMallItemMutation) ResetErrorCount()

ResetErrorCount resets all changes to the "error_count" field.

func (*HPElineupMallItemMutation) ResetField

func (m *HPElineupMallItemMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPElineupMallItemMutation) ResetImages

func (m *HPElineupMallItemMutation) ResetImages()

ResetImages resets all changes to the "images" field.

func (*HPElineupMallItemMutation) ResetIsLimitedToFc

func (m *HPElineupMallItemMutation) ResetIsLimitedToFc()

ResetIsLimitedToFc resets all changes to the "is_limited_to_fc" field.

func (*HPElineupMallItemMutation) ResetIsOutOfStock

func (m *HPElineupMallItemMutation) ResetIsOutOfStock()

ResetIsOutOfStock resets all changes to the "is_out_of_stock" field.

func (*HPElineupMallItemMutation) ResetLastErrorMessage

func (m *HPElineupMallItemMutation) ResetLastErrorMessage()

ResetLastErrorMessage resets all changes to the "last_error_message" field.

func (*HPElineupMallItemMutation) ResetManuallyModified

func (m *HPElineupMallItemMutation) ResetManuallyModified()

ResetManuallyModified resets all changes to the "manually_modified" field.

func (*HPElineupMallItemMutation) ResetName

func (m *HPElineupMallItemMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*HPElineupMallItemMutation) ResetOrderEndAt

func (m *HPElineupMallItemMutation) ResetOrderEndAt()

ResetOrderEndAt resets all changes to the "order_end_at" field.

func (*HPElineupMallItemMutation) ResetOrderStartAt

func (m *HPElineupMallItemMutation) ResetOrderStartAt()

ResetOrderStartAt resets all changes to the "order_start_at" field.

func (m *HPElineupMallItemMutation) ResetPermalink()

ResetPermalink resets all changes to the "permalink" field.

func (*HPElineupMallItemMutation) ResetPrice

func (m *HPElineupMallItemMutation) ResetPrice()

ResetPrice resets all changes to the "price" field.

func (*HPElineupMallItemMutation) ResetRecrawlRequired

func (m *HPElineupMallItemMutation) ResetRecrawlRequired()

ResetRecrawlRequired resets all changes to the "recrawl_required" field.

func (*HPElineupMallItemMutation) ResetSupplier

func (m *HPElineupMallItemMutation) ResetSupplier()

ResetSupplier resets all changes to the "supplier" field.

func (*HPElineupMallItemMutation) ResetTaggedArtists

func (m *HPElineupMallItemMutation) ResetTaggedArtists()

ResetTaggedArtists resets all changes to the "tagged_artists" edge.

func (*HPElineupMallItemMutation) ResetTaggedMembers

func (m *HPElineupMallItemMutation) ResetTaggedMembers()

ResetTaggedMembers resets all changes to the "tagged_members" edge.

func (*HPElineupMallItemMutation) ResetUpdatedAt

func (m *HPElineupMallItemMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPElineupMallItemMutation) SetCategory

func (m *HPElineupMallItemMutation) SetCategory(eemic enums.HPElineupMallItemCategory)

SetCategory sets the "category" field.

func (*HPElineupMallItemMutation) SetCrawledAt

func (m *HPElineupMallItemMutation) SetCrawledAt(t time.Time)

SetCrawledAt sets the "crawled_at" field.

func (*HPElineupMallItemMutation) SetCreatedAt

func (m *HPElineupMallItemMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPElineupMallItemMutation) SetDescription

func (m *HPElineupMallItemMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*HPElineupMallItemMutation) SetErrorCount

func (m *HPElineupMallItemMutation) SetErrorCount(i int)

SetErrorCount sets the "error_count" field.

func (*HPElineupMallItemMutation) SetField

func (m *HPElineupMallItemMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPElineupMallItemMutation) SetImages

func (m *HPElineupMallItemMutation) SetImages(j []jsonfields.Media)

SetImages sets the "images" field.

func (*HPElineupMallItemMutation) SetIsLimitedToFc

func (m *HPElineupMallItemMutation) SetIsLimitedToFc(b bool)

SetIsLimitedToFc sets the "is_limited_to_fc" field.

func (*HPElineupMallItemMutation) SetIsOutOfStock

func (m *HPElineupMallItemMutation) SetIsOutOfStock(b bool)

SetIsOutOfStock sets the "is_out_of_stock" field.

func (*HPElineupMallItemMutation) SetLastErrorMessage

func (m *HPElineupMallItemMutation) SetLastErrorMessage(s string)

SetLastErrorMessage sets the "last_error_message" field.

func (*HPElineupMallItemMutation) SetManuallyModified

func (m *HPElineupMallItemMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)

SetManuallyModified sets the "manually_modified" field.

func (*HPElineupMallItemMutation) SetName

func (m *HPElineupMallItemMutation) SetName(s string)

SetName sets the "name" field.

func (*HPElineupMallItemMutation) SetOp

func (m *HPElineupMallItemMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPElineupMallItemMutation) SetOrderEndAt

func (m *HPElineupMallItemMutation) SetOrderEndAt(t time.Time)

SetOrderEndAt sets the "order_end_at" field.

func (*HPElineupMallItemMutation) SetOrderStartAt

func (m *HPElineupMallItemMutation) SetOrderStartAt(t time.Time)

SetOrderStartAt sets the "order_start_at" field.

func (m *HPElineupMallItemMutation) SetPermalink(s string)

SetPermalink sets the "permalink" field.

func (*HPElineupMallItemMutation) SetPrice

func (m *HPElineupMallItemMutation) SetPrice(i int)

SetPrice sets the "price" field.

func (*HPElineupMallItemMutation) SetRecrawlRequired

func (m *HPElineupMallItemMutation) SetRecrawlRequired(b bool)

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPElineupMallItemMutation) SetSupplier

func (m *HPElineupMallItemMutation) SetSupplier(s string)

SetSupplier sets the "supplier" field.

func (*HPElineupMallItemMutation) SetUpdatedAt

func (m *HPElineupMallItemMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPElineupMallItemMutation) Supplier

func (m *HPElineupMallItemMutation) Supplier() (r string, exists bool)

Supplier returns the value of the "supplier" field in the mutation.

func (*HPElineupMallItemMutation) TaggedArtistsCleared

func (m *HPElineupMallItemMutation) TaggedArtistsCleared() bool

TaggedArtistsCleared reports if the "tagged_artists" edge to the HPArtist entity was cleared.

func (*HPElineupMallItemMutation) TaggedArtistsIDs

func (m *HPElineupMallItemMutation) TaggedArtistsIDs() (ids []int)

TaggedArtistsIDs returns the "tagged_artists" edge IDs in the mutation.

func (*HPElineupMallItemMutation) TaggedMembersCleared

func (m *HPElineupMallItemMutation) TaggedMembersCleared() bool

TaggedMembersCleared reports if the "tagged_members" edge to the HPMember entity was cleared.

func (*HPElineupMallItemMutation) TaggedMembersIDs

func (m *HPElineupMallItemMutation) TaggedMembersIDs() (ids []int)

TaggedMembersIDs returns the "tagged_members" edge IDs in the mutation.

func (HPElineupMallItemMutation) Tx

func (m HPElineupMallItemMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPElineupMallItemMutation) Type

func (m *HPElineupMallItemMutation) Type() string

Type returns the node type of this mutation (HPElineupMallItem).

func (*HPElineupMallItemMutation) UpdatedAt

func (m *HPElineupMallItemMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPElineupMallItemMutation) UpdatedAtCleared

func (m *HPElineupMallItemMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPElineupMallItemMutation) Where

func (m *HPElineupMallItemMutation) Where(ps ...predicate.HPElineupMallItem)

Where appends a list predicates to the HPElineupMallItemMutation builder.

func (*HPElineupMallItemMutation) WhereP

func (m *HPElineupMallItemMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPElineupMallItemMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPElineupMallItemOrder

HPElineupMallItemOrder defines the ordering of HPElineupMallItem.

type HPElineupMallItemOrder struct {
    Direction OrderDirection               `json:"direction"`
    Field     *HPElineupMallItemOrderField `json:"field"`
}

type HPElineupMallItemOrderField

HPElineupMallItemOrderField defines the ordering field of HPElineupMallItem.

type HPElineupMallItemOrderField struct {
    // contains filtered or unexported fields
}

type HPElineupMallItemPaginateOption

HPElineupMallItemPaginateOption enables pagination customization.

type HPElineupMallItemPaginateOption func(*hpelineupmallitemPager) error

func WithHPElineupMallItemFilter

func WithHPElineupMallItemFilter(filter func(*HPElineupMallItemQuery) (*HPElineupMallItemQuery, error)) HPElineupMallItemPaginateOption

WithHPElineupMallItemFilter configures pagination filter.

func WithHPElineupMallItemOrder

func WithHPElineupMallItemOrder(order *HPElineupMallItemOrder) HPElineupMallItemPaginateOption

WithHPElineupMallItemOrder configures pagination ordering.

type HPElineupMallItemQuery

HPElineupMallItemQuery is the builder for querying HPElineupMallItem entities.

type HPElineupMallItemQuery struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemQuery) Aggregate

func (hemiq *HPElineupMallItemQuery) Aggregate(fns ...AggregateFunc) *HPElineupMallItemSelect

Aggregate returns a HPElineupMallItemSelect configured with the given aggregations.

func (*HPElineupMallItemQuery) All

func (hemiq *HPElineupMallItemQuery) All(ctx context.Context) ([]*HPElineupMallItem, error)

All executes the query and returns a list of HPElineupMallItems.

func (*HPElineupMallItemQuery) AllX

func (hemiq *HPElineupMallItemQuery) AllX(ctx context.Context) []*HPElineupMallItem

AllX is like All, but panics if an error occurs.

func (*HPElineupMallItemQuery) Clone

func (hemiq *HPElineupMallItemQuery) Clone() *HPElineupMallItemQuery

Clone returns a duplicate of the HPElineupMallItemQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPElineupMallItemQuery) CollectFields

func (hemi *HPElineupMallItemQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPElineupMallItemQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPElineupMallItemQuery) Count

func (hemiq *HPElineupMallItemQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPElineupMallItemQuery) CountX

func (hemiq *HPElineupMallItemQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPElineupMallItemQuery) Exist

func (hemiq *HPElineupMallItemQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPElineupMallItemQuery) ExistX

func (hemiq *HPElineupMallItemQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPElineupMallItemQuery) Filter

func (hemiq *HPElineupMallItemQuery) Filter() *HPElineupMallItemFilter

Filter returns a Filter implementation to apply filters on the HPElineupMallItemQuery builder.

func (*HPElineupMallItemQuery) First

func (hemiq *HPElineupMallItemQuery) First(ctx context.Context) (*HPElineupMallItem, error)

First returns the first HPElineupMallItem entity from the query. Returns a *NotFoundError when no HPElineupMallItem was found.

func (*HPElineupMallItemQuery) FirstID

func (hemiq *HPElineupMallItemQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPElineupMallItem ID from the query. Returns a *NotFoundError when no HPElineupMallItem ID was found.

func (*HPElineupMallItemQuery) FirstIDX

func (hemiq *HPElineupMallItemQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPElineupMallItemQuery) FirstX

func (hemiq *HPElineupMallItemQuery) FirstX(ctx context.Context) *HPElineupMallItem

FirstX is like First, but panics if an error occurs.

func (*HPElineupMallItemQuery) GroupBy

func (hemiq *HPElineupMallItemQuery) GroupBy(field string, fields ...string) *HPElineupMallItemGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPElineupMallItem.Query().
	GroupBy(hpelineupmallitem.FieldCrawledAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPElineupMallItemQuery) IDs

func (hemiq *HPElineupMallItemQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPElineupMallItem IDs.

func (*HPElineupMallItemQuery) IDsX

func (hemiq *HPElineupMallItemQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPElineupMallItemQuery) Limit

func (hemiq *HPElineupMallItemQuery) Limit(limit int) *HPElineupMallItemQuery

Limit the number of records to be returned by this query.

func (*HPElineupMallItemQuery) Offset

func (hemiq *HPElineupMallItemQuery) Offset(offset int) *HPElineupMallItemQuery

Offset to start from.

func (*HPElineupMallItemQuery) Only

func (hemiq *HPElineupMallItemQuery) Only(ctx context.Context) (*HPElineupMallItem, error)

Only returns a single HPElineupMallItem entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPElineupMallItem entity is found. Returns a *NotFoundError when no HPElineupMallItem entities are found.

func (*HPElineupMallItemQuery) OnlyID

func (hemiq *HPElineupMallItemQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPElineupMallItem ID in the query. Returns a *NotSingularError when more than one HPElineupMallItem ID is found. Returns a *NotFoundError when no entities are found.

func (*HPElineupMallItemQuery) OnlyIDX

func (hemiq *HPElineupMallItemQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPElineupMallItemQuery) OnlyX

func (hemiq *HPElineupMallItemQuery) OnlyX(ctx context.Context) *HPElineupMallItem

OnlyX is like Only, but panics if an error occurs.

func (*HPElineupMallItemQuery) Order

func (hemiq *HPElineupMallItemQuery) Order(o ...hpelineupmallitem.Order) *HPElineupMallItemQuery

Order specifies how the records should be ordered.

func (*HPElineupMallItemQuery) Paginate

func (hemi *HPElineupMallItemQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPElineupMallItemPaginateOption,
) (*HPElineupMallItemConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPElineupMallItem.

func (*HPElineupMallItemQuery) QueryTaggedArtists

func (hemiq *HPElineupMallItemQuery) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists chains the current query on the "tagged_artists" edge.

func (*HPElineupMallItemQuery) QueryTaggedMembers

func (hemiq *HPElineupMallItemQuery) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers chains the current query on the "tagged_members" edge.

func (*HPElineupMallItemQuery) Select

func (hemiq *HPElineupMallItemQuery) Select(fields ...string) *HPElineupMallItemSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
}

client.HPElineupMallItem.Query().
	Select(hpelineupmallitem.FieldCrawledAt).
	Scan(ctx, &v)

func (*HPElineupMallItemQuery) Unique

func (hemiq *HPElineupMallItemQuery) Unique(unique bool) *HPElineupMallItemQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPElineupMallItemQuery) Where

func (hemiq *HPElineupMallItemQuery) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemQuery

Where adds a new predicate for the HPElineupMallItemQuery builder.

func (*HPElineupMallItemQuery) WithNamedTaggedArtists

func (hemiq *HPElineupMallItemQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPElineupMallItemQuery

WithNamedTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPElineupMallItemQuery) WithNamedTaggedMembers

func (hemiq *HPElineupMallItemQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPElineupMallItemQuery

WithNamedTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPElineupMallItemQuery) WithTaggedArtists

func (hemiq *HPElineupMallItemQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPElineupMallItemQuery

WithTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPElineupMallItemQuery) WithTaggedMembers

func (hemiq *HPElineupMallItemQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPElineupMallItemQuery

WithTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge. The optional arguments are used to configure the query builder of the edge.

type HPElineupMallItemSelect

HPElineupMallItemSelect is the builder for selecting fields of HPElineupMallItem entities.

type HPElineupMallItemSelect struct {
    *HPElineupMallItemQuery
    // contains filtered or unexported fields
}

func (*HPElineupMallItemSelect) Aggregate

func (hemis *HPElineupMallItemSelect) Aggregate(fns ...AggregateFunc) *HPElineupMallItemSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPElineupMallItemSelect) Bool

func (s *HPElineupMallItemSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) BoolX

func (s *HPElineupMallItemSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPElineupMallItemSelect) Bools

func (s *HPElineupMallItemSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) BoolsX

func (s *HPElineupMallItemSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPElineupMallItemSelect) Float64

func (s *HPElineupMallItemSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) Float64X

func (s *HPElineupMallItemSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPElineupMallItemSelect) Float64s

func (s *HPElineupMallItemSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) Float64sX

func (s *HPElineupMallItemSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPElineupMallItemSelect) Int

func (s *HPElineupMallItemSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) IntX

func (s *HPElineupMallItemSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPElineupMallItemSelect) Ints

func (s *HPElineupMallItemSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) IntsX

func (s *HPElineupMallItemSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPElineupMallItemSelect) Scan

func (hemis *HPElineupMallItemSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPElineupMallItemSelect) ScanX

func (s *HPElineupMallItemSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPElineupMallItemSelect) String

func (s *HPElineupMallItemSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) StringX

func (s *HPElineupMallItemSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPElineupMallItemSelect) Strings

func (s *HPElineupMallItemSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPElineupMallItemSelect) StringsX

func (s *HPElineupMallItemSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPElineupMallItemUpdate

HPElineupMallItemUpdate is the builder for updating HPElineupMallItem entities.

type HPElineupMallItemUpdate struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemUpdate) AddErrorCount

func (hemiu *HPElineupMallItemUpdate) AddErrorCount(i int) *HPElineupMallItemUpdate

AddErrorCount adds i to the "error_count" field.

func (*HPElineupMallItemUpdate) AddPrice

func (hemiu *HPElineupMallItemUpdate) AddPrice(i int) *HPElineupMallItemUpdate

AddPrice adds i to the "price" field.

func (*HPElineupMallItemUpdate) AddTaggedArtistIDs

func (hemiu *HPElineupMallItemUpdate) AddTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPElineupMallItemUpdate) AddTaggedArtists

func (hemiu *HPElineupMallItemUpdate) AddTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPElineupMallItemUpdate) AddTaggedMemberIDs

func (hemiu *HPElineupMallItemUpdate) AddTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPElineupMallItemUpdate) AddTaggedMembers

func (hemiu *HPElineupMallItemUpdate) AddTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPElineupMallItemUpdate) AppendImages

func (hemiu *HPElineupMallItemUpdate) AppendImages(j []jsonfields.Media) *HPElineupMallItemUpdate

AppendImages appends j to the "images" field.

func (*HPElineupMallItemUpdate) ClearCrawledAt

func (hemiu *HPElineupMallItemUpdate) ClearCrawledAt() *HPElineupMallItemUpdate

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPElineupMallItemUpdate) ClearLastErrorMessage

func (hemiu *HPElineupMallItemUpdate) ClearLastErrorMessage() *HPElineupMallItemUpdate

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPElineupMallItemUpdate) ClearManuallyModified

func (hemiu *HPElineupMallItemUpdate) ClearManuallyModified() *HPElineupMallItemUpdate

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPElineupMallItemUpdate) ClearOrderEndAt

func (hemiu *HPElineupMallItemUpdate) ClearOrderEndAt() *HPElineupMallItemUpdate

ClearOrderEndAt clears the value of the "order_end_at" field.

func (*HPElineupMallItemUpdate) ClearOrderStartAt

func (hemiu *HPElineupMallItemUpdate) ClearOrderStartAt() *HPElineupMallItemUpdate

ClearOrderStartAt clears the value of the "order_start_at" field.

func (*HPElineupMallItemUpdate) ClearRecrawlRequired

func (hemiu *HPElineupMallItemUpdate) ClearRecrawlRequired() *HPElineupMallItemUpdate

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPElineupMallItemUpdate) ClearTaggedArtists

func (hemiu *HPElineupMallItemUpdate) ClearTaggedArtists() *HPElineupMallItemUpdate

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPElineupMallItemUpdate) ClearTaggedMembers

func (hemiu *HPElineupMallItemUpdate) ClearTaggedMembers() *HPElineupMallItemUpdate

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPElineupMallItemUpdate) ClearUpdatedAt

func (hemiu *HPElineupMallItemUpdate) ClearUpdatedAt() *HPElineupMallItemUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPElineupMallItemUpdate) Exec

func (hemiu *HPElineupMallItemUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPElineupMallItemUpdate) ExecX

func (hemiu *HPElineupMallItemUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemUpdate) Mutation

func (hemiu *HPElineupMallItemUpdate) Mutation() *HPElineupMallItemMutation

Mutation returns the HPElineupMallItemMutation object of the builder.

func (*HPElineupMallItemUpdate) RemoveTaggedArtistIDs

func (hemiu *HPElineupMallItemUpdate) RemoveTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdate

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPElineupMallItemUpdate) RemoveTaggedArtists

func (hemiu *HPElineupMallItemUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdate

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPElineupMallItemUpdate) RemoveTaggedMemberIDs

func (hemiu *HPElineupMallItemUpdate) RemoveTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdate

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPElineupMallItemUpdate) RemoveTaggedMembers

func (hemiu *HPElineupMallItemUpdate) RemoveTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdate

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPElineupMallItemUpdate) Save

func (hemiu *HPElineupMallItemUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPElineupMallItemUpdate) SaveX

func (hemiu *HPElineupMallItemUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPElineupMallItemUpdate) SetCategory

func (hemiu *HPElineupMallItemUpdate) SetCategory(eemic enums.HPElineupMallItemCategory) *HPElineupMallItemUpdate

SetCategory sets the "category" field.

func (*HPElineupMallItemUpdate) SetCrawledAt

func (hemiu *HPElineupMallItemUpdate) SetCrawledAt(t time.Time) *HPElineupMallItemUpdate

SetCrawledAt sets the "crawled_at" field.

func (*HPElineupMallItemUpdate) SetDescription

func (hemiu *HPElineupMallItemUpdate) SetDescription(s string) *HPElineupMallItemUpdate

SetDescription sets the "description" field.

func (*HPElineupMallItemUpdate) SetErrorCount

func (hemiu *HPElineupMallItemUpdate) SetErrorCount(i int) *HPElineupMallItemUpdate

SetErrorCount sets the "error_count" field.

func (*HPElineupMallItemUpdate) SetImages

func (hemiu *HPElineupMallItemUpdate) SetImages(j []jsonfields.Media) *HPElineupMallItemUpdate

SetImages sets the "images" field.

func (*HPElineupMallItemUpdate) SetIsLimitedToFc

func (hemiu *HPElineupMallItemUpdate) SetIsLimitedToFc(b bool) *HPElineupMallItemUpdate

SetIsLimitedToFc sets the "is_limited_to_fc" field.

func (*HPElineupMallItemUpdate) SetIsOutOfStock

func (hemiu *HPElineupMallItemUpdate) SetIsOutOfStock(b bool) *HPElineupMallItemUpdate

SetIsOutOfStock sets the "is_out_of_stock" field.

func (*HPElineupMallItemUpdate) SetLastErrorMessage

func (hemiu *HPElineupMallItemUpdate) SetLastErrorMessage(s string) *HPElineupMallItemUpdate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPElineupMallItemUpdate) SetManuallyModified

func (hemiu *HPElineupMallItemUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPElineupMallItemUpdate

SetManuallyModified sets the "manually_modified" field.

func (*HPElineupMallItemUpdate) SetName

func (hemiu *HPElineupMallItemUpdate) SetName(s string) *HPElineupMallItemUpdate

SetName sets the "name" field.

func (*HPElineupMallItemUpdate) SetNillableCategory

func (hemiu *HPElineupMallItemUpdate) SetNillableCategory(eemic *enums.HPElineupMallItemCategory) *HPElineupMallItemUpdate

SetNillableCategory sets the "category" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableCrawledAt

func (hemiu *HPElineupMallItemUpdate) SetNillableCrawledAt(t *time.Time) *HPElineupMallItemUpdate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableDescription

func (hemiu *HPElineupMallItemUpdate) SetNillableDescription(s *string) *HPElineupMallItemUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableErrorCount

func (hemiu *HPElineupMallItemUpdate) SetNillableErrorCount(i *int) *HPElineupMallItemUpdate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableLastErrorMessage

func (hemiu *HPElineupMallItemUpdate) SetNillableLastErrorMessage(s *string) *HPElineupMallItemUpdate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableOrderEndAt

func (hemiu *HPElineupMallItemUpdate) SetNillableOrderEndAt(t *time.Time) *HPElineupMallItemUpdate

SetNillableOrderEndAt sets the "order_end_at" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableOrderStartAt

func (hemiu *HPElineupMallItemUpdate) SetNillableOrderStartAt(t *time.Time) *HPElineupMallItemUpdate

SetNillableOrderStartAt sets the "order_start_at" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableRecrawlRequired

func (hemiu *HPElineupMallItemUpdate) SetNillableRecrawlRequired(b *bool) *HPElineupMallItemUpdate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetNillableUpdatedAt

func (hemiu *HPElineupMallItemUpdate) SetNillableUpdatedAt(t *time.Time) *HPElineupMallItemUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPElineupMallItemUpdate) SetOrderEndAt

func (hemiu *HPElineupMallItemUpdate) SetOrderEndAt(t time.Time) *HPElineupMallItemUpdate

SetOrderEndAt sets the "order_end_at" field.

func (*HPElineupMallItemUpdate) SetOrderStartAt

func (hemiu *HPElineupMallItemUpdate) SetOrderStartAt(t time.Time) *HPElineupMallItemUpdate

SetOrderStartAt sets the "order_start_at" field.

func (hemiu *HPElineupMallItemUpdate) SetPermalink(s string) *HPElineupMallItemUpdate

SetPermalink sets the "permalink" field.

func (*HPElineupMallItemUpdate) SetPrice

func (hemiu *HPElineupMallItemUpdate) SetPrice(i int) *HPElineupMallItemUpdate

SetPrice sets the "price" field.

func (*HPElineupMallItemUpdate) SetRecrawlRequired

func (hemiu *HPElineupMallItemUpdate) SetRecrawlRequired(b bool) *HPElineupMallItemUpdate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPElineupMallItemUpdate) SetSupplier

func (hemiu *HPElineupMallItemUpdate) SetSupplier(s string) *HPElineupMallItemUpdate

SetSupplier sets the "supplier" field.

func (*HPElineupMallItemUpdate) SetUpdatedAt

func (hemiu *HPElineupMallItemUpdate) SetUpdatedAt(t time.Time) *HPElineupMallItemUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPElineupMallItemUpdate) Where

func (hemiu *HPElineupMallItemUpdate) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemUpdate

Where appends a list predicates to the HPElineupMallItemUpdate builder.

type HPElineupMallItemUpdateOne

HPElineupMallItemUpdateOne is the builder for updating a single HPElineupMallItem entity.

type HPElineupMallItemUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemUpdateOne) AddErrorCount

func (hemiuo *HPElineupMallItemUpdateOne) AddErrorCount(i int) *HPElineupMallItemUpdateOne

AddErrorCount adds i to the "error_count" field.

func (*HPElineupMallItemUpdateOne) AddPrice

func (hemiuo *HPElineupMallItemUpdateOne) AddPrice(i int) *HPElineupMallItemUpdateOne

AddPrice adds i to the "price" field.

func (*HPElineupMallItemUpdateOne) AddTaggedArtistIDs

func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdateOne

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPElineupMallItemUpdateOne) AddTaggedArtists

func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdateOne

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPElineupMallItemUpdateOne) AddTaggedMemberIDs

func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdateOne

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPElineupMallItemUpdateOne) AddTaggedMembers

func (hemiuo *HPElineupMallItemUpdateOne) AddTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdateOne

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPElineupMallItemUpdateOne) AppendImages

func (hemiuo *HPElineupMallItemUpdateOne) AppendImages(j []jsonfields.Media) *HPElineupMallItemUpdateOne

AppendImages appends j to the "images" field.

func (*HPElineupMallItemUpdateOne) ClearCrawledAt

func (hemiuo *HPElineupMallItemUpdateOne) ClearCrawledAt() *HPElineupMallItemUpdateOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPElineupMallItemUpdateOne) ClearLastErrorMessage

func (hemiuo *HPElineupMallItemUpdateOne) ClearLastErrorMessage() *HPElineupMallItemUpdateOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPElineupMallItemUpdateOne) ClearManuallyModified

func (hemiuo *HPElineupMallItemUpdateOne) ClearManuallyModified() *HPElineupMallItemUpdateOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPElineupMallItemUpdateOne) ClearOrderEndAt

func (hemiuo *HPElineupMallItemUpdateOne) ClearOrderEndAt() *HPElineupMallItemUpdateOne

ClearOrderEndAt clears the value of the "order_end_at" field.

func (*HPElineupMallItemUpdateOne) ClearOrderStartAt

func (hemiuo *HPElineupMallItemUpdateOne) ClearOrderStartAt() *HPElineupMallItemUpdateOne

ClearOrderStartAt clears the value of the "order_start_at" field.

func (*HPElineupMallItemUpdateOne) ClearRecrawlRequired

func (hemiuo *HPElineupMallItemUpdateOne) ClearRecrawlRequired() *HPElineupMallItemUpdateOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPElineupMallItemUpdateOne) ClearTaggedArtists

func (hemiuo *HPElineupMallItemUpdateOne) ClearTaggedArtists() *HPElineupMallItemUpdateOne

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPElineupMallItemUpdateOne) ClearTaggedMembers

func (hemiuo *HPElineupMallItemUpdateOne) ClearTaggedMembers() *HPElineupMallItemUpdateOne

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPElineupMallItemUpdateOne) ClearUpdatedAt

func (hemiuo *HPElineupMallItemUpdateOne) ClearUpdatedAt() *HPElineupMallItemUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPElineupMallItemUpdateOne) Exec

func (hemiuo *HPElineupMallItemUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPElineupMallItemUpdateOne) ExecX

func (hemiuo *HPElineupMallItemUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemUpdateOne) Mutation

func (hemiuo *HPElineupMallItemUpdateOne) Mutation() *HPElineupMallItemMutation

Mutation returns the HPElineupMallItemMutation object of the builder.

func (*HPElineupMallItemUpdateOne) RemoveTaggedArtistIDs

func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPElineupMallItemUpdateOne

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPElineupMallItemUpdateOne) RemoveTaggedArtists

func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPElineupMallItemUpdateOne

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPElineupMallItemUpdateOne) RemoveTaggedMemberIDs

func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPElineupMallItemUpdateOne

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPElineupMallItemUpdateOne) RemoveTaggedMembers

func (hemiuo *HPElineupMallItemUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPElineupMallItemUpdateOne

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPElineupMallItemUpdateOne) Save

func (hemiuo *HPElineupMallItemUpdateOne) Save(ctx context.Context) (*HPElineupMallItem, error)

Save executes the query and returns the updated HPElineupMallItem entity.

func (*HPElineupMallItemUpdateOne) SaveX

func (hemiuo *HPElineupMallItemUpdateOne) SaveX(ctx context.Context) *HPElineupMallItem

SaveX is like Save, but panics if an error occurs.

func (*HPElineupMallItemUpdateOne) Select

func (hemiuo *HPElineupMallItemUpdateOne) Select(field string, fields ...string) *HPElineupMallItemUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPElineupMallItemUpdateOne) SetCategory

func (hemiuo *HPElineupMallItemUpdateOne) SetCategory(eemic enums.HPElineupMallItemCategory) *HPElineupMallItemUpdateOne

SetCategory sets the "category" field.

func (*HPElineupMallItemUpdateOne) SetCrawledAt

func (hemiuo *HPElineupMallItemUpdateOne) SetCrawledAt(t time.Time) *HPElineupMallItemUpdateOne

SetCrawledAt sets the "crawled_at" field.

func (*HPElineupMallItemUpdateOne) SetDescription

func (hemiuo *HPElineupMallItemUpdateOne) SetDescription(s string) *HPElineupMallItemUpdateOne

SetDescription sets the "description" field.

func (*HPElineupMallItemUpdateOne) SetErrorCount

func (hemiuo *HPElineupMallItemUpdateOne) SetErrorCount(i int) *HPElineupMallItemUpdateOne

SetErrorCount sets the "error_count" field.

func (*HPElineupMallItemUpdateOne) SetImages

func (hemiuo *HPElineupMallItemUpdateOne) SetImages(j []jsonfields.Media) *HPElineupMallItemUpdateOne

SetImages sets the "images" field.

func (*HPElineupMallItemUpdateOne) SetIsLimitedToFc

func (hemiuo *HPElineupMallItemUpdateOne) SetIsLimitedToFc(b bool) *HPElineupMallItemUpdateOne

SetIsLimitedToFc sets the "is_limited_to_fc" field.

func (*HPElineupMallItemUpdateOne) SetIsOutOfStock

func (hemiuo *HPElineupMallItemUpdateOne) SetIsOutOfStock(b bool) *HPElineupMallItemUpdateOne

SetIsOutOfStock sets the "is_out_of_stock" field.

func (*HPElineupMallItemUpdateOne) SetLastErrorMessage

func (hemiuo *HPElineupMallItemUpdateOne) SetLastErrorMessage(s string) *HPElineupMallItemUpdateOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPElineupMallItemUpdateOne) SetManuallyModified

func (hemiuo *HPElineupMallItemUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPElineupMallItemUpdateOne

SetManuallyModified sets the "manually_modified" field.

func (*HPElineupMallItemUpdateOne) SetName

func (hemiuo *HPElineupMallItemUpdateOne) SetName(s string) *HPElineupMallItemUpdateOne

SetName sets the "name" field.

func (*HPElineupMallItemUpdateOne) SetNillableCategory

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableCategory(eemic *enums.HPElineupMallItemCategory) *HPElineupMallItemUpdateOne

SetNillableCategory sets the "category" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableCrawledAt

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableCrawledAt(t *time.Time) *HPElineupMallItemUpdateOne

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableDescription

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableDescription(s *string) *HPElineupMallItemUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableErrorCount

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableErrorCount(i *int) *HPElineupMallItemUpdateOne

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableLastErrorMessage

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableLastErrorMessage(s *string) *HPElineupMallItemUpdateOne

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableOrderEndAt

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableOrderEndAt(t *time.Time) *HPElineupMallItemUpdateOne

SetNillableOrderEndAt sets the "order_end_at" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableOrderStartAt

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableOrderStartAt(t *time.Time) *HPElineupMallItemUpdateOne

SetNillableOrderStartAt sets the "order_start_at" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableRecrawlRequired

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableRecrawlRequired(b *bool) *HPElineupMallItemUpdateOne

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetNillableUpdatedAt

func (hemiuo *HPElineupMallItemUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPElineupMallItemUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPElineupMallItemUpdateOne) SetOrderEndAt

func (hemiuo *HPElineupMallItemUpdateOne) SetOrderEndAt(t time.Time) *HPElineupMallItemUpdateOne

SetOrderEndAt sets the "order_end_at" field.

func (*HPElineupMallItemUpdateOne) SetOrderStartAt

func (hemiuo *HPElineupMallItemUpdateOne) SetOrderStartAt(t time.Time) *HPElineupMallItemUpdateOne

SetOrderStartAt sets the "order_start_at" field.

func (hemiuo *HPElineupMallItemUpdateOne) SetPermalink(s string) *HPElineupMallItemUpdateOne

SetPermalink sets the "permalink" field.

func (*HPElineupMallItemUpdateOne) SetPrice

func (hemiuo *HPElineupMallItemUpdateOne) SetPrice(i int) *HPElineupMallItemUpdateOne

SetPrice sets the "price" field.

func (*HPElineupMallItemUpdateOne) SetRecrawlRequired

func (hemiuo *HPElineupMallItemUpdateOne) SetRecrawlRequired(b bool) *HPElineupMallItemUpdateOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPElineupMallItemUpdateOne) SetSupplier

func (hemiuo *HPElineupMallItemUpdateOne) SetSupplier(s string) *HPElineupMallItemUpdateOne

SetSupplier sets the "supplier" field.

func (*HPElineupMallItemUpdateOne) SetUpdatedAt

func (hemiuo *HPElineupMallItemUpdateOne) SetUpdatedAt(t time.Time) *HPElineupMallItemUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPElineupMallItemUpdateOne) Where

func (hemiuo *HPElineupMallItemUpdateOne) Where(ps ...predicate.HPElineupMallItem) *HPElineupMallItemUpdateOne

Where appends a list predicates to the HPElineupMallItemUpdate builder.

type HPElineupMallItemUpsert

HPElineupMallItemUpsert is the "OnConflict" setter.

type HPElineupMallItemUpsert struct {
    *sql.UpdateSet
}

func (*HPElineupMallItemUpsert) AddErrorCount

func (u *HPElineupMallItemUpsert) AddErrorCount(v int) *HPElineupMallItemUpsert

AddErrorCount adds v to the "error_count" field.

func (*HPElineupMallItemUpsert) AddPrice

func (u *HPElineupMallItemUpsert) AddPrice(v int) *HPElineupMallItemUpsert

AddPrice adds v to the "price" field.

func (*HPElineupMallItemUpsert) ClearCrawledAt

func (u *HPElineupMallItemUpsert) ClearCrawledAt() *HPElineupMallItemUpsert

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPElineupMallItemUpsert) ClearLastErrorMessage

func (u *HPElineupMallItemUpsert) ClearLastErrorMessage() *HPElineupMallItemUpsert

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPElineupMallItemUpsert) ClearManuallyModified

func (u *HPElineupMallItemUpsert) ClearManuallyModified() *HPElineupMallItemUpsert

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPElineupMallItemUpsert) ClearOrderEndAt

func (u *HPElineupMallItemUpsert) ClearOrderEndAt() *HPElineupMallItemUpsert

ClearOrderEndAt clears the value of the "order_end_at" field.

func (*HPElineupMallItemUpsert) ClearOrderStartAt

func (u *HPElineupMallItemUpsert) ClearOrderStartAt() *HPElineupMallItemUpsert

ClearOrderStartAt clears the value of the "order_start_at" field.

func (*HPElineupMallItemUpsert) ClearRecrawlRequired

func (u *HPElineupMallItemUpsert) ClearRecrawlRequired() *HPElineupMallItemUpsert

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPElineupMallItemUpsert) ClearUpdatedAt

func (u *HPElineupMallItemUpsert) ClearUpdatedAt() *HPElineupMallItemUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPElineupMallItemUpsert) SetCategory

func (u *HPElineupMallItemUpsert) SetCategory(v enums.HPElineupMallItemCategory) *HPElineupMallItemUpsert

SetCategory sets the "category" field.

func (*HPElineupMallItemUpsert) SetCrawledAt

func (u *HPElineupMallItemUpsert) SetCrawledAt(v time.Time) *HPElineupMallItemUpsert

SetCrawledAt sets the "crawled_at" field.

func (*HPElineupMallItemUpsert) SetDescription

func (u *HPElineupMallItemUpsert) SetDescription(v string) *HPElineupMallItemUpsert

SetDescription sets the "description" field.

func (*HPElineupMallItemUpsert) SetErrorCount

func (u *HPElineupMallItemUpsert) SetErrorCount(v int) *HPElineupMallItemUpsert

SetErrorCount sets the "error_count" field.

func (*HPElineupMallItemUpsert) SetImages

func (u *HPElineupMallItemUpsert) SetImages(v []jsonfields.Media) *HPElineupMallItemUpsert

SetImages sets the "images" field.

func (*HPElineupMallItemUpsert) SetIsLimitedToFc

func (u *HPElineupMallItemUpsert) SetIsLimitedToFc(v bool) *HPElineupMallItemUpsert

SetIsLimitedToFc sets the "is_limited_to_fc" field.

func (*HPElineupMallItemUpsert) SetIsOutOfStock

func (u *HPElineupMallItemUpsert) SetIsOutOfStock(v bool) *HPElineupMallItemUpsert

SetIsOutOfStock sets the "is_out_of_stock" field.

func (*HPElineupMallItemUpsert) SetLastErrorMessage

func (u *HPElineupMallItemUpsert) SetLastErrorMessage(v string) *HPElineupMallItemUpsert

SetLastErrorMessage sets the "last_error_message" field.

func (*HPElineupMallItemUpsert) SetManuallyModified

func (u *HPElineupMallItemUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPElineupMallItemUpsert

SetManuallyModified sets the "manually_modified" field.

func (*HPElineupMallItemUpsert) SetName

func (u *HPElineupMallItemUpsert) SetName(v string) *HPElineupMallItemUpsert

SetName sets the "name" field.

func (*HPElineupMallItemUpsert) SetOrderEndAt

func (u *HPElineupMallItemUpsert) SetOrderEndAt(v time.Time) *HPElineupMallItemUpsert

SetOrderEndAt sets the "order_end_at" field.

func (*HPElineupMallItemUpsert) SetOrderStartAt

func (u *HPElineupMallItemUpsert) SetOrderStartAt(v time.Time) *HPElineupMallItemUpsert

SetOrderStartAt sets the "order_start_at" field.

func (u *HPElineupMallItemUpsert) SetPermalink(v string) *HPElineupMallItemUpsert

SetPermalink sets the "permalink" field.

func (*HPElineupMallItemUpsert) SetPrice

func (u *HPElineupMallItemUpsert) SetPrice(v int) *HPElineupMallItemUpsert

SetPrice sets the "price" field.

func (*HPElineupMallItemUpsert) SetRecrawlRequired

func (u *HPElineupMallItemUpsert) SetRecrawlRequired(v bool) *HPElineupMallItemUpsert

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPElineupMallItemUpsert) SetSupplier

func (u *HPElineupMallItemUpsert) SetSupplier(v string) *HPElineupMallItemUpsert

SetSupplier sets the "supplier" field.

func (*HPElineupMallItemUpsert) SetUpdatedAt

func (u *HPElineupMallItemUpsert) SetUpdatedAt(v time.Time) *HPElineupMallItemUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPElineupMallItemUpsert) UpdateCategory

func (u *HPElineupMallItemUpsert) UpdateCategory() *HPElineupMallItemUpsert

UpdateCategory sets the "category" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateCrawledAt

func (u *HPElineupMallItemUpsert) UpdateCrawledAt() *HPElineupMallItemUpsert

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateDescription

func (u *HPElineupMallItemUpsert) UpdateDescription() *HPElineupMallItemUpsert

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateErrorCount

func (u *HPElineupMallItemUpsert) UpdateErrorCount() *HPElineupMallItemUpsert

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateImages

func (u *HPElineupMallItemUpsert) UpdateImages() *HPElineupMallItemUpsert

UpdateImages sets the "images" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateIsLimitedToFc

func (u *HPElineupMallItemUpsert) UpdateIsLimitedToFc() *HPElineupMallItemUpsert

UpdateIsLimitedToFc sets the "is_limited_to_fc" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateIsOutOfStock

func (u *HPElineupMallItemUpsert) UpdateIsOutOfStock() *HPElineupMallItemUpsert

UpdateIsOutOfStock sets the "is_out_of_stock" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateLastErrorMessage

func (u *HPElineupMallItemUpsert) UpdateLastErrorMessage() *HPElineupMallItemUpsert

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateManuallyModified

func (u *HPElineupMallItemUpsert) UpdateManuallyModified() *HPElineupMallItemUpsert

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateName

func (u *HPElineupMallItemUpsert) UpdateName() *HPElineupMallItemUpsert

UpdateName sets the "name" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateOrderEndAt

func (u *HPElineupMallItemUpsert) UpdateOrderEndAt() *HPElineupMallItemUpsert

UpdateOrderEndAt sets the "order_end_at" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateOrderStartAt

func (u *HPElineupMallItemUpsert) UpdateOrderStartAt() *HPElineupMallItemUpsert

UpdateOrderStartAt sets the "order_start_at" field to the value that was provided on create.

func (u *HPElineupMallItemUpsert) UpdatePermalink() *HPElineupMallItemUpsert

UpdatePermalink sets the "permalink" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdatePrice

func (u *HPElineupMallItemUpsert) UpdatePrice() *HPElineupMallItemUpsert

UpdatePrice sets the "price" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateRecrawlRequired

func (u *HPElineupMallItemUpsert) UpdateRecrawlRequired() *HPElineupMallItemUpsert

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateSupplier

func (u *HPElineupMallItemUpsert) UpdateSupplier() *HPElineupMallItemUpsert

UpdateSupplier sets the "supplier" field to the value that was provided on create.

func (*HPElineupMallItemUpsert) UpdateUpdatedAt

func (u *HPElineupMallItemUpsert) UpdateUpdatedAt() *HPElineupMallItemUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPElineupMallItemUpsertBulk

HPElineupMallItemUpsertBulk is the builder for "upsert"-ing a bulk of HPElineupMallItem nodes.

type HPElineupMallItemUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemUpsertBulk) AddErrorCount

func (u *HPElineupMallItemUpsertBulk) AddErrorCount(v int) *HPElineupMallItemUpsertBulk

AddErrorCount adds v to the "error_count" field.

func (*HPElineupMallItemUpsertBulk) AddPrice

func (u *HPElineupMallItemUpsertBulk) AddPrice(v int) *HPElineupMallItemUpsertBulk

AddPrice adds v to the "price" field.

func (*HPElineupMallItemUpsertBulk) ClearCrawledAt

func (u *HPElineupMallItemUpsertBulk) ClearCrawledAt() *HPElineupMallItemUpsertBulk

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPElineupMallItemUpsertBulk) ClearLastErrorMessage

func (u *HPElineupMallItemUpsertBulk) ClearLastErrorMessage() *HPElineupMallItemUpsertBulk

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPElineupMallItemUpsertBulk) ClearManuallyModified

func (u *HPElineupMallItemUpsertBulk) ClearManuallyModified() *HPElineupMallItemUpsertBulk

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPElineupMallItemUpsertBulk) ClearOrderEndAt

func (u *HPElineupMallItemUpsertBulk) ClearOrderEndAt() *HPElineupMallItemUpsertBulk

ClearOrderEndAt clears the value of the "order_end_at" field.

func (*HPElineupMallItemUpsertBulk) ClearOrderStartAt

func (u *HPElineupMallItemUpsertBulk) ClearOrderStartAt() *HPElineupMallItemUpsertBulk

ClearOrderStartAt clears the value of the "order_start_at" field.

func (*HPElineupMallItemUpsertBulk) ClearRecrawlRequired

func (u *HPElineupMallItemUpsertBulk) ClearRecrawlRequired() *HPElineupMallItemUpsertBulk

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPElineupMallItemUpsertBulk) ClearUpdatedAt

func (u *HPElineupMallItemUpsertBulk) ClearUpdatedAt() *HPElineupMallItemUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPElineupMallItemUpsertBulk) DoNothing

func (u *HPElineupMallItemUpsertBulk) DoNothing() *HPElineupMallItemUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPElineupMallItemUpsertBulk) Exec

func (u *HPElineupMallItemUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPElineupMallItemUpsertBulk) ExecX

func (u *HPElineupMallItemUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemUpsertBulk) Ignore

func (u *HPElineupMallItemUpsertBulk) Ignore() *HPElineupMallItemUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPElineupMallItem.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPElineupMallItemUpsertBulk) SetCategory

func (u *HPElineupMallItemUpsertBulk) SetCategory(v enums.HPElineupMallItemCategory) *HPElineupMallItemUpsertBulk

SetCategory sets the "category" field.

func (*HPElineupMallItemUpsertBulk) SetCrawledAt

func (u *HPElineupMallItemUpsertBulk) SetCrawledAt(v time.Time) *HPElineupMallItemUpsertBulk

SetCrawledAt sets the "crawled_at" field.

func (*HPElineupMallItemUpsertBulk) SetDescription

func (u *HPElineupMallItemUpsertBulk) SetDescription(v string) *HPElineupMallItemUpsertBulk

SetDescription sets the "description" field.

func (*HPElineupMallItemUpsertBulk) SetErrorCount

func (u *HPElineupMallItemUpsertBulk) SetErrorCount(v int) *HPElineupMallItemUpsertBulk

SetErrorCount sets the "error_count" field.

func (*HPElineupMallItemUpsertBulk) SetImages

func (u *HPElineupMallItemUpsertBulk) SetImages(v []jsonfields.Media) *HPElineupMallItemUpsertBulk

SetImages sets the "images" field.

func (*HPElineupMallItemUpsertBulk) SetIsLimitedToFc

func (u *HPElineupMallItemUpsertBulk) SetIsLimitedToFc(v bool) *HPElineupMallItemUpsertBulk

SetIsLimitedToFc sets the "is_limited_to_fc" field.

func (*HPElineupMallItemUpsertBulk) SetIsOutOfStock

func (u *HPElineupMallItemUpsertBulk) SetIsOutOfStock(v bool) *HPElineupMallItemUpsertBulk

SetIsOutOfStock sets the "is_out_of_stock" field.

func (*HPElineupMallItemUpsertBulk) SetLastErrorMessage

func (u *HPElineupMallItemUpsertBulk) SetLastErrorMessage(v string) *HPElineupMallItemUpsertBulk

SetLastErrorMessage sets the "last_error_message" field.

func (*HPElineupMallItemUpsertBulk) SetManuallyModified

func (u *HPElineupMallItemUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPElineupMallItemUpsertBulk

SetManuallyModified sets the "manually_modified" field.

func (*HPElineupMallItemUpsertBulk) SetName

func (u *HPElineupMallItemUpsertBulk) SetName(v string) *HPElineupMallItemUpsertBulk

SetName sets the "name" field.

func (*HPElineupMallItemUpsertBulk) SetOrderEndAt

func (u *HPElineupMallItemUpsertBulk) SetOrderEndAt(v time.Time) *HPElineupMallItemUpsertBulk

SetOrderEndAt sets the "order_end_at" field.

func (*HPElineupMallItemUpsertBulk) SetOrderStartAt

func (u *HPElineupMallItemUpsertBulk) SetOrderStartAt(v time.Time) *HPElineupMallItemUpsertBulk

SetOrderStartAt sets the "order_start_at" field.

func (u *HPElineupMallItemUpsertBulk) SetPermalink(v string) *HPElineupMallItemUpsertBulk

SetPermalink sets the "permalink" field.

func (*HPElineupMallItemUpsertBulk) SetPrice

func (u *HPElineupMallItemUpsertBulk) SetPrice(v int) *HPElineupMallItemUpsertBulk

SetPrice sets the "price" field.

func (*HPElineupMallItemUpsertBulk) SetRecrawlRequired

func (u *HPElineupMallItemUpsertBulk) SetRecrawlRequired(v bool) *HPElineupMallItemUpsertBulk

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPElineupMallItemUpsertBulk) SetSupplier

func (u *HPElineupMallItemUpsertBulk) SetSupplier(v string) *HPElineupMallItemUpsertBulk

SetSupplier sets the "supplier" field.

func (*HPElineupMallItemUpsertBulk) SetUpdatedAt

func (u *HPElineupMallItemUpsertBulk) SetUpdatedAt(v time.Time) *HPElineupMallItemUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPElineupMallItemUpsertBulk) Update

func (u *HPElineupMallItemUpsertBulk) Update(set func(*HPElineupMallItemUpsert)) *HPElineupMallItemUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPElineupMallItemCreateBulk.OnConflict documentation for more info.

func (*HPElineupMallItemUpsertBulk) UpdateCategory

func (u *HPElineupMallItemUpsertBulk) UpdateCategory() *HPElineupMallItemUpsertBulk

UpdateCategory sets the "category" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateCrawledAt

func (u *HPElineupMallItemUpsertBulk) UpdateCrawledAt() *HPElineupMallItemUpsertBulk

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateDescription

func (u *HPElineupMallItemUpsertBulk) UpdateDescription() *HPElineupMallItemUpsertBulk

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateErrorCount

func (u *HPElineupMallItemUpsertBulk) UpdateErrorCount() *HPElineupMallItemUpsertBulk

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateImages

func (u *HPElineupMallItemUpsertBulk) UpdateImages() *HPElineupMallItemUpsertBulk

UpdateImages sets the "images" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateIsLimitedToFc

func (u *HPElineupMallItemUpsertBulk) UpdateIsLimitedToFc() *HPElineupMallItemUpsertBulk

UpdateIsLimitedToFc sets the "is_limited_to_fc" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateIsOutOfStock

func (u *HPElineupMallItemUpsertBulk) UpdateIsOutOfStock() *HPElineupMallItemUpsertBulk

UpdateIsOutOfStock sets the "is_out_of_stock" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateLastErrorMessage

func (u *HPElineupMallItemUpsertBulk) UpdateLastErrorMessage() *HPElineupMallItemUpsertBulk

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateManuallyModified

func (u *HPElineupMallItemUpsertBulk) UpdateManuallyModified() *HPElineupMallItemUpsertBulk

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateName

func (u *HPElineupMallItemUpsertBulk) UpdateName() *HPElineupMallItemUpsertBulk

UpdateName sets the "name" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateNewValues

func (u *HPElineupMallItemUpsertBulk) UpdateNewValues() *HPElineupMallItemUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPElineupMallItem.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPElineupMallItemUpsertBulk) UpdateOrderEndAt

func (u *HPElineupMallItemUpsertBulk) UpdateOrderEndAt() *HPElineupMallItemUpsertBulk

UpdateOrderEndAt sets the "order_end_at" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateOrderStartAt

func (u *HPElineupMallItemUpsertBulk) UpdateOrderStartAt() *HPElineupMallItemUpsertBulk

UpdateOrderStartAt sets the "order_start_at" field to the value that was provided on create.

func (u *HPElineupMallItemUpsertBulk) UpdatePermalink() *HPElineupMallItemUpsertBulk

UpdatePermalink sets the "permalink" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdatePrice

func (u *HPElineupMallItemUpsertBulk) UpdatePrice() *HPElineupMallItemUpsertBulk

UpdatePrice sets the "price" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateRecrawlRequired

func (u *HPElineupMallItemUpsertBulk) UpdateRecrawlRequired() *HPElineupMallItemUpsertBulk

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateSupplier

func (u *HPElineupMallItemUpsertBulk) UpdateSupplier() *HPElineupMallItemUpsertBulk

UpdateSupplier sets the "supplier" field to the value that was provided on create.

func (*HPElineupMallItemUpsertBulk) UpdateUpdatedAt

func (u *HPElineupMallItemUpsertBulk) UpdateUpdatedAt() *HPElineupMallItemUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPElineupMallItemUpsertOne

HPElineupMallItemUpsertOne is the builder for "upsert"-ing

one HPElineupMallItem node.
type HPElineupMallItemUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPElineupMallItemUpsertOne) AddErrorCount

func (u *HPElineupMallItemUpsertOne) AddErrorCount(v int) *HPElineupMallItemUpsertOne

AddErrorCount adds v to the "error_count" field.

func (*HPElineupMallItemUpsertOne) AddPrice

func (u *HPElineupMallItemUpsertOne) AddPrice(v int) *HPElineupMallItemUpsertOne

AddPrice adds v to the "price" field.

func (*HPElineupMallItemUpsertOne) ClearCrawledAt

func (u *HPElineupMallItemUpsertOne) ClearCrawledAt() *HPElineupMallItemUpsertOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPElineupMallItemUpsertOne) ClearLastErrorMessage

func (u *HPElineupMallItemUpsertOne) ClearLastErrorMessage() *HPElineupMallItemUpsertOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPElineupMallItemUpsertOne) ClearManuallyModified

func (u *HPElineupMallItemUpsertOne) ClearManuallyModified() *HPElineupMallItemUpsertOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPElineupMallItemUpsertOne) ClearOrderEndAt

func (u *HPElineupMallItemUpsertOne) ClearOrderEndAt() *HPElineupMallItemUpsertOne

ClearOrderEndAt clears the value of the "order_end_at" field.

func (*HPElineupMallItemUpsertOne) ClearOrderStartAt

func (u *HPElineupMallItemUpsertOne) ClearOrderStartAt() *HPElineupMallItemUpsertOne

ClearOrderStartAt clears the value of the "order_start_at" field.

func (*HPElineupMallItemUpsertOne) ClearRecrawlRequired

func (u *HPElineupMallItemUpsertOne) ClearRecrawlRequired() *HPElineupMallItemUpsertOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPElineupMallItemUpsertOne) ClearUpdatedAt

func (u *HPElineupMallItemUpsertOne) ClearUpdatedAt() *HPElineupMallItemUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPElineupMallItemUpsertOne) DoNothing

func (u *HPElineupMallItemUpsertOne) DoNothing() *HPElineupMallItemUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPElineupMallItemUpsertOne) Exec

func (u *HPElineupMallItemUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPElineupMallItemUpsertOne) ExecX

func (u *HPElineupMallItemUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPElineupMallItemUpsertOne) ID

func (u *HPElineupMallItemUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPElineupMallItemUpsertOne) IDX

func (u *HPElineupMallItemUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPElineupMallItemUpsertOne) Ignore

func (u *HPElineupMallItemUpsertOne) Ignore() *HPElineupMallItemUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPElineupMallItem.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPElineupMallItemUpsertOne) SetCategory

func (u *HPElineupMallItemUpsertOne) SetCategory(v enums.HPElineupMallItemCategory) *HPElineupMallItemUpsertOne

SetCategory sets the "category" field.

func (*HPElineupMallItemUpsertOne) SetCrawledAt

func (u *HPElineupMallItemUpsertOne) SetCrawledAt(v time.Time) *HPElineupMallItemUpsertOne

SetCrawledAt sets the "crawled_at" field.

func (*HPElineupMallItemUpsertOne) SetDescription

func (u *HPElineupMallItemUpsertOne) SetDescription(v string) *HPElineupMallItemUpsertOne

SetDescription sets the "description" field.

func (*HPElineupMallItemUpsertOne) SetErrorCount

func (u *HPElineupMallItemUpsertOne) SetErrorCount(v int) *HPElineupMallItemUpsertOne

SetErrorCount sets the "error_count" field.

func (*HPElineupMallItemUpsertOne) SetImages

func (u *HPElineupMallItemUpsertOne) SetImages(v []jsonfields.Media) *HPElineupMallItemUpsertOne

SetImages sets the "images" field.

func (*HPElineupMallItemUpsertOne) SetIsLimitedToFc

func (u *HPElineupMallItemUpsertOne) SetIsLimitedToFc(v bool) *HPElineupMallItemUpsertOne

SetIsLimitedToFc sets the "is_limited_to_fc" field.

func (*HPElineupMallItemUpsertOne) SetIsOutOfStock

func (u *HPElineupMallItemUpsertOne) SetIsOutOfStock(v bool) *HPElineupMallItemUpsertOne

SetIsOutOfStock sets the "is_out_of_stock" field.

func (*HPElineupMallItemUpsertOne) SetLastErrorMessage

func (u *HPElineupMallItemUpsertOne) SetLastErrorMessage(v string) *HPElineupMallItemUpsertOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPElineupMallItemUpsertOne) SetManuallyModified

func (u *HPElineupMallItemUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPElineupMallItemUpsertOne

SetManuallyModified sets the "manually_modified" field.

func (*HPElineupMallItemUpsertOne) SetName

func (u *HPElineupMallItemUpsertOne) SetName(v string) *HPElineupMallItemUpsertOne

SetName sets the "name" field.

func (*HPElineupMallItemUpsertOne) SetOrderEndAt

func (u *HPElineupMallItemUpsertOne) SetOrderEndAt(v time.Time) *HPElineupMallItemUpsertOne

SetOrderEndAt sets the "order_end_at" field.

func (*HPElineupMallItemUpsertOne) SetOrderStartAt

func (u *HPElineupMallItemUpsertOne) SetOrderStartAt(v time.Time) *HPElineupMallItemUpsertOne

SetOrderStartAt sets the "order_start_at" field.

func (u *HPElineupMallItemUpsertOne) SetPermalink(v string) *HPElineupMallItemUpsertOne

SetPermalink sets the "permalink" field.

func (*HPElineupMallItemUpsertOne) SetPrice

func (u *HPElineupMallItemUpsertOne) SetPrice(v int) *HPElineupMallItemUpsertOne

SetPrice sets the "price" field.

func (*HPElineupMallItemUpsertOne) SetRecrawlRequired

func (u *HPElineupMallItemUpsertOne) SetRecrawlRequired(v bool) *HPElineupMallItemUpsertOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPElineupMallItemUpsertOne) SetSupplier

func (u *HPElineupMallItemUpsertOne) SetSupplier(v string) *HPElineupMallItemUpsertOne

SetSupplier sets the "supplier" field.

func (*HPElineupMallItemUpsertOne) SetUpdatedAt

func (u *HPElineupMallItemUpsertOne) SetUpdatedAt(v time.Time) *HPElineupMallItemUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPElineupMallItemUpsertOne) Update

func (u *HPElineupMallItemUpsertOne) Update(set func(*HPElineupMallItemUpsert)) *HPElineupMallItemUpsertOne

Update allows overriding fields `UPDATE` values. See the HPElineupMallItemCreate.OnConflict documentation for more info.

func (*HPElineupMallItemUpsertOne) UpdateCategory

func (u *HPElineupMallItemUpsertOne) UpdateCategory() *HPElineupMallItemUpsertOne

UpdateCategory sets the "category" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateCrawledAt

func (u *HPElineupMallItemUpsertOne) UpdateCrawledAt() *HPElineupMallItemUpsertOne

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateDescription

func (u *HPElineupMallItemUpsertOne) UpdateDescription() *HPElineupMallItemUpsertOne

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateErrorCount

func (u *HPElineupMallItemUpsertOne) UpdateErrorCount() *HPElineupMallItemUpsertOne

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateImages

func (u *HPElineupMallItemUpsertOne) UpdateImages() *HPElineupMallItemUpsertOne

UpdateImages sets the "images" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateIsLimitedToFc

func (u *HPElineupMallItemUpsertOne) UpdateIsLimitedToFc() *HPElineupMallItemUpsertOne

UpdateIsLimitedToFc sets the "is_limited_to_fc" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateIsOutOfStock

func (u *HPElineupMallItemUpsertOne) UpdateIsOutOfStock() *HPElineupMallItemUpsertOne

UpdateIsOutOfStock sets the "is_out_of_stock" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateLastErrorMessage

func (u *HPElineupMallItemUpsertOne) UpdateLastErrorMessage() *HPElineupMallItemUpsertOne

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateManuallyModified

func (u *HPElineupMallItemUpsertOne) UpdateManuallyModified() *HPElineupMallItemUpsertOne

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateName

func (u *HPElineupMallItemUpsertOne) UpdateName() *HPElineupMallItemUpsertOne

UpdateName sets the "name" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateNewValues

func (u *HPElineupMallItemUpsertOne) UpdateNewValues() *HPElineupMallItemUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPElineupMallItem.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPElineupMallItemUpsertOne) UpdateOrderEndAt

func (u *HPElineupMallItemUpsertOne) UpdateOrderEndAt() *HPElineupMallItemUpsertOne

UpdateOrderEndAt sets the "order_end_at" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateOrderStartAt

func (u *HPElineupMallItemUpsertOne) UpdateOrderStartAt() *HPElineupMallItemUpsertOne

UpdateOrderStartAt sets the "order_start_at" field to the value that was provided on create.

func (u *HPElineupMallItemUpsertOne) UpdatePermalink() *HPElineupMallItemUpsertOne

UpdatePermalink sets the "permalink" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdatePrice

func (u *HPElineupMallItemUpsertOne) UpdatePrice() *HPElineupMallItemUpsertOne

UpdatePrice sets the "price" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateRecrawlRequired

func (u *HPElineupMallItemUpsertOne) UpdateRecrawlRequired() *HPElineupMallItemUpsertOne

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateSupplier

func (u *HPElineupMallItemUpsertOne) UpdateSupplier() *HPElineupMallItemUpsertOne

UpdateSupplier sets the "supplier" field to the value that was provided on create.

func (*HPElineupMallItemUpsertOne) UpdateUpdatedAt

func (u *HPElineupMallItemUpsertOne) UpdateUpdatedAt() *HPElineupMallItemUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPElineupMallItems

HPElineupMallItems is a parsable slice of HPElineupMallItem.

type HPElineupMallItems []*HPElineupMallItem

type HPEvent

HPEvent is the model entity for the HPEvent schema.

type HPEvent struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Key holds the value of the "key" field.
    Key string `json:"key,omitempty"`
    // DisplayTitles holds the value of the "display_titles" field.
    DisplayTitles []string `json:"display_titles,omitempty"`
    // OpenAt holds the value of the "open_at" field.
    OpenAt time.Time `json:"open_at,omitempty"`
    // StartAt holds the value of the "start_at" field.
    StartAt time.Time `json:"start_at,omitempty"`
    // Venue holds the value of the "venue" field.
    Venue string `json:"venue,omitempty"`
    // Prefecture holds the value of the "prefecture" field.
    Prefecture string `json:"prefecture,omitempty"`
    // Source holds the value of the "source" field.
    Source enums.HPEventSource `json:"source,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPEventQuery when eager-loading is set.
    Edges HPEventEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPEvent) IsNode

func (n *HPEvent) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPEvent) NamedArtists

func (he *HPEvent) NamedArtists(name string) ([]*HPArtist, error)

NamedArtists returns the Artists named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPEvent) NamedHpfcEventTickets

func (he *HPEvent) NamedHpfcEventTickets(name string) ([]*HPFCEventTicket, error)

NamedHpfcEventTickets returns the HpfcEventTickets named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPEvent) NamedMembers

func (he *HPEvent) NamedMembers(name string) ([]*HPMember, error)

NamedMembers returns the Members named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPEvent) QueryArtists

func (he *HPEvent) QueryArtists() *HPArtistQuery

QueryArtists queries the "artists" edge of the HPEvent entity.

func (*HPEvent) QueryHpfcEventTickets

func (he *HPEvent) QueryHpfcEventTickets() *HPFCEventTicketQuery

QueryHpfcEventTickets queries the "hpfc_event_tickets" edge of the HPEvent entity.

func (*HPEvent) QueryMembers

func (he *HPEvent) QueryMembers() *HPMemberQuery

QueryMembers queries the "members" edge of the HPEvent entity.

func (*HPEvent) String

func (he *HPEvent) String() string

String implements the fmt.Stringer.

func (*HPEvent) ToEdge

func (he *HPEvent) ToEdge(order *HPEventOrder) *HPEventEdge

ToEdge converts HPEvent into HPEventEdge.

func (*HPEvent) Unwrap

func (he *HPEvent) Unwrap() *HPEvent

Unwrap unwraps the HPEvent entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPEvent) Update

func (he *HPEvent) Update() *HPEventUpdateOne

Update returns a builder for updating this HPEvent. Note that you need to call HPEvent.Unwrap() before calling this method if this HPEvent was returned from a transaction, and the transaction was committed or rolled back.

func (*HPEvent) Value

func (he *HPEvent) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPEvent. This includes values selected through modifiers, order, etc.

type HPEventClient

HPEventClient is a client for the HPEvent schema.

type HPEventClient struct {
    // contains filtered or unexported fields
}

func NewHPEventClient

func NewHPEventClient(c config) *HPEventClient

NewHPEventClient returns a client for the HPEvent from the given config.

func (*HPEventClient) Create

func (c *HPEventClient) Create() *HPEventCreate

Create returns a builder for creating a HPEvent entity.

func (*HPEventClient) CreateBulk

func (c *HPEventClient) CreateBulk(builders ...*HPEventCreate) *HPEventCreateBulk

CreateBulk returns a builder for creating a bulk of HPEvent entities.

func (*HPEventClient) Delete

func (c *HPEventClient) Delete() *HPEventDelete

Delete returns a delete builder for HPEvent.

func (*HPEventClient) DeleteOne

func (c *HPEventClient) DeleteOne(he *HPEvent) *HPEventDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPEventClient) DeleteOneID

func (c *HPEventClient) DeleteOneID(id int) *HPEventDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPEventClient) Get

func (c *HPEventClient) Get(ctx context.Context, id int) (*HPEvent, error)

Get returns a HPEvent entity by its id.

func (*HPEventClient) GetX

func (c *HPEventClient) GetX(ctx context.Context, id int) *HPEvent

GetX is like Get, but panics if an error occurs.

func (*HPEventClient) Hooks

func (c *HPEventClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPEventClient) Intercept

func (c *HPEventClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpevent.Intercept(f(g(h())))`.

func (*HPEventClient) Interceptors

func (c *HPEventClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPEventClient) Query

func (c *HPEventClient) Query() *HPEventQuery

Query returns a query builder for HPEvent.

func (*HPEventClient) QueryArtists

func (c *HPEventClient) QueryArtists(he *HPEvent) *HPArtistQuery

QueryArtists queries the artists edge of a HPEvent.

func (*HPEventClient) QueryHpfcEventTickets

func (c *HPEventClient) QueryHpfcEventTickets(he *HPEvent) *HPFCEventTicketQuery

QueryHpfcEventTickets queries the hpfc_event_tickets edge of a HPEvent.

func (*HPEventClient) QueryMembers

func (c *HPEventClient) QueryMembers(he *HPEvent) *HPMemberQuery

QueryMembers queries the members edge of a HPEvent.

func (*HPEventClient) Update

func (c *HPEventClient) Update() *HPEventUpdate

Update returns an update builder for HPEvent.

func (*HPEventClient) UpdateOne

func (c *HPEventClient) UpdateOne(he *HPEvent) *HPEventUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPEventClient) UpdateOneID

func (c *HPEventClient) UpdateOneID(id int) *HPEventUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPEventClient) Use

func (c *HPEventClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpevent.Hooks(f(g(h())))`.

type HPEventConnection

HPEventConnection is the connection containing edges to HPEvent.

type HPEventConnection struct {
    Edges      []*HPEventEdge `json:"edges"`
    PageInfo   PageInfo       `json:"pageInfo"`
    TotalCount int            `json:"totalCount"`
}

type HPEventCreate

HPEventCreate is the builder for creating a HPEvent entity.

type HPEventCreate struct {
    // contains filtered or unexported fields
}

func (*HPEventCreate) AddArtistIDs

func (hec *HPEventCreate) AddArtistIDs(ids ...int) *HPEventCreate

AddArtistIDs adds the "artists" edge to the HPArtist entity by IDs.

func (*HPEventCreate) AddArtists

func (hec *HPEventCreate) AddArtists(h ...*HPArtist) *HPEventCreate

AddArtists adds the "artists" edges to the HPArtist entity.

func (*HPEventCreate) AddHpfcEventTicketIDs

func (hec *HPEventCreate) AddHpfcEventTicketIDs(ids ...int) *HPEventCreate

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*HPEventCreate) AddHpfcEventTickets

func (hec *HPEventCreate) AddHpfcEventTickets(h ...*HPFCEventTicket) *HPEventCreate

AddHpfcEventTickets adds the "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*HPEventCreate) AddMemberIDs

func (hec *HPEventCreate) AddMemberIDs(ids ...int) *HPEventCreate

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPEventCreate) AddMembers

func (hec *HPEventCreate) AddMembers(h ...*HPMember) *HPEventCreate

AddMembers adds the "members" edges to the HPMember entity.

func (*HPEventCreate) Exec

func (hec *HPEventCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPEventCreate) ExecX

func (hec *HPEventCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPEventCreate) Mutation

func (hec *HPEventCreate) Mutation() *HPEventMutation

Mutation returns the HPEventMutation object of the builder.

func (*HPEventCreate) OnConflict

func (hec *HPEventCreate) OnConflict(opts ...sql.ConflictOption) *HPEventUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPEvent.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPEventUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPEventCreate) OnConflictColumns

func (hec *HPEventCreate) OnConflictColumns(columns ...string) *HPEventUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPEvent.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPEventCreate) Save

func (hec *HPEventCreate) Save(ctx context.Context) (*HPEvent, error)

Save creates the HPEvent in the database.

func (*HPEventCreate) SaveX

func (hec *HPEventCreate) SaveX(ctx context.Context) *HPEvent

SaveX calls Save and panics if Save returns an error.

func (*HPEventCreate) SetCreatedAt

func (hec *HPEventCreate) SetCreatedAt(t time.Time) *HPEventCreate

SetCreatedAt sets the "created_at" field.

func (*HPEventCreate) SetDisplayTitles

func (hec *HPEventCreate) SetDisplayTitles(s []string) *HPEventCreate

SetDisplayTitles sets the "display_titles" field.

func (*HPEventCreate) SetKey

func (hec *HPEventCreate) SetKey(s string) *HPEventCreate

SetKey sets the "key" field.

func (*HPEventCreate) SetNillableCreatedAt

func (hec *HPEventCreate) SetNillableCreatedAt(t *time.Time) *HPEventCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPEventCreate) SetNillableOpenAt

func (hec *HPEventCreate) SetNillableOpenAt(t *time.Time) *HPEventCreate

SetNillableOpenAt sets the "open_at" field if the given value is not nil.

func (*HPEventCreate) SetNillableSource

func (hec *HPEventCreate) SetNillableSource(ees *enums.HPEventSource) *HPEventCreate

SetNillableSource sets the "source" field if the given value is not nil.

func (*HPEventCreate) SetNillableUpdatedAt

func (hec *HPEventCreate) SetNillableUpdatedAt(t *time.Time) *HPEventCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPEventCreate) SetOpenAt

func (hec *HPEventCreate) SetOpenAt(t time.Time) *HPEventCreate

SetOpenAt sets the "open_at" field.

func (*HPEventCreate) SetPrefecture

func (hec *HPEventCreate) SetPrefecture(s string) *HPEventCreate

SetPrefecture sets the "prefecture" field.

func (*HPEventCreate) SetSource

func (hec *HPEventCreate) SetSource(ees enums.HPEventSource) *HPEventCreate

SetSource sets the "source" field.

func (*HPEventCreate) SetStartAt

func (hec *HPEventCreate) SetStartAt(t time.Time) *HPEventCreate

SetStartAt sets the "start_at" field.

func (*HPEventCreate) SetUpdatedAt

func (hec *HPEventCreate) SetUpdatedAt(t time.Time) *HPEventCreate

SetUpdatedAt sets the "updated_at" field.

func (*HPEventCreate) SetVenue

func (hec *HPEventCreate) SetVenue(s string) *HPEventCreate

SetVenue sets the "venue" field.

type HPEventCreateBulk

HPEventCreateBulk is the builder for creating many HPEvent entities in bulk.

type HPEventCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPEventCreateBulk) Exec

func (hecb *HPEventCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPEventCreateBulk) ExecX

func (hecb *HPEventCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPEventCreateBulk) OnConflict

func (hecb *HPEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPEventUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPEvent.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPEventUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPEventCreateBulk) OnConflictColumns

func (hecb *HPEventCreateBulk) OnConflictColumns(columns ...string) *HPEventUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPEvent.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPEventCreateBulk) Save

func (hecb *HPEventCreateBulk) Save(ctx context.Context) ([]*HPEvent, error)

Save creates the HPEvent entities in the database.

func (*HPEventCreateBulk) SaveX

func (hecb *HPEventCreateBulk) SaveX(ctx context.Context) []*HPEvent

SaveX is like Save, but panics if an error occurs.

type HPEventDelete

HPEventDelete is the builder for deleting a HPEvent entity.

type HPEventDelete struct {
    // contains filtered or unexported fields
}

func (*HPEventDelete) Exec

func (hed *HPEventDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPEventDelete) ExecX

func (hed *HPEventDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPEventDelete) Where

func (hed *HPEventDelete) Where(ps ...predicate.HPEvent) *HPEventDelete

Where appends a list predicates to the HPEventDelete builder.

type HPEventDeleteOne

HPEventDeleteOne is the builder for deleting a single HPEvent entity.

type HPEventDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPEventDeleteOne) Exec

func (hedo *HPEventDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPEventDeleteOne) ExecX

func (hedo *HPEventDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPEventDeleteOne) Where

func (hedo *HPEventDeleteOne) Where(ps ...predicate.HPEvent) *HPEventDeleteOne

Where appends a list predicates to the HPEventDelete builder.

type HPEventEdge

HPEventEdge is the edge representation of HPEvent.

type HPEventEdge struct {
    Node   *HPEvent `json:"node"`
    Cursor Cursor   `json:"cursor"`
}

type HPEventEdges

HPEventEdges holds the relations/edges for other nodes in the graph.

type HPEventEdges struct {
    // Members holds the value of the members edge.
    Members []*HPMember `json:"members,omitempty"`
    // Artists holds the value of the artists edge.
    Artists []*HPArtist `json:"artists,omitempty"`
    // HpfcEventTickets holds the value of the hpfc_event_tickets edge.
    HpfcEventTickets []*HPFCEventTicket `json:"hpfc_event_tickets,omitempty"`
    // contains filtered or unexported fields
}

func (HPEventEdges) ArtistsOrErr

func (e HPEventEdges) ArtistsOrErr() ([]*HPArtist, error)

ArtistsOrErr returns the Artists value or an error if the edge was not loaded in eager-loading.

func (HPEventEdges) HpfcEventTicketsOrErr

func (e HPEventEdges) HpfcEventTicketsOrErr() ([]*HPFCEventTicket, error)

HpfcEventTicketsOrErr returns the HpfcEventTickets value or an error if the edge was not loaded in eager-loading.

func (HPEventEdges) MembersOrErr

func (e HPEventEdges) MembersOrErr() ([]*HPMember, error)

MembersOrErr returns the Members value or an error if the edge was not loaded in eager-loading.

type HPEventFilter

HPEventFilter provides a generic filtering capability at runtime for HPEventQuery.

type HPEventFilter struct {
    // contains filtered or unexported fields
}

func (*HPEventFilter) Where

func (f *HPEventFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPEventFilter) WhereCreatedAt

func (f *HPEventFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPEventFilter) WhereDisplayTitles

func (f *HPEventFilter) WhereDisplayTitles(p entql.BytesP)

WhereDisplayTitles applies the entql json.RawMessage predicate on the display_titles field.

func (*HPEventFilter) WhereHasArtists

func (f *HPEventFilter) WhereHasArtists()

WhereHasArtists applies a predicate to check if query has an edge artists.

func (*HPEventFilter) WhereHasArtistsWith

func (f *HPEventFilter) WhereHasArtistsWith(preds ...predicate.HPArtist)

WhereHasArtistsWith applies a predicate to check if query has an edge artists with a given conditions (other predicates).

func (*HPEventFilter) WhereHasHpfcEventTickets

func (f *HPEventFilter) WhereHasHpfcEventTickets()

WhereHasHpfcEventTickets applies a predicate to check if query has an edge hpfc_event_tickets.

func (*HPEventFilter) WhereHasHpfcEventTicketsWith

func (f *HPEventFilter) WhereHasHpfcEventTicketsWith(preds ...predicate.HPFCEventTicket)

WhereHasHpfcEventTicketsWith applies a predicate to check if query has an edge hpfc_event_tickets with a given conditions (other predicates).

func (*HPEventFilter) WhereHasMembers

func (f *HPEventFilter) WhereHasMembers()

WhereHasMembers applies a predicate to check if query has an edge members.

func (*HPEventFilter) WhereHasMembersWith

func (f *HPEventFilter) WhereHasMembersWith(preds ...predicate.HPMember)

WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates).

func (*HPEventFilter) WhereID

func (f *HPEventFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPEventFilter) WhereKey

func (f *HPEventFilter) WhereKey(p entql.StringP)

WhereKey applies the entql string predicate on the key field.

func (*HPEventFilter) WhereOpenAt

func (f *HPEventFilter) WhereOpenAt(p entql.TimeP)

WhereOpenAt applies the entql time.Time predicate on the open_at field.

func (*HPEventFilter) WherePrefecture

func (f *HPEventFilter) WherePrefecture(p entql.StringP)

WherePrefecture applies the entql string predicate on the prefecture field.

func (*HPEventFilter) WhereSource

func (f *HPEventFilter) WhereSource(p entql.StringP)

WhereSource applies the entql string predicate on the source field.

func (*HPEventFilter) WhereStartAt

func (f *HPEventFilter) WhereStartAt(p entql.TimeP)

WhereStartAt applies the entql time.Time predicate on the start_at field.

func (*HPEventFilter) WhereUpdatedAt

func (f *HPEventFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*HPEventFilter) WhereVenue

func (f *HPEventFilter) WhereVenue(p entql.StringP)

WhereVenue applies the entql string predicate on the venue field.

type HPEventGroupBy

HPEventGroupBy is the group-by builder for HPEvent entities.

type HPEventGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPEventGroupBy) Aggregate

func (hegb *HPEventGroupBy) Aggregate(fns ...AggregateFunc) *HPEventGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPEventGroupBy) Bool

func (s *HPEventGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) BoolX

func (s *HPEventGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPEventGroupBy) Bools

func (s *HPEventGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) BoolsX

func (s *HPEventGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPEventGroupBy) Float64

func (s *HPEventGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) Float64X

func (s *HPEventGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPEventGroupBy) Float64s

func (s *HPEventGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) Float64sX

func (s *HPEventGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPEventGroupBy) Int

func (s *HPEventGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) IntX

func (s *HPEventGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPEventGroupBy) Ints

func (s *HPEventGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) IntsX

func (s *HPEventGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPEventGroupBy) Scan

func (hegb *HPEventGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPEventGroupBy) ScanX

func (s *HPEventGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPEventGroupBy) String

func (s *HPEventGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) StringX

func (s *HPEventGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPEventGroupBy) Strings

func (s *HPEventGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPEventGroupBy) StringsX

func (s *HPEventGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPEventMutation

HPEventMutation represents an operation that mutates the HPEvent nodes in the graph.

type HPEventMutation struct {
    // contains filtered or unexported fields
}

func (*HPEventMutation) AddArtistIDs

func (m *HPEventMutation) AddArtistIDs(ids ...int)

AddArtistIDs adds the "artists" edge to the HPArtist entity by ids.

func (*HPEventMutation) AddField

func (m *HPEventMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPEventMutation) AddHpfcEventTicketIDs

func (m *HPEventMutation) AddHpfcEventTicketIDs(ids ...int)

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by ids.

func (*HPEventMutation) AddMemberIDs

func (m *HPEventMutation) AddMemberIDs(ids ...int)

AddMemberIDs adds the "members" edge to the HPMember entity by ids.

func (*HPEventMutation) AddedEdges

func (m *HPEventMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPEventMutation) AddedField

func (m *HPEventMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPEventMutation) AddedFields

func (m *HPEventMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPEventMutation) AddedIDs

func (m *HPEventMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPEventMutation) AppendDisplayTitles

func (m *HPEventMutation) AppendDisplayTitles(s []string)

AppendDisplayTitles adds s to the "display_titles" field.

func (*HPEventMutation) AppendedDisplayTitles

func (m *HPEventMutation) AppendedDisplayTitles() ([]string, bool)

AppendedDisplayTitles returns the list of values that were appended to the "display_titles" field in this mutation.

func (*HPEventMutation) ArtistsCleared

func (m *HPEventMutation) ArtistsCleared() bool

ArtistsCleared reports if the "artists" edge to the HPArtist entity was cleared.

func (*HPEventMutation) ArtistsIDs

func (m *HPEventMutation) ArtistsIDs() (ids []int)

ArtistsIDs returns the "artists" edge IDs in the mutation.

func (*HPEventMutation) ClearArtists

func (m *HPEventMutation) ClearArtists()

ClearArtists clears the "artists" edge to the HPArtist entity.

func (*HPEventMutation) ClearCreatedAt

func (m *HPEventMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPEventMutation) ClearEdge

func (m *HPEventMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPEventMutation) ClearField

func (m *HPEventMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPEventMutation) ClearHpfcEventTickets

func (m *HPEventMutation) ClearHpfcEventTickets()

ClearHpfcEventTickets clears the "hpfc_event_tickets" edge to the HPFCEventTicket entity.

func (*HPEventMutation) ClearMembers

func (m *HPEventMutation) ClearMembers()

ClearMembers clears the "members" edge to the HPMember entity.

func (*HPEventMutation) ClearOpenAt

func (m *HPEventMutation) ClearOpenAt()

ClearOpenAt clears the value of the "open_at" field.

func (*HPEventMutation) ClearUpdatedAt

func (m *HPEventMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPEventMutation) ClearedEdges

func (m *HPEventMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPEventMutation) ClearedFields

func (m *HPEventMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPEventMutation) Client

func (m HPEventMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPEventMutation) CreatedAt

func (m *HPEventMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPEventMutation) CreatedAtCleared

func (m *HPEventMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPEventMutation) DisplayTitles

func (m *HPEventMutation) DisplayTitles() (r []string, exists bool)

DisplayTitles returns the value of the "display_titles" field in the mutation.

func (*HPEventMutation) EdgeCleared

func (m *HPEventMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPEventMutation) Field

func (m *HPEventMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPEventMutation) FieldCleared

func (m *HPEventMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPEventMutation) Fields

func (m *HPEventMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPEventMutation) Filter

func (m *HPEventMutation) Filter() *HPEventFilter

Filter returns an entql.Where implementation to apply filters on the HPEventMutation builder.

func (*HPEventMutation) HpfcEventTicketsCleared

func (m *HPEventMutation) HpfcEventTicketsCleared() bool

HpfcEventTicketsCleared reports if the "hpfc_event_tickets" edge to the HPFCEventTicket entity was cleared.

func (*HPEventMutation) HpfcEventTicketsIDs

func (m *HPEventMutation) HpfcEventTicketsIDs() (ids []int)

HpfcEventTicketsIDs returns the "hpfc_event_tickets" edge IDs in the mutation.

func (*HPEventMutation) ID

func (m *HPEventMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPEventMutation) IDs

func (m *HPEventMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPEventMutation) Key

func (m *HPEventMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*HPEventMutation) MembersCleared

func (m *HPEventMutation) MembersCleared() bool

MembersCleared reports if the "members" edge to the HPMember entity was cleared.

func (*HPEventMutation) MembersIDs

func (m *HPEventMutation) MembersIDs() (ids []int)

MembersIDs returns the "members" edge IDs in the mutation.

func (*HPEventMutation) OldCreatedAt

func (m *HPEventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldDisplayTitles

func (m *HPEventMutation) OldDisplayTitles(ctx context.Context) (v []string, err error)

OldDisplayTitles returns the old "display_titles" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldField

func (m *HPEventMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPEventMutation) OldKey

func (m *HPEventMutation) OldKey(ctx context.Context) (v string, err error)

OldKey returns the old "key" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldOpenAt

func (m *HPEventMutation) OldOpenAt(ctx context.Context) (v time.Time, err error)

OldOpenAt returns the old "open_at" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldPrefecture

func (m *HPEventMutation) OldPrefecture(ctx context.Context) (v string, err error)

OldPrefecture returns the old "prefecture" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldSource

func (m *HPEventMutation) OldSource(ctx context.Context) (v enums.HPEventSource, err error)

OldSource returns the old "source" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldStartAt

func (m *HPEventMutation) OldStartAt(ctx context.Context) (v time.Time, err error)

OldStartAt returns the old "start_at" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldUpdatedAt

func (m *HPEventMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) OldVenue

func (m *HPEventMutation) OldVenue(ctx context.Context) (v string, err error)

OldVenue returns the old "venue" field's value of the HPEvent entity. If the HPEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPEventMutation) Op

func (m *HPEventMutation) Op() Op

Op returns the operation name.

func (*HPEventMutation) OpenAt

func (m *HPEventMutation) OpenAt() (r time.Time, exists bool)

OpenAt returns the value of the "open_at" field in the mutation.

func (*HPEventMutation) OpenAtCleared

func (m *HPEventMutation) OpenAtCleared() bool

OpenAtCleared returns if the "open_at" field was cleared in this mutation.

func (*HPEventMutation) Prefecture

func (m *HPEventMutation) Prefecture() (r string, exists bool)

Prefecture returns the value of the "prefecture" field in the mutation.

func (*HPEventMutation) RemoveArtistIDs

func (m *HPEventMutation) RemoveArtistIDs(ids ...int)

RemoveArtistIDs removes the "artists" edge to the HPArtist entity by IDs.

func (*HPEventMutation) RemoveHpfcEventTicketIDs

func (m *HPEventMutation) RemoveHpfcEventTicketIDs(ids ...int)

RemoveHpfcEventTicketIDs removes the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*HPEventMutation) RemoveMemberIDs

func (m *HPEventMutation) RemoveMemberIDs(ids ...int)

RemoveMemberIDs removes the "members" edge to the HPMember entity by IDs.

func (*HPEventMutation) RemovedArtistsIDs

func (m *HPEventMutation) RemovedArtistsIDs() (ids []int)

RemovedArtists returns the removed IDs of the "artists" edge to the HPArtist entity.

func (*HPEventMutation) RemovedEdges

func (m *HPEventMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPEventMutation) RemovedHpfcEventTicketsIDs

func (m *HPEventMutation) RemovedHpfcEventTicketsIDs() (ids []int)

RemovedHpfcEventTickets returns the removed IDs of the "hpfc_event_tickets" edge to the HPFCEventTicket entity.

func (*HPEventMutation) RemovedIDs

func (m *HPEventMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPEventMutation) RemovedMembersIDs

func (m *HPEventMutation) RemovedMembersIDs() (ids []int)

RemovedMembers returns the removed IDs of the "members" edge to the HPMember entity.

func (*HPEventMutation) ResetArtists

func (m *HPEventMutation) ResetArtists()

ResetArtists resets all changes to the "artists" edge.

func (*HPEventMutation) ResetCreatedAt

func (m *HPEventMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPEventMutation) ResetDisplayTitles

func (m *HPEventMutation) ResetDisplayTitles()

ResetDisplayTitles resets all changes to the "display_titles" field.

func (*HPEventMutation) ResetEdge

func (m *HPEventMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPEventMutation) ResetField

func (m *HPEventMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPEventMutation) ResetHpfcEventTickets

func (m *HPEventMutation) ResetHpfcEventTickets()

ResetHpfcEventTickets resets all changes to the "hpfc_event_tickets" edge.

func (*HPEventMutation) ResetKey

func (m *HPEventMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*HPEventMutation) ResetMembers

func (m *HPEventMutation) ResetMembers()

ResetMembers resets all changes to the "members" edge.

func (*HPEventMutation) ResetOpenAt

func (m *HPEventMutation) ResetOpenAt()

ResetOpenAt resets all changes to the "open_at" field.

func (*HPEventMutation) ResetPrefecture

func (m *HPEventMutation) ResetPrefecture()

ResetPrefecture resets all changes to the "prefecture" field.

func (*HPEventMutation) ResetSource

func (m *HPEventMutation) ResetSource()

ResetSource resets all changes to the "source" field.

func (*HPEventMutation) ResetStartAt

func (m *HPEventMutation) ResetStartAt()

ResetStartAt resets all changes to the "start_at" field.

func (*HPEventMutation) ResetUpdatedAt

func (m *HPEventMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPEventMutation) ResetVenue

func (m *HPEventMutation) ResetVenue()

ResetVenue resets all changes to the "venue" field.

func (*HPEventMutation) SetCreatedAt

func (m *HPEventMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPEventMutation) SetDisplayTitles

func (m *HPEventMutation) SetDisplayTitles(s []string)

SetDisplayTitles sets the "display_titles" field.

func (*HPEventMutation) SetField

func (m *HPEventMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPEventMutation) SetKey

func (m *HPEventMutation) SetKey(s string)

SetKey sets the "key" field.

func (*HPEventMutation) SetOp

func (m *HPEventMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPEventMutation) SetOpenAt

func (m *HPEventMutation) SetOpenAt(t time.Time)

SetOpenAt sets the "open_at" field.

func (*HPEventMutation) SetPrefecture

func (m *HPEventMutation) SetPrefecture(s string)

SetPrefecture sets the "prefecture" field.

func (*HPEventMutation) SetSource

func (m *HPEventMutation) SetSource(ees enums.HPEventSource)

SetSource sets the "source" field.

func (*HPEventMutation) SetStartAt

func (m *HPEventMutation) SetStartAt(t time.Time)

SetStartAt sets the "start_at" field.

func (*HPEventMutation) SetUpdatedAt

func (m *HPEventMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPEventMutation) SetVenue

func (m *HPEventMutation) SetVenue(s string)

SetVenue sets the "venue" field.

func (*HPEventMutation) Source

func (m *HPEventMutation) Source() (r enums.HPEventSource, exists bool)

Source returns the value of the "source" field in the mutation.

func (*HPEventMutation) StartAt

func (m *HPEventMutation) StartAt() (r time.Time, exists bool)

StartAt returns the value of the "start_at" field in the mutation.

func (HPEventMutation) Tx

func (m HPEventMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPEventMutation) Type

func (m *HPEventMutation) Type() string

Type returns the node type of this mutation (HPEvent).

func (*HPEventMutation) UpdatedAt

func (m *HPEventMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPEventMutation) UpdatedAtCleared

func (m *HPEventMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPEventMutation) Venue

func (m *HPEventMutation) Venue() (r string, exists bool)

Venue returns the value of the "venue" field in the mutation.

func (*HPEventMutation) Where

func (m *HPEventMutation) Where(ps ...predicate.HPEvent)

Where appends a list predicates to the HPEventMutation builder.

func (*HPEventMutation) WhereP

func (m *HPEventMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPEventMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPEventOrder

HPEventOrder defines the ordering of HPEvent.

type HPEventOrder struct {
    Direction OrderDirection     `json:"direction"`
    Field     *HPEventOrderField `json:"field"`
}

type HPEventOrderField

HPEventOrderField defines the ordering field of HPEvent.

type HPEventOrderField struct {
    // contains filtered or unexported fields
}

type HPEventPaginateOption

HPEventPaginateOption enables pagination customization.

type HPEventPaginateOption func(*hpeventPager) error

func WithHPEventFilter

func WithHPEventFilter(filter func(*HPEventQuery) (*HPEventQuery, error)) HPEventPaginateOption

WithHPEventFilter configures pagination filter.

func WithHPEventOrder

func WithHPEventOrder(order *HPEventOrder) HPEventPaginateOption

WithHPEventOrder configures pagination ordering.

type HPEventQuery

HPEventQuery is the builder for querying HPEvent entities.

type HPEventQuery struct {
    // contains filtered or unexported fields
}

func (*HPEventQuery) Aggregate

func (heq *HPEventQuery) Aggregate(fns ...AggregateFunc) *HPEventSelect

Aggregate returns a HPEventSelect configured with the given aggregations.

func (*HPEventQuery) All

func (heq *HPEventQuery) All(ctx context.Context) ([]*HPEvent, error)

All executes the query and returns a list of HPEvents.

func (*HPEventQuery) AllX

func (heq *HPEventQuery) AllX(ctx context.Context) []*HPEvent

AllX is like All, but panics if an error occurs.

func (*HPEventQuery) Clone

func (heq *HPEventQuery) Clone() *HPEventQuery

Clone returns a duplicate of the HPEventQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPEventQuery) CollectFields

func (he *HPEventQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPEventQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPEventQuery) Count

func (heq *HPEventQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPEventQuery) CountX

func (heq *HPEventQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPEventQuery) Exist

func (heq *HPEventQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPEventQuery) ExistX

func (heq *HPEventQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPEventQuery) Filter

func (heq *HPEventQuery) Filter() *HPEventFilter

Filter returns a Filter implementation to apply filters on the HPEventQuery builder.

func (*HPEventQuery) First

func (heq *HPEventQuery) First(ctx context.Context) (*HPEvent, error)

First returns the first HPEvent entity from the query. Returns a *NotFoundError when no HPEvent was found.

func (*HPEventQuery) FirstID

func (heq *HPEventQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPEvent ID from the query. Returns a *NotFoundError when no HPEvent ID was found.

func (*HPEventQuery) FirstIDX

func (heq *HPEventQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPEventQuery) FirstX

func (heq *HPEventQuery) FirstX(ctx context.Context) *HPEvent

FirstX is like First, but panics if an error occurs.

func (*HPEventQuery) GroupBy

func (heq *HPEventQuery) GroupBy(field string, fields ...string) *HPEventGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPEvent.Query().
	GroupBy(hpevent.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPEventQuery) IDs

func (heq *HPEventQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPEvent IDs.

func (*HPEventQuery) IDsX

func (heq *HPEventQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPEventQuery) Limit

func (heq *HPEventQuery) Limit(limit int) *HPEventQuery

Limit the number of records to be returned by this query.

func (*HPEventQuery) Offset

func (heq *HPEventQuery) Offset(offset int) *HPEventQuery

Offset to start from.

func (*HPEventQuery) Only

func (heq *HPEventQuery) Only(ctx context.Context) (*HPEvent, error)

Only returns a single HPEvent entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPEvent entity is found. Returns a *NotFoundError when no HPEvent entities are found.

func (*HPEventQuery) OnlyID

func (heq *HPEventQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPEvent ID in the query. Returns a *NotSingularError when more than one HPEvent ID is found. Returns a *NotFoundError when no entities are found.

func (*HPEventQuery) OnlyIDX

func (heq *HPEventQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPEventQuery) OnlyX

func (heq *HPEventQuery) OnlyX(ctx context.Context) *HPEvent

OnlyX is like Only, but panics if an error occurs.

func (*HPEventQuery) Order

func (heq *HPEventQuery) Order(o ...hpevent.Order) *HPEventQuery

Order specifies how the records should be ordered.

func (*HPEventQuery) Paginate

func (he *HPEventQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPEventPaginateOption,
) (*HPEventConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPEvent.

func (*HPEventQuery) QueryArtists

func (heq *HPEventQuery) QueryArtists() *HPArtistQuery

QueryArtists chains the current query on the "artists" edge.

func (*HPEventQuery) QueryHpfcEventTickets

func (heq *HPEventQuery) QueryHpfcEventTickets() *HPFCEventTicketQuery

QueryHpfcEventTickets chains the current query on the "hpfc_event_tickets" edge.

func (*HPEventQuery) QueryMembers

func (heq *HPEventQuery) QueryMembers() *HPMemberQuery

QueryMembers chains the current query on the "members" edge.

func (*HPEventQuery) Select

func (heq *HPEventQuery) Select(fields ...string) *HPEventSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.HPEvent.Query().
	Select(hpevent.FieldCreatedAt).
	Scan(ctx, &v)

func (*HPEventQuery) Unique

func (heq *HPEventQuery) Unique(unique bool) *HPEventQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPEventQuery) Where

func (heq *HPEventQuery) Where(ps ...predicate.HPEvent) *HPEventQuery

Where adds a new predicate for the HPEventQuery builder.

func (*HPEventQuery) WithArtists

func (heq *HPEventQuery) WithArtists(opts ...func(*HPArtistQuery)) *HPEventQuery

WithArtists tells the query-builder to eager-load the nodes that are connected to the "artists" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPEventQuery) WithHpfcEventTickets

func (heq *HPEventQuery) WithHpfcEventTickets(opts ...func(*HPFCEventTicketQuery)) *HPEventQuery

WithHpfcEventTickets tells the query-builder to eager-load the nodes that are connected to the "hpfc_event_tickets" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPEventQuery) WithMembers

func (heq *HPEventQuery) WithMembers(opts ...func(*HPMemberQuery)) *HPEventQuery

WithMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPEventQuery) WithNamedArtists

func (heq *HPEventQuery) WithNamedArtists(name string, opts ...func(*HPArtistQuery)) *HPEventQuery

WithNamedArtists tells the query-builder to eager-load the nodes that are connected to the "artists" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPEventQuery) WithNamedHpfcEventTickets

func (heq *HPEventQuery) WithNamedHpfcEventTickets(name string, opts ...func(*HPFCEventTicketQuery)) *HPEventQuery

WithNamedHpfcEventTickets tells the query-builder to eager-load the nodes that are connected to the "hpfc_event_tickets" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPEventQuery) WithNamedMembers

func (heq *HPEventQuery) WithNamedMembers(name string, opts ...func(*HPMemberQuery)) *HPEventQuery

WithNamedMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge with the given name. The optional arguments are used to configure the query builder of the edge.

type HPEventSelect

HPEventSelect is the builder for selecting fields of HPEvent entities.

type HPEventSelect struct {
    *HPEventQuery
    // contains filtered or unexported fields
}

func (*HPEventSelect) Aggregate

func (hes *HPEventSelect) Aggregate(fns ...AggregateFunc) *HPEventSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPEventSelect) Bool

func (s *HPEventSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) BoolX

func (s *HPEventSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPEventSelect) Bools

func (s *HPEventSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) BoolsX

func (s *HPEventSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPEventSelect) Float64

func (s *HPEventSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) Float64X

func (s *HPEventSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPEventSelect) Float64s

func (s *HPEventSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) Float64sX

func (s *HPEventSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPEventSelect) Int

func (s *HPEventSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) IntX

func (s *HPEventSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPEventSelect) Ints

func (s *HPEventSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) IntsX

func (s *HPEventSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPEventSelect) Scan

func (hes *HPEventSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPEventSelect) ScanX

func (s *HPEventSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPEventSelect) String

func (s *HPEventSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) StringX

func (s *HPEventSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPEventSelect) Strings

func (s *HPEventSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPEventSelect) StringsX

func (s *HPEventSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPEventUpdate

HPEventUpdate is the builder for updating HPEvent entities.

type HPEventUpdate struct {
    // contains filtered or unexported fields
}

func (*HPEventUpdate) AddArtistIDs

func (heu *HPEventUpdate) AddArtistIDs(ids ...int) *HPEventUpdate

AddArtistIDs adds the "artists" edge to the HPArtist entity by IDs.

func (*HPEventUpdate) AddArtists

func (heu *HPEventUpdate) AddArtists(h ...*HPArtist) *HPEventUpdate

AddArtists adds the "artists" edges to the HPArtist entity.

func (*HPEventUpdate) AddHpfcEventTicketIDs

func (heu *HPEventUpdate) AddHpfcEventTicketIDs(ids ...int) *HPEventUpdate

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*HPEventUpdate) AddHpfcEventTickets

func (heu *HPEventUpdate) AddHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdate

AddHpfcEventTickets adds the "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*HPEventUpdate) AddMemberIDs

func (heu *HPEventUpdate) AddMemberIDs(ids ...int) *HPEventUpdate

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPEventUpdate) AddMembers

func (heu *HPEventUpdate) AddMembers(h ...*HPMember) *HPEventUpdate

AddMembers adds the "members" edges to the HPMember entity.

func (*HPEventUpdate) AppendDisplayTitles

func (heu *HPEventUpdate) AppendDisplayTitles(s []string) *HPEventUpdate

AppendDisplayTitles appends s to the "display_titles" field.

func (*HPEventUpdate) ClearArtists

func (heu *HPEventUpdate) ClearArtists() *HPEventUpdate

ClearArtists clears all "artists" edges to the HPArtist entity.

func (*HPEventUpdate) ClearHpfcEventTickets

func (heu *HPEventUpdate) ClearHpfcEventTickets() *HPEventUpdate

ClearHpfcEventTickets clears all "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*HPEventUpdate) ClearMembers

func (heu *HPEventUpdate) ClearMembers() *HPEventUpdate

ClearMembers clears all "members" edges to the HPMember entity.

func (*HPEventUpdate) ClearOpenAt

func (heu *HPEventUpdate) ClearOpenAt() *HPEventUpdate

ClearOpenAt clears the value of the "open_at" field.

func (*HPEventUpdate) ClearUpdatedAt

func (heu *HPEventUpdate) ClearUpdatedAt() *HPEventUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPEventUpdate) Exec

func (heu *HPEventUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPEventUpdate) ExecX

func (heu *HPEventUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPEventUpdate) Mutation

func (heu *HPEventUpdate) Mutation() *HPEventMutation

Mutation returns the HPEventMutation object of the builder.

func (*HPEventUpdate) RemoveArtistIDs

func (heu *HPEventUpdate) RemoveArtistIDs(ids ...int) *HPEventUpdate

RemoveArtistIDs removes the "artists" edge to HPArtist entities by IDs.

func (*HPEventUpdate) RemoveArtists

func (heu *HPEventUpdate) RemoveArtists(h ...*HPArtist) *HPEventUpdate

RemoveArtists removes "artists" edges to HPArtist entities.

func (*HPEventUpdate) RemoveHpfcEventTicketIDs

func (heu *HPEventUpdate) RemoveHpfcEventTicketIDs(ids ...int) *HPEventUpdate

RemoveHpfcEventTicketIDs removes the "hpfc_event_tickets" edge to HPFCEventTicket entities by IDs.

func (*HPEventUpdate) RemoveHpfcEventTickets

func (heu *HPEventUpdate) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdate

RemoveHpfcEventTickets removes "hpfc_event_tickets" edges to HPFCEventTicket entities.

func (*HPEventUpdate) RemoveMemberIDs

func (heu *HPEventUpdate) RemoveMemberIDs(ids ...int) *HPEventUpdate

RemoveMemberIDs removes the "members" edge to HPMember entities by IDs.

func (*HPEventUpdate) RemoveMembers

func (heu *HPEventUpdate) RemoveMembers(h ...*HPMember) *HPEventUpdate

RemoveMembers removes "members" edges to HPMember entities.

func (*HPEventUpdate) Save

func (heu *HPEventUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPEventUpdate) SaveX

func (heu *HPEventUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPEventUpdate) SetDisplayTitles

func (heu *HPEventUpdate) SetDisplayTitles(s []string) *HPEventUpdate

SetDisplayTitles sets the "display_titles" field.

func (*HPEventUpdate) SetKey

func (heu *HPEventUpdate) SetKey(s string) *HPEventUpdate

SetKey sets the "key" field.

func (*HPEventUpdate) SetNillableOpenAt

func (heu *HPEventUpdate) SetNillableOpenAt(t *time.Time) *HPEventUpdate

SetNillableOpenAt sets the "open_at" field if the given value is not nil.

func (*HPEventUpdate) SetNillableSource

func (heu *HPEventUpdate) SetNillableSource(ees *enums.HPEventSource) *HPEventUpdate

SetNillableSource sets the "source" field if the given value is not nil.

func (*HPEventUpdate) SetNillableUpdatedAt

func (heu *HPEventUpdate) SetNillableUpdatedAt(t *time.Time) *HPEventUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPEventUpdate) SetOpenAt

func (heu *HPEventUpdate) SetOpenAt(t time.Time) *HPEventUpdate

SetOpenAt sets the "open_at" field.

func (*HPEventUpdate) SetPrefecture

func (heu *HPEventUpdate) SetPrefecture(s string) *HPEventUpdate

SetPrefecture sets the "prefecture" field.

func (*HPEventUpdate) SetSource

func (heu *HPEventUpdate) SetSource(ees enums.HPEventSource) *HPEventUpdate

SetSource sets the "source" field.

func (*HPEventUpdate) SetStartAt

func (heu *HPEventUpdate) SetStartAt(t time.Time) *HPEventUpdate

SetStartAt sets the "start_at" field.

func (*HPEventUpdate) SetUpdatedAt

func (heu *HPEventUpdate) SetUpdatedAt(t time.Time) *HPEventUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPEventUpdate) SetVenue

func (heu *HPEventUpdate) SetVenue(s string) *HPEventUpdate

SetVenue sets the "venue" field.

func (*HPEventUpdate) Where

func (heu *HPEventUpdate) Where(ps ...predicate.HPEvent) *HPEventUpdate

Where appends a list predicates to the HPEventUpdate builder.

type HPEventUpdateOne

HPEventUpdateOne is the builder for updating a single HPEvent entity.

type HPEventUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPEventUpdateOne) AddArtistIDs

func (heuo *HPEventUpdateOne) AddArtistIDs(ids ...int) *HPEventUpdateOne

AddArtistIDs adds the "artists" edge to the HPArtist entity by IDs.

func (*HPEventUpdateOne) AddArtists

func (heuo *HPEventUpdateOne) AddArtists(h ...*HPArtist) *HPEventUpdateOne

AddArtists adds the "artists" edges to the HPArtist entity.

func (*HPEventUpdateOne) AddHpfcEventTicketIDs

func (heuo *HPEventUpdateOne) AddHpfcEventTicketIDs(ids ...int) *HPEventUpdateOne

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*HPEventUpdateOne) AddHpfcEventTickets

func (heuo *HPEventUpdateOne) AddHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdateOne

AddHpfcEventTickets adds the "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*HPEventUpdateOne) AddMemberIDs

func (heuo *HPEventUpdateOne) AddMemberIDs(ids ...int) *HPEventUpdateOne

AddMemberIDs adds the "members" edge to the HPMember entity by IDs.

func (*HPEventUpdateOne) AddMembers

func (heuo *HPEventUpdateOne) AddMembers(h ...*HPMember) *HPEventUpdateOne

AddMembers adds the "members" edges to the HPMember entity.

func (*HPEventUpdateOne) AppendDisplayTitles

func (heuo *HPEventUpdateOne) AppendDisplayTitles(s []string) *HPEventUpdateOne

AppendDisplayTitles appends s to the "display_titles" field.

func (*HPEventUpdateOne) ClearArtists

func (heuo *HPEventUpdateOne) ClearArtists() *HPEventUpdateOne

ClearArtists clears all "artists" edges to the HPArtist entity.

func (*HPEventUpdateOne) ClearHpfcEventTickets

func (heuo *HPEventUpdateOne) ClearHpfcEventTickets() *HPEventUpdateOne

ClearHpfcEventTickets clears all "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*HPEventUpdateOne) ClearMembers

func (heuo *HPEventUpdateOne) ClearMembers() *HPEventUpdateOne

ClearMembers clears all "members" edges to the HPMember entity.

func (*HPEventUpdateOne) ClearOpenAt

func (heuo *HPEventUpdateOne) ClearOpenAt() *HPEventUpdateOne

ClearOpenAt clears the value of the "open_at" field.

func (*HPEventUpdateOne) ClearUpdatedAt

func (heuo *HPEventUpdateOne) ClearUpdatedAt() *HPEventUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPEventUpdateOne) Exec

func (heuo *HPEventUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPEventUpdateOne) ExecX

func (heuo *HPEventUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPEventUpdateOne) Mutation

func (heuo *HPEventUpdateOne) Mutation() *HPEventMutation

Mutation returns the HPEventMutation object of the builder.

func (*HPEventUpdateOne) RemoveArtistIDs

func (heuo *HPEventUpdateOne) RemoveArtistIDs(ids ...int) *HPEventUpdateOne

RemoveArtistIDs removes the "artists" edge to HPArtist entities by IDs.

func (*HPEventUpdateOne) RemoveArtists

func (heuo *HPEventUpdateOne) RemoveArtists(h ...*HPArtist) *HPEventUpdateOne

RemoveArtists removes "artists" edges to HPArtist entities.

func (*HPEventUpdateOne) RemoveHpfcEventTicketIDs

func (heuo *HPEventUpdateOne) RemoveHpfcEventTicketIDs(ids ...int) *HPEventUpdateOne

RemoveHpfcEventTicketIDs removes the "hpfc_event_tickets" edge to HPFCEventTicket entities by IDs.

func (*HPEventUpdateOne) RemoveHpfcEventTickets

func (heuo *HPEventUpdateOne) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *HPEventUpdateOne

RemoveHpfcEventTickets removes "hpfc_event_tickets" edges to HPFCEventTicket entities.

func (*HPEventUpdateOne) RemoveMemberIDs

func (heuo *HPEventUpdateOne) RemoveMemberIDs(ids ...int) *HPEventUpdateOne

RemoveMemberIDs removes the "members" edge to HPMember entities by IDs.

func (*HPEventUpdateOne) RemoveMembers

func (heuo *HPEventUpdateOne) RemoveMembers(h ...*HPMember) *HPEventUpdateOne

RemoveMembers removes "members" edges to HPMember entities.

func (*HPEventUpdateOne) Save

func (heuo *HPEventUpdateOne) Save(ctx context.Context) (*HPEvent, error)

Save executes the query and returns the updated HPEvent entity.

func (*HPEventUpdateOne) SaveX

func (heuo *HPEventUpdateOne) SaveX(ctx context.Context) *HPEvent

SaveX is like Save, but panics if an error occurs.

func (*HPEventUpdateOne) Select

func (heuo *HPEventUpdateOne) Select(field string, fields ...string) *HPEventUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPEventUpdateOne) SetDisplayTitles

func (heuo *HPEventUpdateOne) SetDisplayTitles(s []string) *HPEventUpdateOne

SetDisplayTitles sets the "display_titles" field.

func (*HPEventUpdateOne) SetKey

func (heuo *HPEventUpdateOne) SetKey(s string) *HPEventUpdateOne

SetKey sets the "key" field.

func (*HPEventUpdateOne) SetNillableOpenAt

func (heuo *HPEventUpdateOne) SetNillableOpenAt(t *time.Time) *HPEventUpdateOne

SetNillableOpenAt sets the "open_at" field if the given value is not nil.

func (*HPEventUpdateOne) SetNillableSource

func (heuo *HPEventUpdateOne) SetNillableSource(ees *enums.HPEventSource) *HPEventUpdateOne

SetNillableSource sets the "source" field if the given value is not nil.

func (*HPEventUpdateOne) SetNillableUpdatedAt

func (heuo *HPEventUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPEventUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPEventUpdateOne) SetOpenAt

func (heuo *HPEventUpdateOne) SetOpenAt(t time.Time) *HPEventUpdateOne

SetOpenAt sets the "open_at" field.

func (*HPEventUpdateOne) SetPrefecture

func (heuo *HPEventUpdateOne) SetPrefecture(s string) *HPEventUpdateOne

SetPrefecture sets the "prefecture" field.

func (*HPEventUpdateOne) SetSource

func (heuo *HPEventUpdateOne) SetSource(ees enums.HPEventSource) *HPEventUpdateOne

SetSource sets the "source" field.

func (*HPEventUpdateOne) SetStartAt

func (heuo *HPEventUpdateOne) SetStartAt(t time.Time) *HPEventUpdateOne

SetStartAt sets the "start_at" field.

func (*HPEventUpdateOne) SetUpdatedAt

func (heuo *HPEventUpdateOne) SetUpdatedAt(t time.Time) *HPEventUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPEventUpdateOne) SetVenue

func (heuo *HPEventUpdateOne) SetVenue(s string) *HPEventUpdateOne

SetVenue sets the "venue" field.

func (*HPEventUpdateOne) Where

func (heuo *HPEventUpdateOne) Where(ps ...predicate.HPEvent) *HPEventUpdateOne

Where appends a list predicates to the HPEventUpdate builder.

type HPEventUpsert

HPEventUpsert is the "OnConflict" setter.

type HPEventUpsert struct {
    *sql.UpdateSet
}

func (*HPEventUpsert) ClearOpenAt

func (u *HPEventUpsert) ClearOpenAt() *HPEventUpsert

ClearOpenAt clears the value of the "open_at" field.

func (*HPEventUpsert) ClearUpdatedAt

func (u *HPEventUpsert) ClearUpdatedAt() *HPEventUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPEventUpsert) SetDisplayTitles

func (u *HPEventUpsert) SetDisplayTitles(v []string) *HPEventUpsert

SetDisplayTitles sets the "display_titles" field.

func (*HPEventUpsert) SetKey

func (u *HPEventUpsert) SetKey(v string) *HPEventUpsert

SetKey sets the "key" field.

func (*HPEventUpsert) SetOpenAt

func (u *HPEventUpsert) SetOpenAt(v time.Time) *HPEventUpsert

SetOpenAt sets the "open_at" field.

func (*HPEventUpsert) SetPrefecture

func (u *HPEventUpsert) SetPrefecture(v string) *HPEventUpsert

SetPrefecture sets the "prefecture" field.

func (*HPEventUpsert) SetSource

func (u *HPEventUpsert) SetSource(v enums.HPEventSource) *HPEventUpsert

SetSource sets the "source" field.

func (*HPEventUpsert) SetStartAt

func (u *HPEventUpsert) SetStartAt(v time.Time) *HPEventUpsert

SetStartAt sets the "start_at" field.

func (*HPEventUpsert) SetUpdatedAt

func (u *HPEventUpsert) SetUpdatedAt(v time.Time) *HPEventUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPEventUpsert) SetVenue

func (u *HPEventUpsert) SetVenue(v string) *HPEventUpsert

SetVenue sets the "venue" field.

func (*HPEventUpsert) UpdateDisplayTitles

func (u *HPEventUpsert) UpdateDisplayTitles() *HPEventUpsert

UpdateDisplayTitles sets the "display_titles" field to the value that was provided on create.

func (*HPEventUpsert) UpdateKey

func (u *HPEventUpsert) UpdateKey() *HPEventUpsert

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPEventUpsert) UpdateOpenAt

func (u *HPEventUpsert) UpdateOpenAt() *HPEventUpsert

UpdateOpenAt sets the "open_at" field to the value that was provided on create.

func (*HPEventUpsert) UpdatePrefecture

func (u *HPEventUpsert) UpdatePrefecture() *HPEventUpsert

UpdatePrefecture sets the "prefecture" field to the value that was provided on create.

func (*HPEventUpsert) UpdateSource

func (u *HPEventUpsert) UpdateSource() *HPEventUpsert

UpdateSource sets the "source" field to the value that was provided on create.

func (*HPEventUpsert) UpdateStartAt

func (u *HPEventUpsert) UpdateStartAt() *HPEventUpsert

UpdateStartAt sets the "start_at" field to the value that was provided on create.

func (*HPEventUpsert) UpdateUpdatedAt

func (u *HPEventUpsert) UpdateUpdatedAt() *HPEventUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*HPEventUpsert) UpdateVenue

func (u *HPEventUpsert) UpdateVenue() *HPEventUpsert

UpdateVenue sets the "venue" field to the value that was provided on create.

type HPEventUpsertBulk

HPEventUpsertBulk is the builder for "upsert"-ing a bulk of HPEvent nodes.

type HPEventUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPEventUpsertBulk) ClearOpenAt

func (u *HPEventUpsertBulk) ClearOpenAt() *HPEventUpsertBulk

ClearOpenAt clears the value of the "open_at" field.

func (*HPEventUpsertBulk) ClearUpdatedAt

func (u *HPEventUpsertBulk) ClearUpdatedAt() *HPEventUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPEventUpsertBulk) DoNothing

func (u *HPEventUpsertBulk) DoNothing() *HPEventUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPEventUpsertBulk) Exec

func (u *HPEventUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPEventUpsertBulk) ExecX

func (u *HPEventUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPEventUpsertBulk) Ignore

func (u *HPEventUpsertBulk) Ignore() *HPEventUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPEvent.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPEventUpsertBulk) SetDisplayTitles

func (u *HPEventUpsertBulk) SetDisplayTitles(v []string) *HPEventUpsertBulk

SetDisplayTitles sets the "display_titles" field.

func (*HPEventUpsertBulk) SetKey

func (u *HPEventUpsertBulk) SetKey(v string) *HPEventUpsertBulk

SetKey sets the "key" field.

func (*HPEventUpsertBulk) SetOpenAt

func (u *HPEventUpsertBulk) SetOpenAt(v time.Time) *HPEventUpsertBulk

SetOpenAt sets the "open_at" field.

func (*HPEventUpsertBulk) SetPrefecture

func (u *HPEventUpsertBulk) SetPrefecture(v string) *HPEventUpsertBulk

SetPrefecture sets the "prefecture" field.

func (*HPEventUpsertBulk) SetSource

func (u *HPEventUpsertBulk) SetSource(v enums.HPEventSource) *HPEventUpsertBulk

SetSource sets the "source" field.

func (*HPEventUpsertBulk) SetStartAt

func (u *HPEventUpsertBulk) SetStartAt(v time.Time) *HPEventUpsertBulk

SetStartAt sets the "start_at" field.

func (*HPEventUpsertBulk) SetUpdatedAt

func (u *HPEventUpsertBulk) SetUpdatedAt(v time.Time) *HPEventUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPEventUpsertBulk) SetVenue

func (u *HPEventUpsertBulk) SetVenue(v string) *HPEventUpsertBulk

SetVenue sets the "venue" field.

func (*HPEventUpsertBulk) Update

func (u *HPEventUpsertBulk) Update(set func(*HPEventUpsert)) *HPEventUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPEventCreateBulk.OnConflict documentation for more info.

func (*HPEventUpsertBulk) UpdateDisplayTitles

func (u *HPEventUpsertBulk) UpdateDisplayTitles() *HPEventUpsertBulk

UpdateDisplayTitles sets the "display_titles" field to the value that was provided on create.

func (*HPEventUpsertBulk) UpdateKey

func (u *HPEventUpsertBulk) UpdateKey() *HPEventUpsertBulk

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPEventUpsertBulk) UpdateNewValues

func (u *HPEventUpsertBulk) UpdateNewValues() *HPEventUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPEvent.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPEventUpsertBulk) UpdateOpenAt

func (u *HPEventUpsertBulk) UpdateOpenAt() *HPEventUpsertBulk

UpdateOpenAt sets the "open_at" field to the value that was provided on create.

func (*HPEventUpsertBulk) UpdatePrefecture

func (u *HPEventUpsertBulk) UpdatePrefecture() *HPEventUpsertBulk

UpdatePrefecture sets the "prefecture" field to the value that was provided on create.

func (*HPEventUpsertBulk) UpdateSource

func (u *HPEventUpsertBulk) UpdateSource() *HPEventUpsertBulk

UpdateSource sets the "source" field to the value that was provided on create.

func (*HPEventUpsertBulk) UpdateStartAt

func (u *HPEventUpsertBulk) UpdateStartAt() *HPEventUpsertBulk

UpdateStartAt sets the "start_at" field to the value that was provided on create.

func (*HPEventUpsertBulk) UpdateUpdatedAt

func (u *HPEventUpsertBulk) UpdateUpdatedAt() *HPEventUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*HPEventUpsertBulk) UpdateVenue

func (u *HPEventUpsertBulk) UpdateVenue() *HPEventUpsertBulk

UpdateVenue sets the "venue" field to the value that was provided on create.

type HPEventUpsertOne

HPEventUpsertOne is the builder for "upsert"-ing

one HPEvent node.
type HPEventUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPEventUpsertOne) ClearOpenAt

func (u *HPEventUpsertOne) ClearOpenAt() *HPEventUpsertOne

ClearOpenAt clears the value of the "open_at" field.

func (*HPEventUpsertOne) ClearUpdatedAt

func (u *HPEventUpsertOne) ClearUpdatedAt() *HPEventUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPEventUpsertOne) DoNothing

func (u *HPEventUpsertOne) DoNothing() *HPEventUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPEventUpsertOne) Exec

func (u *HPEventUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPEventUpsertOne) ExecX

func (u *HPEventUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPEventUpsertOne) ID

func (u *HPEventUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPEventUpsertOne) IDX

func (u *HPEventUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPEventUpsertOne) Ignore

func (u *HPEventUpsertOne) Ignore() *HPEventUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPEvent.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPEventUpsertOne) SetDisplayTitles

func (u *HPEventUpsertOne) SetDisplayTitles(v []string) *HPEventUpsertOne

SetDisplayTitles sets the "display_titles" field.

func (*HPEventUpsertOne) SetKey

func (u *HPEventUpsertOne) SetKey(v string) *HPEventUpsertOne

SetKey sets the "key" field.

func (*HPEventUpsertOne) SetOpenAt

func (u *HPEventUpsertOne) SetOpenAt(v time.Time) *HPEventUpsertOne

SetOpenAt sets the "open_at" field.

func (*HPEventUpsertOne) SetPrefecture

func (u *HPEventUpsertOne) SetPrefecture(v string) *HPEventUpsertOne

SetPrefecture sets the "prefecture" field.

func (*HPEventUpsertOne) SetSource

func (u *HPEventUpsertOne) SetSource(v enums.HPEventSource) *HPEventUpsertOne

SetSource sets the "source" field.

func (*HPEventUpsertOne) SetStartAt

func (u *HPEventUpsertOne) SetStartAt(v time.Time) *HPEventUpsertOne

SetStartAt sets the "start_at" field.

func (*HPEventUpsertOne) SetUpdatedAt

func (u *HPEventUpsertOne) SetUpdatedAt(v time.Time) *HPEventUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPEventUpsertOne) SetVenue

func (u *HPEventUpsertOne) SetVenue(v string) *HPEventUpsertOne

SetVenue sets the "venue" field.

func (*HPEventUpsertOne) Update

func (u *HPEventUpsertOne) Update(set func(*HPEventUpsert)) *HPEventUpsertOne

Update allows overriding fields `UPDATE` values. See the HPEventCreate.OnConflict documentation for more info.

func (*HPEventUpsertOne) UpdateDisplayTitles

func (u *HPEventUpsertOne) UpdateDisplayTitles() *HPEventUpsertOne

UpdateDisplayTitles sets the "display_titles" field to the value that was provided on create.

func (*HPEventUpsertOne) UpdateKey

func (u *HPEventUpsertOne) UpdateKey() *HPEventUpsertOne

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPEventUpsertOne) UpdateNewValues

func (u *HPEventUpsertOne) UpdateNewValues() *HPEventUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPEvent.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPEventUpsertOne) UpdateOpenAt

func (u *HPEventUpsertOne) UpdateOpenAt() *HPEventUpsertOne

UpdateOpenAt sets the "open_at" field to the value that was provided on create.

func (*HPEventUpsertOne) UpdatePrefecture

func (u *HPEventUpsertOne) UpdatePrefecture() *HPEventUpsertOne

UpdatePrefecture sets the "prefecture" field to the value that was provided on create.

func (*HPEventUpsertOne) UpdateSource

func (u *HPEventUpsertOne) UpdateSource() *HPEventUpsertOne

UpdateSource sets the "source" field to the value that was provided on create.

func (*HPEventUpsertOne) UpdateStartAt

func (u *HPEventUpsertOne) UpdateStartAt() *HPEventUpsertOne

UpdateStartAt sets the "start_at" field to the value that was provided on create.

func (*HPEventUpsertOne) UpdateUpdatedAt

func (u *HPEventUpsertOne) UpdateUpdatedAt() *HPEventUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*HPEventUpsertOne) UpdateVenue

func (u *HPEventUpsertOne) UpdateVenue() *HPEventUpsertOne

UpdateVenue sets the "venue" field to the value that was provided on create.

type HPEvents

HPEvents is a parsable slice of HPEvent.

type HPEvents []*HPEvent

type HPFCEventTicket

HPFCEventTicket is the model entity for the HPFCEventTicket schema.

type HPFCEventTicket struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Num holds the value of the "num" field.
    Num int `json:"num,omitempty"`
    // Status holds the value of the "status" field.
    Status enums.HPEventFCTicketStatus `json:"status,omitempty"`
    // FcMemberSha256 holds the value of the "fc_member_sha256" field.
    FcMemberSha256 string `json:"fc_member_sha256,omitempty"`
    // ApplicationTitle holds the value of the "application_title" field.
    ApplicationTitle string `json:"application_title,omitempty"`
    // ApplicationID holds the value of the "application_id" field.
    ApplicationID *string `json:"application_id,omitempty"`
    // ApplicationStartDate holds the value of the "application_start_date" field.
    ApplicationStartDate *time.Time `json:"application_start_date,omitempty"`
    // ApplicationDueDate holds the value of the "application_due_date" field.
    ApplicationDueDate *time.Time `json:"application_due_date,omitempty"`
    // PaymentStartDate holds the value of the "payment_start_date" field.
    PaymentStartDate *time.Time `json:"payment_start_date,omitempty"`
    // PaymentDueDate holds the value of the "payment_due_date" field.
    PaymentDueDate *time.Time `json:"payment_due_date,omitempty"`
    // OwnerUserID holds the value of the "owner_user_id" field.
    OwnerUserID int `json:"owner_user_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPFCEventTicketQuery when eager-loading is set.
    Edges HPFCEventTicketEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPFCEventTicket) IsNode

func (n *HPFCEventTicket) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPFCEventTicket) QueryEvent

func (het *HPFCEventTicket) QueryEvent() *HPEventQuery

QueryEvent queries the "event" edge of the HPFCEventTicket entity.

func (*HPFCEventTicket) QueryUser

func (het *HPFCEventTicket) QueryUser() *UserQuery

QueryUser queries the "user" edge of the HPFCEventTicket entity.

func (*HPFCEventTicket) String

func (het *HPFCEventTicket) String() string

String implements the fmt.Stringer.

func (*HPFCEventTicket) ToEdge

func (het *HPFCEventTicket) ToEdge(order *HPFCEventTicketOrder) *HPFCEventTicketEdge

ToEdge converts HPFCEventTicket into HPFCEventTicketEdge.

func (*HPFCEventTicket) Unwrap

func (het *HPFCEventTicket) Unwrap() *HPFCEventTicket

Unwrap unwraps the HPFCEventTicket entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPFCEventTicket) Update

func (het *HPFCEventTicket) Update() *HPFCEventTicketUpdateOne

Update returns a builder for updating this HPFCEventTicket. Note that you need to call HPFCEventTicket.Unwrap() before calling this method if this HPFCEventTicket was returned from a transaction, and the transaction was committed or rolled back.

func (*HPFCEventTicket) Value

func (het *HPFCEventTicket) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPFCEventTicket. This includes values selected through modifiers, order, etc.

type HPFCEventTicketClient

HPFCEventTicketClient is a client for the HPFCEventTicket schema.

type HPFCEventTicketClient struct {
    // contains filtered or unexported fields
}

func NewHPFCEventTicketClient

func NewHPFCEventTicketClient(c config) *HPFCEventTicketClient

NewHPFCEventTicketClient returns a client for the HPFCEventTicket from the given config.

func (*HPFCEventTicketClient) Create

func (c *HPFCEventTicketClient) Create() *HPFCEventTicketCreate

Create returns a builder for creating a HPFCEventTicket entity.

func (*HPFCEventTicketClient) CreateBulk

func (c *HPFCEventTicketClient) CreateBulk(builders ...*HPFCEventTicketCreate) *HPFCEventTicketCreateBulk

CreateBulk returns a builder for creating a bulk of HPFCEventTicket entities.

func (*HPFCEventTicketClient) Delete

func (c *HPFCEventTicketClient) Delete() *HPFCEventTicketDelete

Delete returns a delete builder for HPFCEventTicket.

func (*HPFCEventTicketClient) DeleteOne

func (c *HPFCEventTicketClient) DeleteOne(het *HPFCEventTicket) *HPFCEventTicketDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPFCEventTicketClient) DeleteOneID

func (c *HPFCEventTicketClient) DeleteOneID(id int) *HPFCEventTicketDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPFCEventTicketClient) Get

func (c *HPFCEventTicketClient) Get(ctx context.Context, id int) (*HPFCEventTicket, error)

Get returns a HPFCEventTicket entity by its id.

func (*HPFCEventTicketClient) GetX

func (c *HPFCEventTicketClient) GetX(ctx context.Context, id int) *HPFCEventTicket

GetX is like Get, but panics if an error occurs.

func (*HPFCEventTicketClient) Hooks

func (c *HPFCEventTicketClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPFCEventTicketClient) Intercept

func (c *HPFCEventTicketClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpfceventticket.Intercept(f(g(h())))`.

func (*HPFCEventTicketClient) Interceptors

func (c *HPFCEventTicketClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPFCEventTicketClient) Query

func (c *HPFCEventTicketClient) Query() *HPFCEventTicketQuery

Query returns a query builder for HPFCEventTicket.

func (*HPFCEventTicketClient) QueryEvent

func (c *HPFCEventTicketClient) QueryEvent(het *HPFCEventTicket) *HPEventQuery

QueryEvent queries the event edge of a HPFCEventTicket.

func (*HPFCEventTicketClient) QueryUser

func (c *HPFCEventTicketClient) QueryUser(het *HPFCEventTicket) *UserQuery

QueryUser queries the user edge of a HPFCEventTicket.

func (*HPFCEventTicketClient) Update

func (c *HPFCEventTicketClient) Update() *HPFCEventTicketUpdate

Update returns an update builder for HPFCEventTicket.

func (*HPFCEventTicketClient) UpdateOne

func (c *HPFCEventTicketClient) UpdateOne(het *HPFCEventTicket) *HPFCEventTicketUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPFCEventTicketClient) UpdateOneID

func (c *HPFCEventTicketClient) UpdateOneID(id int) *HPFCEventTicketUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPFCEventTicketClient) Use

func (c *HPFCEventTicketClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpfceventticket.Hooks(f(g(h())))`.

type HPFCEventTicketConnection

HPFCEventTicketConnection is the connection containing edges to HPFCEventTicket.

type HPFCEventTicketConnection struct {
    Edges      []*HPFCEventTicketEdge `json:"edges"`
    PageInfo   PageInfo               `json:"pageInfo"`
    TotalCount int                    `json:"totalCount"`
}

type HPFCEventTicketCreate

HPFCEventTicketCreate is the builder for creating a HPFCEventTicket entity.

type HPFCEventTicketCreate struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketCreate) Exec

func (hetc *HPFCEventTicketCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFCEventTicketCreate) ExecX

func (hetc *HPFCEventTicketCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketCreate) Mutation

func (hetc *HPFCEventTicketCreate) Mutation() *HPFCEventTicketMutation

Mutation returns the HPFCEventTicketMutation object of the builder.

func (*HPFCEventTicketCreate) OnConflict

func (hetc *HPFCEventTicketCreate) OnConflict(opts ...sql.ConflictOption) *HPFCEventTicketUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPFCEventTicket.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPFCEventTicketUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPFCEventTicketCreate) OnConflictColumns

func (hetc *HPFCEventTicketCreate) OnConflictColumns(columns ...string) *HPFCEventTicketUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPFCEventTicket.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPFCEventTicketCreate) Save

func (hetc *HPFCEventTicketCreate) Save(ctx context.Context) (*HPFCEventTicket, error)

Save creates the HPFCEventTicket in the database.

func (*HPFCEventTicketCreate) SaveX

func (hetc *HPFCEventTicketCreate) SaveX(ctx context.Context) *HPFCEventTicket

SaveX calls Save and panics if Save returns an error.

func (*HPFCEventTicketCreate) SetApplicationDueDate

func (hetc *HPFCEventTicketCreate) SetApplicationDueDate(t time.Time) *HPFCEventTicketCreate

SetApplicationDueDate sets the "application_due_date" field.

func (*HPFCEventTicketCreate) SetApplicationID

func (hetc *HPFCEventTicketCreate) SetApplicationID(s string) *HPFCEventTicketCreate

SetApplicationID sets the "application_id" field.

func (*HPFCEventTicketCreate) SetApplicationStartDate

func (hetc *HPFCEventTicketCreate) SetApplicationStartDate(t time.Time) *HPFCEventTicketCreate

SetApplicationStartDate sets the "application_start_date" field.

func (*HPFCEventTicketCreate) SetApplicationTitle

func (hetc *HPFCEventTicketCreate) SetApplicationTitle(s string) *HPFCEventTicketCreate

SetApplicationTitle sets the "application_title" field.

func (*HPFCEventTicketCreate) SetCreatedAt

func (hetc *HPFCEventTicketCreate) SetCreatedAt(t time.Time) *HPFCEventTicketCreate

SetCreatedAt sets the "created_at" field.

func (*HPFCEventTicketCreate) SetEvent

func (hetc *HPFCEventTicketCreate) SetEvent(h *HPEvent) *HPFCEventTicketCreate

SetEvent sets the "event" edge to the HPEvent entity.

func (*HPFCEventTicketCreate) SetEventID

func (hetc *HPFCEventTicketCreate) SetEventID(id int) *HPFCEventTicketCreate

SetEventID sets the "event" edge to the HPEvent entity by ID.

func (*HPFCEventTicketCreate) SetFcMemberSha256

func (hetc *HPFCEventTicketCreate) SetFcMemberSha256(s string) *HPFCEventTicketCreate

SetFcMemberSha256 sets the "fc_member_sha256" field.

func (*HPFCEventTicketCreate) SetNillableApplicationDueDate

func (hetc *HPFCEventTicketCreate) SetNillableApplicationDueDate(t *time.Time) *HPFCEventTicketCreate

SetNillableApplicationDueDate sets the "application_due_date" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillableApplicationID

func (hetc *HPFCEventTicketCreate) SetNillableApplicationID(s *string) *HPFCEventTicketCreate

SetNillableApplicationID sets the "application_id" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillableApplicationStartDate

func (hetc *HPFCEventTicketCreate) SetNillableApplicationStartDate(t *time.Time) *HPFCEventTicketCreate

SetNillableApplicationStartDate sets the "application_start_date" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillableCreatedAt

func (hetc *HPFCEventTicketCreate) SetNillableCreatedAt(t *time.Time) *HPFCEventTicketCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillableEventID

func (hetc *HPFCEventTicketCreate) SetNillableEventID(id *int) *HPFCEventTicketCreate

SetNillableEventID sets the "event" edge to the HPEvent entity by ID if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillablePaymentDueDate

func (hetc *HPFCEventTicketCreate) SetNillablePaymentDueDate(t *time.Time) *HPFCEventTicketCreate

SetNillablePaymentDueDate sets the "payment_due_date" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillablePaymentStartDate

func (hetc *HPFCEventTicketCreate) SetNillablePaymentStartDate(t *time.Time) *HPFCEventTicketCreate

SetNillablePaymentStartDate sets the "payment_start_date" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillableStatus

func (hetc *HPFCEventTicketCreate) SetNillableStatus(eefts *enums.HPEventFCTicketStatus) *HPFCEventTicketCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNillableUpdatedAt

func (hetc *HPFCEventTicketCreate) SetNillableUpdatedAt(t *time.Time) *HPFCEventTicketCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFCEventTicketCreate) SetNum

func (hetc *HPFCEventTicketCreate) SetNum(i int) *HPFCEventTicketCreate

SetNum sets the "num" field.

func (*HPFCEventTicketCreate) SetOwnerUserID

func (hetc *HPFCEventTicketCreate) SetOwnerUserID(i int) *HPFCEventTicketCreate

SetOwnerUserID sets the "owner_user_id" field.

func (*HPFCEventTicketCreate) SetPaymentDueDate

func (hetc *HPFCEventTicketCreate) SetPaymentDueDate(t time.Time) *HPFCEventTicketCreate

SetPaymentDueDate sets the "payment_due_date" field.

func (*HPFCEventTicketCreate) SetPaymentStartDate

func (hetc *HPFCEventTicketCreate) SetPaymentStartDate(t time.Time) *HPFCEventTicketCreate

SetPaymentStartDate sets the "payment_start_date" field.

func (*HPFCEventTicketCreate) SetStatus

func (hetc *HPFCEventTicketCreate) SetStatus(eefts enums.HPEventFCTicketStatus) *HPFCEventTicketCreate

SetStatus sets the "status" field.

func (*HPFCEventTicketCreate) SetUpdatedAt

func (hetc *HPFCEventTicketCreate) SetUpdatedAt(t time.Time) *HPFCEventTicketCreate

SetUpdatedAt sets the "updated_at" field.

func (*HPFCEventTicketCreate) SetUser

func (hetc *HPFCEventTicketCreate) SetUser(u *User) *HPFCEventTicketCreate

SetUser sets the "user" edge to the User entity.

func (*HPFCEventTicketCreate) SetUserID

func (hetc *HPFCEventTicketCreate) SetUserID(id int) *HPFCEventTicketCreate

SetUserID sets the "user" edge to the User entity by ID.

type HPFCEventTicketCreateBulk

HPFCEventTicketCreateBulk is the builder for creating many HPFCEventTicket entities in bulk.

type HPFCEventTicketCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketCreateBulk) Exec

func (hetcb *HPFCEventTicketCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFCEventTicketCreateBulk) ExecX

func (hetcb *HPFCEventTicketCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketCreateBulk) OnConflict

func (hetcb *HPFCEventTicketCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPFCEventTicketUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPFCEventTicket.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPFCEventTicketUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPFCEventTicketCreateBulk) OnConflictColumns

func (hetcb *HPFCEventTicketCreateBulk) OnConflictColumns(columns ...string) *HPFCEventTicketUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPFCEventTicket.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPFCEventTicketCreateBulk) Save

func (hetcb *HPFCEventTicketCreateBulk) Save(ctx context.Context) ([]*HPFCEventTicket, error)

Save creates the HPFCEventTicket entities in the database.

func (*HPFCEventTicketCreateBulk) SaveX

func (hetcb *HPFCEventTicketCreateBulk) SaveX(ctx context.Context) []*HPFCEventTicket

SaveX is like Save, but panics if an error occurs.

type HPFCEventTicketDelete

HPFCEventTicketDelete is the builder for deleting a HPFCEventTicket entity.

type HPFCEventTicketDelete struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketDelete) Exec

func (hetd *HPFCEventTicketDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPFCEventTicketDelete) ExecX

func (hetd *HPFCEventTicketDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketDelete) Where

func (hetd *HPFCEventTicketDelete) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketDelete

Where appends a list predicates to the HPFCEventTicketDelete builder.

type HPFCEventTicketDeleteOne

HPFCEventTicketDeleteOne is the builder for deleting a single HPFCEventTicket entity.

type HPFCEventTicketDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketDeleteOne) Exec

func (hetdo *HPFCEventTicketDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPFCEventTicketDeleteOne) ExecX

func (hetdo *HPFCEventTicketDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketDeleteOne) Where

func (hetdo *HPFCEventTicketDeleteOne) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketDeleteOne

Where appends a list predicates to the HPFCEventTicketDelete builder.

type HPFCEventTicketEdge

HPFCEventTicketEdge is the edge representation of HPFCEventTicket.

type HPFCEventTicketEdge struct {
    Node   *HPFCEventTicket `json:"node"`
    Cursor Cursor           `json:"cursor"`
}

type HPFCEventTicketEdges

HPFCEventTicketEdges holds the relations/edges for other nodes in the graph.

type HPFCEventTicketEdges struct {
    // Event holds the value of the event edge.
    Event *HPEvent `json:"event,omitempty"`
    // User holds the value of the user edge.
    User *User `json:"user,omitempty"`
    // contains filtered or unexported fields
}

func (HPFCEventTicketEdges) EventOrErr

func (e HPFCEventTicketEdges) EventOrErr() (*HPEvent, error)

EventOrErr returns the Event value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPFCEventTicketEdges) UserOrErr

func (e HPFCEventTicketEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type HPFCEventTicketFilter

HPFCEventTicketFilter provides a generic filtering capability at runtime for HPFCEventTicketQuery.

type HPFCEventTicketFilter struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketFilter) Where

func (f *HPFCEventTicketFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPFCEventTicketFilter) WhereApplicationDueDate

func (f *HPFCEventTicketFilter) WhereApplicationDueDate(p entql.TimeP)

WhereApplicationDueDate applies the entql time.Time predicate on the application_due_date field.

func (*HPFCEventTicketFilter) WhereApplicationID

func (f *HPFCEventTicketFilter) WhereApplicationID(p entql.StringP)

WhereApplicationID applies the entql string predicate on the application_id field.

func (*HPFCEventTicketFilter) WhereApplicationStartDate

func (f *HPFCEventTicketFilter) WhereApplicationStartDate(p entql.TimeP)

WhereApplicationStartDate applies the entql time.Time predicate on the application_start_date field.

func (*HPFCEventTicketFilter) WhereApplicationTitle

func (f *HPFCEventTicketFilter) WhereApplicationTitle(p entql.StringP)

WhereApplicationTitle applies the entql string predicate on the application_title field.

func (*HPFCEventTicketFilter) WhereCreatedAt

func (f *HPFCEventTicketFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPFCEventTicketFilter) WhereFcMemberSha256

func (f *HPFCEventTicketFilter) WhereFcMemberSha256(p entql.StringP)

WhereFcMemberSha256 applies the entql string predicate on the fc_member_sha256 field.

func (*HPFCEventTicketFilter) WhereHasEvent

func (f *HPFCEventTicketFilter) WhereHasEvent()

WhereHasEvent applies a predicate to check if query has an edge event.

func (*HPFCEventTicketFilter) WhereHasEventWith

func (f *HPFCEventTicketFilter) WhereHasEventWith(preds ...predicate.HPEvent)

WhereHasEventWith applies a predicate to check if query has an edge event with a given conditions (other predicates).

func (*HPFCEventTicketFilter) WhereHasUser

func (f *HPFCEventTicketFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*HPFCEventTicketFilter) WhereHasUserWith

func (f *HPFCEventTicketFilter) WhereHasUserWith(preds ...predicate.User)

WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates).

func (*HPFCEventTicketFilter) WhereID

func (f *HPFCEventTicketFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPFCEventTicketFilter) WhereNum

func (f *HPFCEventTicketFilter) WhereNum(p entql.IntP)

WhereNum applies the entql int predicate on the num field.

func (*HPFCEventTicketFilter) WhereOwnerUserID

func (f *HPFCEventTicketFilter) WhereOwnerUserID(p entql.IntP)

WhereOwnerUserID applies the entql int predicate on the owner_user_id field.

func (*HPFCEventTicketFilter) WherePaymentDueDate

func (f *HPFCEventTicketFilter) WherePaymentDueDate(p entql.TimeP)

WherePaymentDueDate applies the entql time.Time predicate on the payment_due_date field.

func (*HPFCEventTicketFilter) WherePaymentStartDate

func (f *HPFCEventTicketFilter) WherePaymentStartDate(p entql.TimeP)

WherePaymentStartDate applies the entql time.Time predicate on the payment_start_date field.

func (*HPFCEventTicketFilter) WhereStatus

func (f *HPFCEventTicketFilter) WhereStatus(p entql.StringP)

WhereStatus applies the entql string predicate on the status field.

func (*HPFCEventTicketFilter) WhereUpdatedAt

func (f *HPFCEventTicketFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPFCEventTicketGroupBy

HPFCEventTicketGroupBy is the group-by builder for HPFCEventTicket entities.

type HPFCEventTicketGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketGroupBy) Aggregate

func (hetgb *HPFCEventTicketGroupBy) Aggregate(fns ...AggregateFunc) *HPFCEventTicketGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPFCEventTicketGroupBy) Bool

func (s *HPFCEventTicketGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) BoolX

func (s *HPFCEventTicketGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) Bools

func (s *HPFCEventTicketGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) BoolsX

func (s *HPFCEventTicketGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) Float64

func (s *HPFCEventTicketGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) Float64X

func (s *HPFCEventTicketGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) Float64s

func (s *HPFCEventTicketGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) Float64sX

func (s *HPFCEventTicketGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) Int

func (s *HPFCEventTicketGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) IntX

func (s *HPFCEventTicketGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) Ints

func (s *HPFCEventTicketGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) IntsX

func (s *HPFCEventTicketGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) Scan

func (hetgb *HPFCEventTicketGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPFCEventTicketGroupBy) ScanX

func (s *HPFCEventTicketGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) String

func (s *HPFCEventTicketGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) StringX

func (s *HPFCEventTicketGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPFCEventTicketGroupBy) Strings

func (s *HPFCEventTicketGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketGroupBy) StringsX

func (s *HPFCEventTicketGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPFCEventTicketMutation

HPFCEventTicketMutation represents an operation that mutates the HPFCEventTicket nodes in the graph.

type HPFCEventTicketMutation struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketMutation) AddField

func (m *HPFCEventTicketMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPFCEventTicketMutation) AddNum

func (m *HPFCEventTicketMutation) AddNum(i int)

AddNum adds i to the "num" field.

func (*HPFCEventTicketMutation) AddedEdges

func (m *HPFCEventTicketMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPFCEventTicketMutation) AddedField

func (m *HPFCEventTicketMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPFCEventTicketMutation) AddedFields

func (m *HPFCEventTicketMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPFCEventTicketMutation) AddedIDs

func (m *HPFCEventTicketMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPFCEventTicketMutation) AddedNum

func (m *HPFCEventTicketMutation) AddedNum() (r int, exists bool)

AddedNum returns the value that was added to the "num" field in this mutation.

func (*HPFCEventTicketMutation) ApplicationDueDate

func (m *HPFCEventTicketMutation) ApplicationDueDate() (r time.Time, exists bool)

ApplicationDueDate returns the value of the "application_due_date" field in the mutation.

func (*HPFCEventTicketMutation) ApplicationDueDateCleared

func (m *HPFCEventTicketMutation) ApplicationDueDateCleared() bool

ApplicationDueDateCleared returns if the "application_due_date" field was cleared in this mutation.

func (*HPFCEventTicketMutation) ApplicationID

func (m *HPFCEventTicketMutation) ApplicationID() (r string, exists bool)

ApplicationID returns the value of the "application_id" field in the mutation.

func (*HPFCEventTicketMutation) ApplicationIDCleared

func (m *HPFCEventTicketMutation) ApplicationIDCleared() bool

ApplicationIDCleared returns if the "application_id" field was cleared in this mutation.

func (*HPFCEventTicketMutation) ApplicationStartDate

func (m *HPFCEventTicketMutation) ApplicationStartDate() (r time.Time, exists bool)

ApplicationStartDate returns the value of the "application_start_date" field in the mutation.

func (*HPFCEventTicketMutation) ApplicationStartDateCleared

func (m *HPFCEventTicketMutation) ApplicationStartDateCleared() bool

ApplicationStartDateCleared returns if the "application_start_date" field was cleared in this mutation.

func (*HPFCEventTicketMutation) ApplicationTitle

func (m *HPFCEventTicketMutation) ApplicationTitle() (r string, exists bool)

ApplicationTitle returns the value of the "application_title" field in the mutation.

func (*HPFCEventTicketMutation) ClearApplicationDueDate

func (m *HPFCEventTicketMutation) ClearApplicationDueDate()

ClearApplicationDueDate clears the value of the "application_due_date" field.

func (*HPFCEventTicketMutation) ClearApplicationID

func (m *HPFCEventTicketMutation) ClearApplicationID()

ClearApplicationID clears the value of the "application_id" field.

func (*HPFCEventTicketMutation) ClearApplicationStartDate

func (m *HPFCEventTicketMutation) ClearApplicationStartDate()

ClearApplicationStartDate clears the value of the "application_start_date" field.

func (*HPFCEventTicketMutation) ClearCreatedAt

func (m *HPFCEventTicketMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPFCEventTicketMutation) ClearEdge

func (m *HPFCEventTicketMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPFCEventTicketMutation) ClearEvent

func (m *HPFCEventTicketMutation) ClearEvent()

ClearEvent clears the "event" edge to the HPEvent entity.

func (*HPFCEventTicketMutation) ClearField

func (m *HPFCEventTicketMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPFCEventTicketMutation) ClearPaymentDueDate

func (m *HPFCEventTicketMutation) ClearPaymentDueDate()

ClearPaymentDueDate clears the value of the "payment_due_date" field.

func (*HPFCEventTicketMutation) ClearPaymentStartDate

func (m *HPFCEventTicketMutation) ClearPaymentStartDate()

ClearPaymentStartDate clears the value of the "payment_start_date" field.

func (*HPFCEventTicketMutation) ClearUpdatedAt

func (m *HPFCEventTicketMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFCEventTicketMutation) ClearUser

func (m *HPFCEventTicketMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*HPFCEventTicketMutation) ClearedEdges

func (m *HPFCEventTicketMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPFCEventTicketMutation) ClearedFields

func (m *HPFCEventTicketMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPFCEventTicketMutation) Client

func (m HPFCEventTicketMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPFCEventTicketMutation) CreatedAt

func (m *HPFCEventTicketMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPFCEventTicketMutation) CreatedAtCleared

func (m *HPFCEventTicketMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPFCEventTicketMutation) EdgeCleared

func (m *HPFCEventTicketMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPFCEventTicketMutation) EventCleared

func (m *HPFCEventTicketMutation) EventCleared() bool

EventCleared reports if the "event" edge to the HPEvent entity was cleared.

func (*HPFCEventTicketMutation) EventID

func (m *HPFCEventTicketMutation) EventID() (id int, exists bool)

EventID returns the "event" edge ID in the mutation.

func (*HPFCEventTicketMutation) EventIDs

func (m *HPFCEventTicketMutation) EventIDs() (ids []int)

EventIDs returns the "event" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use EventID instead. It exists only for internal usage by the builders.

func (*HPFCEventTicketMutation) FcMemberSha256

func (m *HPFCEventTicketMutation) FcMemberSha256() (r string, exists bool)

FcMemberSha256 returns the value of the "fc_member_sha256" field in the mutation.

func (*HPFCEventTicketMutation) Field

func (m *HPFCEventTicketMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPFCEventTicketMutation) FieldCleared

func (m *HPFCEventTicketMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPFCEventTicketMutation) Fields

func (m *HPFCEventTicketMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPFCEventTicketMutation) Filter

func (m *HPFCEventTicketMutation) Filter() *HPFCEventTicketFilter

Filter returns an entql.Where implementation to apply filters on the HPFCEventTicketMutation builder.

func (*HPFCEventTicketMutation) ID

func (m *HPFCEventTicketMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPFCEventTicketMutation) IDs

func (m *HPFCEventTicketMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPFCEventTicketMutation) Num

func (m *HPFCEventTicketMutation) Num() (r int, exists bool)

Num returns the value of the "num" field in the mutation.

func (*HPFCEventTicketMutation) OldApplicationDueDate

func (m *HPFCEventTicketMutation) OldApplicationDueDate(ctx context.Context) (v *time.Time, err error)

OldApplicationDueDate returns the old "application_due_date" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldApplicationID

func (m *HPFCEventTicketMutation) OldApplicationID(ctx context.Context) (v *string, err error)

OldApplicationID returns the old "application_id" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldApplicationStartDate

func (m *HPFCEventTicketMutation) OldApplicationStartDate(ctx context.Context) (v *time.Time, err error)

OldApplicationStartDate returns the old "application_start_date" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldApplicationTitle

func (m *HPFCEventTicketMutation) OldApplicationTitle(ctx context.Context) (v string, err error)

OldApplicationTitle returns the old "application_title" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldCreatedAt

func (m *HPFCEventTicketMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldFcMemberSha256

func (m *HPFCEventTicketMutation) OldFcMemberSha256(ctx context.Context) (v string, err error)

OldFcMemberSha256 returns the old "fc_member_sha256" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldField

func (m *HPFCEventTicketMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPFCEventTicketMutation) OldNum

func (m *HPFCEventTicketMutation) OldNum(ctx context.Context) (v int, err error)

OldNum returns the old "num" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldOwnerUserID

func (m *HPFCEventTicketMutation) OldOwnerUserID(ctx context.Context) (v int, err error)

OldOwnerUserID returns the old "owner_user_id" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldPaymentDueDate

func (m *HPFCEventTicketMutation) OldPaymentDueDate(ctx context.Context) (v *time.Time, err error)

OldPaymentDueDate returns the old "payment_due_date" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldPaymentStartDate

func (m *HPFCEventTicketMutation) OldPaymentStartDate(ctx context.Context) (v *time.Time, err error)

OldPaymentStartDate returns the old "payment_start_date" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldStatus

func (m *HPFCEventTicketMutation) OldStatus(ctx context.Context) (v enums.HPEventFCTicketStatus, err error)

OldStatus returns the old "status" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) OldUpdatedAt

func (m *HPFCEventTicketMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPFCEventTicket entity. If the HPFCEventTicket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFCEventTicketMutation) Op

func (m *HPFCEventTicketMutation) Op() Op

Op returns the operation name.

func (*HPFCEventTicketMutation) OwnerUserID

func (m *HPFCEventTicketMutation) OwnerUserID() (r int, exists bool)

OwnerUserID returns the value of the "owner_user_id" field in the mutation.

func (*HPFCEventTicketMutation) PaymentDueDate

func (m *HPFCEventTicketMutation) PaymentDueDate() (r time.Time, exists bool)

PaymentDueDate returns the value of the "payment_due_date" field in the mutation.

func (*HPFCEventTicketMutation) PaymentDueDateCleared

func (m *HPFCEventTicketMutation) PaymentDueDateCleared() bool

PaymentDueDateCleared returns if the "payment_due_date" field was cleared in this mutation.

func (*HPFCEventTicketMutation) PaymentStartDate

func (m *HPFCEventTicketMutation) PaymentStartDate() (r time.Time, exists bool)

PaymentStartDate returns the value of the "payment_start_date" field in the mutation.

func (*HPFCEventTicketMutation) PaymentStartDateCleared

func (m *HPFCEventTicketMutation) PaymentStartDateCleared() bool

PaymentStartDateCleared returns if the "payment_start_date" field was cleared in this mutation.

func (*HPFCEventTicketMutation) RemovedEdges

func (m *HPFCEventTicketMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPFCEventTicketMutation) RemovedIDs

func (m *HPFCEventTicketMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPFCEventTicketMutation) ResetApplicationDueDate

func (m *HPFCEventTicketMutation) ResetApplicationDueDate()

ResetApplicationDueDate resets all changes to the "application_due_date" field.

func (*HPFCEventTicketMutation) ResetApplicationID

func (m *HPFCEventTicketMutation) ResetApplicationID()

ResetApplicationID resets all changes to the "application_id" field.

func (*HPFCEventTicketMutation) ResetApplicationStartDate

func (m *HPFCEventTicketMutation) ResetApplicationStartDate()

ResetApplicationStartDate resets all changes to the "application_start_date" field.

func (*HPFCEventTicketMutation) ResetApplicationTitle

func (m *HPFCEventTicketMutation) ResetApplicationTitle()

ResetApplicationTitle resets all changes to the "application_title" field.

func (*HPFCEventTicketMutation) ResetCreatedAt

func (m *HPFCEventTicketMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPFCEventTicketMutation) ResetEdge

func (m *HPFCEventTicketMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPFCEventTicketMutation) ResetEvent

func (m *HPFCEventTicketMutation) ResetEvent()

ResetEvent resets all changes to the "event" edge.

func (*HPFCEventTicketMutation) ResetFcMemberSha256

func (m *HPFCEventTicketMutation) ResetFcMemberSha256()

ResetFcMemberSha256 resets all changes to the "fc_member_sha256" field.

func (*HPFCEventTicketMutation) ResetField

func (m *HPFCEventTicketMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPFCEventTicketMutation) ResetNum

func (m *HPFCEventTicketMutation) ResetNum()

ResetNum resets all changes to the "num" field.

func (*HPFCEventTicketMutation) ResetOwnerUserID

func (m *HPFCEventTicketMutation) ResetOwnerUserID()

ResetOwnerUserID resets all changes to the "owner_user_id" field.

func (*HPFCEventTicketMutation) ResetPaymentDueDate

func (m *HPFCEventTicketMutation) ResetPaymentDueDate()

ResetPaymentDueDate resets all changes to the "payment_due_date" field.

func (*HPFCEventTicketMutation) ResetPaymentStartDate

func (m *HPFCEventTicketMutation) ResetPaymentStartDate()

ResetPaymentStartDate resets all changes to the "payment_start_date" field.

func (*HPFCEventTicketMutation) ResetStatus

func (m *HPFCEventTicketMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*HPFCEventTicketMutation) ResetUpdatedAt

func (m *HPFCEventTicketMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPFCEventTicketMutation) ResetUser

func (m *HPFCEventTicketMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*HPFCEventTicketMutation) SetApplicationDueDate

func (m *HPFCEventTicketMutation) SetApplicationDueDate(t time.Time)

SetApplicationDueDate sets the "application_due_date" field.

func (*HPFCEventTicketMutation) SetApplicationID

func (m *HPFCEventTicketMutation) SetApplicationID(s string)

SetApplicationID sets the "application_id" field.

func (*HPFCEventTicketMutation) SetApplicationStartDate

func (m *HPFCEventTicketMutation) SetApplicationStartDate(t time.Time)

SetApplicationStartDate sets the "application_start_date" field.

func (*HPFCEventTicketMutation) SetApplicationTitle

func (m *HPFCEventTicketMutation) SetApplicationTitle(s string)

SetApplicationTitle sets the "application_title" field.

func (*HPFCEventTicketMutation) SetCreatedAt

func (m *HPFCEventTicketMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPFCEventTicketMutation) SetEventID

func (m *HPFCEventTicketMutation) SetEventID(id int)

SetEventID sets the "event" edge to the HPEvent entity by id.

func (*HPFCEventTicketMutation) SetFcMemberSha256

func (m *HPFCEventTicketMutation) SetFcMemberSha256(s string)

SetFcMemberSha256 sets the "fc_member_sha256" field.

func (*HPFCEventTicketMutation) SetField

func (m *HPFCEventTicketMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPFCEventTicketMutation) SetNum

func (m *HPFCEventTicketMutation) SetNum(i int)

SetNum sets the "num" field.

func (*HPFCEventTicketMutation) SetOp

func (m *HPFCEventTicketMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPFCEventTicketMutation) SetOwnerUserID

func (m *HPFCEventTicketMutation) SetOwnerUserID(i int)

SetOwnerUserID sets the "owner_user_id" field.

func (*HPFCEventTicketMutation) SetPaymentDueDate

func (m *HPFCEventTicketMutation) SetPaymentDueDate(t time.Time)

SetPaymentDueDate sets the "payment_due_date" field.

func (*HPFCEventTicketMutation) SetPaymentStartDate

func (m *HPFCEventTicketMutation) SetPaymentStartDate(t time.Time)

SetPaymentStartDate sets the "payment_start_date" field.

func (*HPFCEventTicketMutation) SetStatus

func (m *HPFCEventTicketMutation) SetStatus(eefts enums.HPEventFCTicketStatus)

SetStatus sets the "status" field.

func (*HPFCEventTicketMutation) SetUpdatedAt

func (m *HPFCEventTicketMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPFCEventTicketMutation) SetUserID

func (m *HPFCEventTicketMutation) SetUserID(id int)

SetUserID sets the "user" edge to the User entity by id.

func (*HPFCEventTicketMutation) Status

func (m *HPFCEventTicketMutation) Status() (r enums.HPEventFCTicketStatus, exists bool)

Status returns the value of the "status" field in the mutation.

func (HPFCEventTicketMutation) Tx

func (m HPFCEventTicketMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPFCEventTicketMutation) Type

func (m *HPFCEventTicketMutation) Type() string

Type returns the node type of this mutation (HPFCEventTicket).

func (*HPFCEventTicketMutation) UpdatedAt

func (m *HPFCEventTicketMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPFCEventTicketMutation) UpdatedAtCleared

func (m *HPFCEventTicketMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPFCEventTicketMutation) UserCleared

func (m *HPFCEventTicketMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*HPFCEventTicketMutation) UserID

func (m *HPFCEventTicketMutation) UserID() (id int, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*HPFCEventTicketMutation) UserIDs

func (m *HPFCEventTicketMutation) UserIDs() (ids []int)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*HPFCEventTicketMutation) Where

func (m *HPFCEventTicketMutation) Where(ps ...predicate.HPFCEventTicket)

Where appends a list predicates to the HPFCEventTicketMutation builder.

func (*HPFCEventTicketMutation) WhereP

func (m *HPFCEventTicketMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPFCEventTicketMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPFCEventTicketOrder

HPFCEventTicketOrder defines the ordering of HPFCEventTicket.

type HPFCEventTicketOrder struct {
    Direction OrderDirection             `json:"direction"`
    Field     *HPFCEventTicketOrderField `json:"field"`
}

type HPFCEventTicketOrderField

HPFCEventTicketOrderField defines the ordering field of HPFCEventTicket.

type HPFCEventTicketOrderField struct {
    // contains filtered or unexported fields
}

type HPFCEventTicketPaginateOption

HPFCEventTicketPaginateOption enables pagination customization.

type HPFCEventTicketPaginateOption func(*hpfceventticketPager) error

func WithHPFCEventTicketFilter

func WithHPFCEventTicketFilter(filter func(*HPFCEventTicketQuery) (*HPFCEventTicketQuery, error)) HPFCEventTicketPaginateOption

WithHPFCEventTicketFilter configures pagination filter.

func WithHPFCEventTicketOrder

func WithHPFCEventTicketOrder(order *HPFCEventTicketOrder) HPFCEventTicketPaginateOption

WithHPFCEventTicketOrder configures pagination ordering.

type HPFCEventTicketQuery

HPFCEventTicketQuery is the builder for querying HPFCEventTicket entities.

type HPFCEventTicketQuery struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketQuery) Aggregate

func (hetq *HPFCEventTicketQuery) Aggregate(fns ...AggregateFunc) *HPFCEventTicketSelect

Aggregate returns a HPFCEventTicketSelect configured with the given aggregations.

func (*HPFCEventTicketQuery) All

func (hetq *HPFCEventTicketQuery) All(ctx context.Context) ([]*HPFCEventTicket, error)

All executes the query and returns a list of HPFCEventTickets.

func (*HPFCEventTicketQuery) AllX

func (hetq *HPFCEventTicketQuery) AllX(ctx context.Context) []*HPFCEventTicket

AllX is like All, but panics if an error occurs.

func (*HPFCEventTicketQuery) Clone

func (hetq *HPFCEventTicketQuery) Clone() *HPFCEventTicketQuery

Clone returns a duplicate of the HPFCEventTicketQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPFCEventTicketQuery) CollectFields

func (het *HPFCEventTicketQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPFCEventTicketQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPFCEventTicketQuery) Count

func (hetq *HPFCEventTicketQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPFCEventTicketQuery) CountX

func (hetq *HPFCEventTicketQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPFCEventTicketQuery) Exist

func (hetq *HPFCEventTicketQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPFCEventTicketQuery) ExistX

func (hetq *HPFCEventTicketQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPFCEventTicketQuery) Filter

func (hetq *HPFCEventTicketQuery) Filter() *HPFCEventTicketFilter

Filter returns a Filter implementation to apply filters on the HPFCEventTicketQuery builder.

func (*HPFCEventTicketQuery) First

func (hetq *HPFCEventTicketQuery) First(ctx context.Context) (*HPFCEventTicket, error)

First returns the first HPFCEventTicket entity from the query. Returns a *NotFoundError when no HPFCEventTicket was found.

func (*HPFCEventTicketQuery) FirstID

func (hetq *HPFCEventTicketQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPFCEventTicket ID from the query. Returns a *NotFoundError when no HPFCEventTicket ID was found.

func (*HPFCEventTicketQuery) FirstIDX

func (hetq *HPFCEventTicketQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPFCEventTicketQuery) FirstX

func (hetq *HPFCEventTicketQuery) FirstX(ctx context.Context) *HPFCEventTicket

FirstX is like First, but panics if an error occurs.

func (*HPFCEventTicketQuery) GroupBy

func (hetq *HPFCEventTicketQuery) GroupBy(field string, fields ...string) *HPFCEventTicketGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPFCEventTicket.Query().
	GroupBy(hpfceventticket.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPFCEventTicketQuery) IDs

func (hetq *HPFCEventTicketQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPFCEventTicket IDs.

func (*HPFCEventTicketQuery) IDsX

func (hetq *HPFCEventTicketQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPFCEventTicketQuery) Limit

func (hetq *HPFCEventTicketQuery) Limit(limit int) *HPFCEventTicketQuery

Limit the number of records to be returned by this query.

func (*HPFCEventTicketQuery) Offset

func (hetq *HPFCEventTicketQuery) Offset(offset int) *HPFCEventTicketQuery

Offset to start from.

func (*HPFCEventTicketQuery) Only

func (hetq *HPFCEventTicketQuery) Only(ctx context.Context) (*HPFCEventTicket, error)

Only returns a single HPFCEventTicket entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPFCEventTicket entity is found. Returns a *NotFoundError when no HPFCEventTicket entities are found.

func (*HPFCEventTicketQuery) OnlyID

func (hetq *HPFCEventTicketQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPFCEventTicket ID in the query. Returns a *NotSingularError when more than one HPFCEventTicket ID is found. Returns a *NotFoundError when no entities are found.

func (*HPFCEventTicketQuery) OnlyIDX

func (hetq *HPFCEventTicketQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPFCEventTicketQuery) OnlyX

func (hetq *HPFCEventTicketQuery) OnlyX(ctx context.Context) *HPFCEventTicket

OnlyX is like Only, but panics if an error occurs.

func (*HPFCEventTicketQuery) Order

func (hetq *HPFCEventTicketQuery) Order(o ...hpfceventticket.Order) *HPFCEventTicketQuery

Order specifies how the records should be ordered.

func (*HPFCEventTicketQuery) Paginate

func (het *HPFCEventTicketQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPFCEventTicketPaginateOption,
) (*HPFCEventTicketConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPFCEventTicket.

func (*HPFCEventTicketQuery) QueryEvent

func (hetq *HPFCEventTicketQuery) QueryEvent() *HPEventQuery

QueryEvent chains the current query on the "event" edge.

func (*HPFCEventTicketQuery) QueryUser

func (hetq *HPFCEventTicketQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*HPFCEventTicketQuery) Select

func (hetq *HPFCEventTicketQuery) Select(fields ...string) *HPFCEventTicketSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.HPFCEventTicket.Query().
	Select(hpfceventticket.FieldCreatedAt).
	Scan(ctx, &v)

func (*HPFCEventTicketQuery) Unique

func (hetq *HPFCEventTicketQuery) Unique(unique bool) *HPFCEventTicketQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPFCEventTicketQuery) Where

func (hetq *HPFCEventTicketQuery) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketQuery

Where adds a new predicate for the HPFCEventTicketQuery builder.

func (*HPFCEventTicketQuery) WithEvent

func (hetq *HPFCEventTicketQuery) WithEvent(opts ...func(*HPEventQuery)) *HPFCEventTicketQuery

WithEvent tells the query-builder to eager-load the nodes that are connected to the "event" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPFCEventTicketQuery) WithUser

func (hetq *HPFCEventTicketQuery) WithUser(opts ...func(*UserQuery)) *HPFCEventTicketQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type HPFCEventTicketSelect

HPFCEventTicketSelect is the builder for selecting fields of HPFCEventTicket entities.

type HPFCEventTicketSelect struct {
    *HPFCEventTicketQuery
    // contains filtered or unexported fields
}

func (*HPFCEventTicketSelect) Aggregate

func (hets *HPFCEventTicketSelect) Aggregate(fns ...AggregateFunc) *HPFCEventTicketSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPFCEventTicketSelect) Bool

func (s *HPFCEventTicketSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) BoolX

func (s *HPFCEventTicketSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPFCEventTicketSelect) Bools

func (s *HPFCEventTicketSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) BoolsX

func (s *HPFCEventTicketSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPFCEventTicketSelect) Float64

func (s *HPFCEventTicketSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) Float64X

func (s *HPFCEventTicketSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPFCEventTicketSelect) Float64s

func (s *HPFCEventTicketSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) Float64sX

func (s *HPFCEventTicketSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPFCEventTicketSelect) Int

func (s *HPFCEventTicketSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) IntX

func (s *HPFCEventTicketSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPFCEventTicketSelect) Ints

func (s *HPFCEventTicketSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) IntsX

func (s *HPFCEventTicketSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPFCEventTicketSelect) Scan

func (hets *HPFCEventTicketSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPFCEventTicketSelect) ScanX

func (s *HPFCEventTicketSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPFCEventTicketSelect) String

func (s *HPFCEventTicketSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) StringX

func (s *HPFCEventTicketSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPFCEventTicketSelect) Strings

func (s *HPFCEventTicketSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPFCEventTicketSelect) StringsX

func (s *HPFCEventTicketSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPFCEventTicketUpdate

HPFCEventTicketUpdate is the builder for updating HPFCEventTicket entities.

type HPFCEventTicketUpdate struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketUpdate) AddNum

func (hetu *HPFCEventTicketUpdate) AddNum(i int) *HPFCEventTicketUpdate

AddNum adds i to the "num" field.

func (*HPFCEventTicketUpdate) ClearApplicationDueDate

func (hetu *HPFCEventTicketUpdate) ClearApplicationDueDate() *HPFCEventTicketUpdate

ClearApplicationDueDate clears the value of the "application_due_date" field.

func (*HPFCEventTicketUpdate) ClearApplicationID

func (hetu *HPFCEventTicketUpdate) ClearApplicationID() *HPFCEventTicketUpdate

ClearApplicationID clears the value of the "application_id" field.

func (*HPFCEventTicketUpdate) ClearApplicationStartDate

func (hetu *HPFCEventTicketUpdate) ClearApplicationStartDate() *HPFCEventTicketUpdate

ClearApplicationStartDate clears the value of the "application_start_date" field.

func (*HPFCEventTicketUpdate) ClearEvent

func (hetu *HPFCEventTicketUpdate) ClearEvent() *HPFCEventTicketUpdate

ClearEvent clears the "event" edge to the HPEvent entity.

func (*HPFCEventTicketUpdate) ClearPaymentDueDate

func (hetu *HPFCEventTicketUpdate) ClearPaymentDueDate() *HPFCEventTicketUpdate

ClearPaymentDueDate clears the value of the "payment_due_date" field.

func (*HPFCEventTicketUpdate) ClearPaymentStartDate

func (hetu *HPFCEventTicketUpdate) ClearPaymentStartDate() *HPFCEventTicketUpdate

ClearPaymentStartDate clears the value of the "payment_start_date" field.

func (*HPFCEventTicketUpdate) ClearUpdatedAt

func (hetu *HPFCEventTicketUpdate) ClearUpdatedAt() *HPFCEventTicketUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFCEventTicketUpdate) ClearUser

func (hetu *HPFCEventTicketUpdate) ClearUser() *HPFCEventTicketUpdate

ClearUser clears the "user" edge to the User entity.

func (*HPFCEventTicketUpdate) Exec

func (hetu *HPFCEventTicketUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFCEventTicketUpdate) ExecX

func (hetu *HPFCEventTicketUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketUpdate) Mutation

func (hetu *HPFCEventTicketUpdate) Mutation() *HPFCEventTicketMutation

Mutation returns the HPFCEventTicketMutation object of the builder.

func (*HPFCEventTicketUpdate) Save

func (hetu *HPFCEventTicketUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPFCEventTicketUpdate) SaveX

func (hetu *HPFCEventTicketUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPFCEventTicketUpdate) SetApplicationDueDate

func (hetu *HPFCEventTicketUpdate) SetApplicationDueDate(t time.Time) *HPFCEventTicketUpdate

SetApplicationDueDate sets the "application_due_date" field.

func (*HPFCEventTicketUpdate) SetApplicationID

func (hetu *HPFCEventTicketUpdate) SetApplicationID(s string) *HPFCEventTicketUpdate

SetApplicationID sets the "application_id" field.

func (*HPFCEventTicketUpdate) SetApplicationStartDate

func (hetu *HPFCEventTicketUpdate) SetApplicationStartDate(t time.Time) *HPFCEventTicketUpdate

SetApplicationStartDate sets the "application_start_date" field.

func (*HPFCEventTicketUpdate) SetApplicationTitle

func (hetu *HPFCEventTicketUpdate) SetApplicationTitle(s string) *HPFCEventTicketUpdate

SetApplicationTitle sets the "application_title" field.

func (*HPFCEventTicketUpdate) SetEvent

func (hetu *HPFCEventTicketUpdate) SetEvent(h *HPEvent) *HPFCEventTicketUpdate

SetEvent sets the "event" edge to the HPEvent entity.

func (*HPFCEventTicketUpdate) SetEventID

func (hetu *HPFCEventTicketUpdate) SetEventID(id int) *HPFCEventTicketUpdate

SetEventID sets the "event" edge to the HPEvent entity by ID.

func (*HPFCEventTicketUpdate) SetFcMemberSha256

func (hetu *HPFCEventTicketUpdate) SetFcMemberSha256(s string) *HPFCEventTicketUpdate

SetFcMemberSha256 sets the "fc_member_sha256" field.

func (*HPFCEventTicketUpdate) SetNillableApplicationDueDate

func (hetu *HPFCEventTicketUpdate) SetNillableApplicationDueDate(t *time.Time) *HPFCEventTicketUpdate

SetNillableApplicationDueDate sets the "application_due_date" field if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNillableApplicationID

func (hetu *HPFCEventTicketUpdate) SetNillableApplicationID(s *string) *HPFCEventTicketUpdate

SetNillableApplicationID sets the "application_id" field if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNillableApplicationStartDate

func (hetu *HPFCEventTicketUpdate) SetNillableApplicationStartDate(t *time.Time) *HPFCEventTicketUpdate

SetNillableApplicationStartDate sets the "application_start_date" field if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNillableEventID

func (hetu *HPFCEventTicketUpdate) SetNillableEventID(id *int) *HPFCEventTicketUpdate

SetNillableEventID sets the "event" edge to the HPEvent entity by ID if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNillablePaymentDueDate

func (hetu *HPFCEventTicketUpdate) SetNillablePaymentDueDate(t *time.Time) *HPFCEventTicketUpdate

SetNillablePaymentDueDate sets the "payment_due_date" field if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNillablePaymentStartDate

func (hetu *HPFCEventTicketUpdate) SetNillablePaymentStartDate(t *time.Time) *HPFCEventTicketUpdate

SetNillablePaymentStartDate sets the "payment_start_date" field if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNillableStatus

func (hetu *HPFCEventTicketUpdate) SetNillableStatus(eefts *enums.HPEventFCTicketStatus) *HPFCEventTicketUpdate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNillableUpdatedAt

func (hetu *HPFCEventTicketUpdate) SetNillableUpdatedAt(t *time.Time) *HPFCEventTicketUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFCEventTicketUpdate) SetNum

func (hetu *HPFCEventTicketUpdate) SetNum(i int) *HPFCEventTicketUpdate

SetNum sets the "num" field.

func (*HPFCEventTicketUpdate) SetOwnerUserID

func (hetu *HPFCEventTicketUpdate) SetOwnerUserID(i int) *HPFCEventTicketUpdate

SetOwnerUserID sets the "owner_user_id" field.

func (*HPFCEventTicketUpdate) SetPaymentDueDate

func (hetu *HPFCEventTicketUpdate) SetPaymentDueDate(t time.Time) *HPFCEventTicketUpdate

SetPaymentDueDate sets the "payment_due_date" field.

func (*HPFCEventTicketUpdate) SetPaymentStartDate

func (hetu *HPFCEventTicketUpdate) SetPaymentStartDate(t time.Time) *HPFCEventTicketUpdate

SetPaymentStartDate sets the "payment_start_date" field.

func (*HPFCEventTicketUpdate) SetStatus

func (hetu *HPFCEventTicketUpdate) SetStatus(eefts enums.HPEventFCTicketStatus) *HPFCEventTicketUpdate

SetStatus sets the "status" field.

func (*HPFCEventTicketUpdate) SetUpdatedAt

func (hetu *HPFCEventTicketUpdate) SetUpdatedAt(t time.Time) *HPFCEventTicketUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPFCEventTicketUpdate) SetUser

func (hetu *HPFCEventTicketUpdate) SetUser(u *User) *HPFCEventTicketUpdate

SetUser sets the "user" edge to the User entity.

func (*HPFCEventTicketUpdate) SetUserID

func (hetu *HPFCEventTicketUpdate) SetUserID(id int) *HPFCEventTicketUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*HPFCEventTicketUpdate) Where

func (hetu *HPFCEventTicketUpdate) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketUpdate

Where appends a list predicates to the HPFCEventTicketUpdate builder.

type HPFCEventTicketUpdateOne

HPFCEventTicketUpdateOne is the builder for updating a single HPFCEventTicket entity.

type HPFCEventTicketUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketUpdateOne) AddNum

func (hetuo *HPFCEventTicketUpdateOne) AddNum(i int) *HPFCEventTicketUpdateOne

AddNum adds i to the "num" field.

func (*HPFCEventTicketUpdateOne) ClearApplicationDueDate

func (hetuo *HPFCEventTicketUpdateOne) ClearApplicationDueDate() *HPFCEventTicketUpdateOne

ClearApplicationDueDate clears the value of the "application_due_date" field.

func (*HPFCEventTicketUpdateOne) ClearApplicationID

func (hetuo *HPFCEventTicketUpdateOne) ClearApplicationID() *HPFCEventTicketUpdateOne

ClearApplicationID clears the value of the "application_id" field.

func (*HPFCEventTicketUpdateOne) ClearApplicationStartDate

func (hetuo *HPFCEventTicketUpdateOne) ClearApplicationStartDate() *HPFCEventTicketUpdateOne

ClearApplicationStartDate clears the value of the "application_start_date" field.

func (*HPFCEventTicketUpdateOne) ClearEvent

func (hetuo *HPFCEventTicketUpdateOne) ClearEvent() *HPFCEventTicketUpdateOne

ClearEvent clears the "event" edge to the HPEvent entity.

func (*HPFCEventTicketUpdateOne) ClearPaymentDueDate

func (hetuo *HPFCEventTicketUpdateOne) ClearPaymentDueDate() *HPFCEventTicketUpdateOne

ClearPaymentDueDate clears the value of the "payment_due_date" field.

func (*HPFCEventTicketUpdateOne) ClearPaymentStartDate

func (hetuo *HPFCEventTicketUpdateOne) ClearPaymentStartDate() *HPFCEventTicketUpdateOne

ClearPaymentStartDate clears the value of the "payment_start_date" field.

func (*HPFCEventTicketUpdateOne) ClearUpdatedAt

func (hetuo *HPFCEventTicketUpdateOne) ClearUpdatedAt() *HPFCEventTicketUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFCEventTicketUpdateOne) ClearUser

func (hetuo *HPFCEventTicketUpdateOne) ClearUser() *HPFCEventTicketUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*HPFCEventTicketUpdateOne) Exec

func (hetuo *HPFCEventTicketUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPFCEventTicketUpdateOne) ExecX

func (hetuo *HPFCEventTicketUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketUpdateOne) Mutation

func (hetuo *HPFCEventTicketUpdateOne) Mutation() *HPFCEventTicketMutation

Mutation returns the HPFCEventTicketMutation object of the builder.

func (*HPFCEventTicketUpdateOne) Save

func (hetuo *HPFCEventTicketUpdateOne) Save(ctx context.Context) (*HPFCEventTicket, error)

Save executes the query and returns the updated HPFCEventTicket entity.

func (*HPFCEventTicketUpdateOne) SaveX

func (hetuo *HPFCEventTicketUpdateOne) SaveX(ctx context.Context) *HPFCEventTicket

SaveX is like Save, but panics if an error occurs.

func (*HPFCEventTicketUpdateOne) Select

func (hetuo *HPFCEventTicketUpdateOne) Select(field string, fields ...string) *HPFCEventTicketUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPFCEventTicketUpdateOne) SetApplicationDueDate

func (hetuo *HPFCEventTicketUpdateOne) SetApplicationDueDate(t time.Time) *HPFCEventTicketUpdateOne

SetApplicationDueDate sets the "application_due_date" field.

func (*HPFCEventTicketUpdateOne) SetApplicationID

func (hetuo *HPFCEventTicketUpdateOne) SetApplicationID(s string) *HPFCEventTicketUpdateOne

SetApplicationID sets the "application_id" field.

func (*HPFCEventTicketUpdateOne) SetApplicationStartDate

func (hetuo *HPFCEventTicketUpdateOne) SetApplicationStartDate(t time.Time) *HPFCEventTicketUpdateOne

SetApplicationStartDate sets the "application_start_date" field.

func (*HPFCEventTicketUpdateOne) SetApplicationTitle

func (hetuo *HPFCEventTicketUpdateOne) SetApplicationTitle(s string) *HPFCEventTicketUpdateOne

SetApplicationTitle sets the "application_title" field.

func (*HPFCEventTicketUpdateOne) SetEvent

func (hetuo *HPFCEventTicketUpdateOne) SetEvent(h *HPEvent) *HPFCEventTicketUpdateOne

SetEvent sets the "event" edge to the HPEvent entity.

func (*HPFCEventTicketUpdateOne) SetEventID

func (hetuo *HPFCEventTicketUpdateOne) SetEventID(id int) *HPFCEventTicketUpdateOne

SetEventID sets the "event" edge to the HPEvent entity by ID.

func (*HPFCEventTicketUpdateOne) SetFcMemberSha256

func (hetuo *HPFCEventTicketUpdateOne) SetFcMemberSha256(s string) *HPFCEventTicketUpdateOne

SetFcMemberSha256 sets the "fc_member_sha256" field.

func (*HPFCEventTicketUpdateOne) SetNillableApplicationDueDate

func (hetuo *HPFCEventTicketUpdateOne) SetNillableApplicationDueDate(t *time.Time) *HPFCEventTicketUpdateOne

SetNillableApplicationDueDate sets the "application_due_date" field if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNillableApplicationID

func (hetuo *HPFCEventTicketUpdateOne) SetNillableApplicationID(s *string) *HPFCEventTicketUpdateOne

SetNillableApplicationID sets the "application_id" field if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNillableApplicationStartDate

func (hetuo *HPFCEventTicketUpdateOne) SetNillableApplicationStartDate(t *time.Time) *HPFCEventTicketUpdateOne

SetNillableApplicationStartDate sets the "application_start_date" field if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNillableEventID

func (hetuo *HPFCEventTicketUpdateOne) SetNillableEventID(id *int) *HPFCEventTicketUpdateOne

SetNillableEventID sets the "event" edge to the HPEvent entity by ID if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNillablePaymentDueDate

func (hetuo *HPFCEventTicketUpdateOne) SetNillablePaymentDueDate(t *time.Time) *HPFCEventTicketUpdateOne

SetNillablePaymentDueDate sets the "payment_due_date" field if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNillablePaymentStartDate

func (hetuo *HPFCEventTicketUpdateOne) SetNillablePaymentStartDate(t *time.Time) *HPFCEventTicketUpdateOne

SetNillablePaymentStartDate sets the "payment_start_date" field if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNillableStatus

func (hetuo *HPFCEventTicketUpdateOne) SetNillableStatus(eefts *enums.HPEventFCTicketStatus) *HPFCEventTicketUpdateOne

SetNillableStatus sets the "status" field if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNillableUpdatedAt

func (hetuo *HPFCEventTicketUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFCEventTicketUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFCEventTicketUpdateOne) SetNum

func (hetuo *HPFCEventTicketUpdateOne) SetNum(i int) *HPFCEventTicketUpdateOne

SetNum sets the "num" field.

func (*HPFCEventTicketUpdateOne) SetOwnerUserID

func (hetuo *HPFCEventTicketUpdateOne) SetOwnerUserID(i int) *HPFCEventTicketUpdateOne

SetOwnerUserID sets the "owner_user_id" field.

func (*HPFCEventTicketUpdateOne) SetPaymentDueDate

func (hetuo *HPFCEventTicketUpdateOne) SetPaymentDueDate(t time.Time) *HPFCEventTicketUpdateOne

SetPaymentDueDate sets the "payment_due_date" field.

func (*HPFCEventTicketUpdateOne) SetPaymentStartDate

func (hetuo *HPFCEventTicketUpdateOne) SetPaymentStartDate(t time.Time) *HPFCEventTicketUpdateOne

SetPaymentStartDate sets the "payment_start_date" field.

func (*HPFCEventTicketUpdateOne) SetStatus

func (hetuo *HPFCEventTicketUpdateOne) SetStatus(eefts enums.HPEventFCTicketStatus) *HPFCEventTicketUpdateOne

SetStatus sets the "status" field.

func (*HPFCEventTicketUpdateOne) SetUpdatedAt

func (hetuo *HPFCEventTicketUpdateOne) SetUpdatedAt(t time.Time) *HPFCEventTicketUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPFCEventTicketUpdateOne) SetUser

func (hetuo *HPFCEventTicketUpdateOne) SetUser(u *User) *HPFCEventTicketUpdateOne

SetUser sets the "user" edge to the User entity.

func (*HPFCEventTicketUpdateOne) SetUserID

func (hetuo *HPFCEventTicketUpdateOne) SetUserID(id int) *HPFCEventTicketUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*HPFCEventTicketUpdateOne) Where

func (hetuo *HPFCEventTicketUpdateOne) Where(ps ...predicate.HPFCEventTicket) *HPFCEventTicketUpdateOne

Where appends a list predicates to the HPFCEventTicketUpdate builder.

type HPFCEventTicketUpsert

HPFCEventTicketUpsert is the "OnConflict" setter.

type HPFCEventTicketUpsert struct {
    *sql.UpdateSet
}

func (*HPFCEventTicketUpsert) AddNum

func (u *HPFCEventTicketUpsert) AddNum(v int) *HPFCEventTicketUpsert

AddNum adds v to the "num" field.

func (*HPFCEventTicketUpsert) ClearApplicationDueDate

func (u *HPFCEventTicketUpsert) ClearApplicationDueDate() *HPFCEventTicketUpsert

ClearApplicationDueDate clears the value of the "application_due_date" field.

func (*HPFCEventTicketUpsert) ClearApplicationID

func (u *HPFCEventTicketUpsert) ClearApplicationID() *HPFCEventTicketUpsert

ClearApplicationID clears the value of the "application_id" field.

func (*HPFCEventTicketUpsert) ClearApplicationStartDate

func (u *HPFCEventTicketUpsert) ClearApplicationStartDate() *HPFCEventTicketUpsert

ClearApplicationStartDate clears the value of the "application_start_date" field.

func (*HPFCEventTicketUpsert) ClearPaymentDueDate

func (u *HPFCEventTicketUpsert) ClearPaymentDueDate() *HPFCEventTicketUpsert

ClearPaymentDueDate clears the value of the "payment_due_date" field.

func (*HPFCEventTicketUpsert) ClearPaymentStartDate

func (u *HPFCEventTicketUpsert) ClearPaymentStartDate() *HPFCEventTicketUpsert

ClearPaymentStartDate clears the value of the "payment_start_date" field.

func (*HPFCEventTicketUpsert) ClearUpdatedAt

func (u *HPFCEventTicketUpsert) ClearUpdatedAt() *HPFCEventTicketUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFCEventTicketUpsert) SetApplicationDueDate

func (u *HPFCEventTicketUpsert) SetApplicationDueDate(v time.Time) *HPFCEventTicketUpsert

SetApplicationDueDate sets the "application_due_date" field.

func (*HPFCEventTicketUpsert) SetApplicationID

func (u *HPFCEventTicketUpsert) SetApplicationID(v string) *HPFCEventTicketUpsert

SetApplicationID sets the "application_id" field.

func (*HPFCEventTicketUpsert) SetApplicationStartDate

func (u *HPFCEventTicketUpsert) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsert

SetApplicationStartDate sets the "application_start_date" field.

func (*HPFCEventTicketUpsert) SetApplicationTitle

func (u *HPFCEventTicketUpsert) SetApplicationTitle(v string) *HPFCEventTicketUpsert

SetApplicationTitle sets the "application_title" field.

func (*HPFCEventTicketUpsert) SetFcMemberSha256

func (u *HPFCEventTicketUpsert) SetFcMemberSha256(v string) *HPFCEventTicketUpsert

SetFcMemberSha256 sets the "fc_member_sha256" field.

func (*HPFCEventTicketUpsert) SetNum

func (u *HPFCEventTicketUpsert) SetNum(v int) *HPFCEventTicketUpsert

SetNum sets the "num" field.

func (*HPFCEventTicketUpsert) SetOwnerUserID

func (u *HPFCEventTicketUpsert) SetOwnerUserID(v int) *HPFCEventTicketUpsert

SetOwnerUserID sets the "owner_user_id" field.

func (*HPFCEventTicketUpsert) SetPaymentDueDate

func (u *HPFCEventTicketUpsert) SetPaymentDueDate(v time.Time) *HPFCEventTicketUpsert

SetPaymentDueDate sets the "payment_due_date" field.

func (*HPFCEventTicketUpsert) SetPaymentStartDate

func (u *HPFCEventTicketUpsert) SetPaymentStartDate(v time.Time) *HPFCEventTicketUpsert

SetPaymentStartDate sets the "payment_start_date" field.

func (*HPFCEventTicketUpsert) SetStatus

func (u *HPFCEventTicketUpsert) SetStatus(v enums.HPEventFCTicketStatus) *HPFCEventTicketUpsert

SetStatus sets the "status" field.

func (*HPFCEventTicketUpsert) SetUpdatedAt

func (u *HPFCEventTicketUpsert) SetUpdatedAt(v time.Time) *HPFCEventTicketUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPFCEventTicketUpsert) UpdateApplicationDueDate

func (u *HPFCEventTicketUpsert) UpdateApplicationDueDate() *HPFCEventTicketUpsert

UpdateApplicationDueDate sets the "application_due_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateApplicationID

func (u *HPFCEventTicketUpsert) UpdateApplicationID() *HPFCEventTicketUpsert

UpdateApplicationID sets the "application_id" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateApplicationStartDate

func (u *HPFCEventTicketUpsert) UpdateApplicationStartDate() *HPFCEventTicketUpsert

UpdateApplicationStartDate sets the "application_start_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateApplicationTitle

func (u *HPFCEventTicketUpsert) UpdateApplicationTitle() *HPFCEventTicketUpsert

UpdateApplicationTitle sets the "application_title" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateFcMemberSha256

func (u *HPFCEventTicketUpsert) UpdateFcMemberSha256() *HPFCEventTicketUpsert

UpdateFcMemberSha256 sets the "fc_member_sha256" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateNum

func (u *HPFCEventTicketUpsert) UpdateNum() *HPFCEventTicketUpsert

UpdateNum sets the "num" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateOwnerUserID

func (u *HPFCEventTicketUpsert) UpdateOwnerUserID() *HPFCEventTicketUpsert

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdatePaymentDueDate

func (u *HPFCEventTicketUpsert) UpdatePaymentDueDate() *HPFCEventTicketUpsert

UpdatePaymentDueDate sets the "payment_due_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdatePaymentStartDate

func (u *HPFCEventTicketUpsert) UpdatePaymentStartDate() *HPFCEventTicketUpsert

UpdatePaymentStartDate sets the "payment_start_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateStatus

func (u *HPFCEventTicketUpsert) UpdateStatus() *HPFCEventTicketUpsert

UpdateStatus sets the "status" field to the value that was provided on create.

func (*HPFCEventTicketUpsert) UpdateUpdatedAt

func (u *HPFCEventTicketUpsert) UpdateUpdatedAt() *HPFCEventTicketUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFCEventTicketUpsertBulk

HPFCEventTicketUpsertBulk is the builder for "upsert"-ing a bulk of HPFCEventTicket nodes.

type HPFCEventTicketUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketUpsertBulk) AddNum

func (u *HPFCEventTicketUpsertBulk) AddNum(v int) *HPFCEventTicketUpsertBulk

AddNum adds v to the "num" field.

func (*HPFCEventTicketUpsertBulk) ClearApplicationDueDate

func (u *HPFCEventTicketUpsertBulk) ClearApplicationDueDate() *HPFCEventTicketUpsertBulk

ClearApplicationDueDate clears the value of the "application_due_date" field.

func (*HPFCEventTicketUpsertBulk) ClearApplicationID

func (u *HPFCEventTicketUpsertBulk) ClearApplicationID() *HPFCEventTicketUpsertBulk

ClearApplicationID clears the value of the "application_id" field.

func (*HPFCEventTicketUpsertBulk) ClearApplicationStartDate

func (u *HPFCEventTicketUpsertBulk) ClearApplicationStartDate() *HPFCEventTicketUpsertBulk

ClearApplicationStartDate clears the value of the "application_start_date" field.

func (*HPFCEventTicketUpsertBulk) ClearPaymentDueDate

func (u *HPFCEventTicketUpsertBulk) ClearPaymentDueDate() *HPFCEventTicketUpsertBulk

ClearPaymentDueDate clears the value of the "payment_due_date" field.

func (*HPFCEventTicketUpsertBulk) ClearPaymentStartDate

func (u *HPFCEventTicketUpsertBulk) ClearPaymentStartDate() *HPFCEventTicketUpsertBulk

ClearPaymentStartDate clears the value of the "payment_start_date" field.

func (*HPFCEventTicketUpsertBulk) ClearUpdatedAt

func (u *HPFCEventTicketUpsertBulk) ClearUpdatedAt() *HPFCEventTicketUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFCEventTicketUpsertBulk) DoNothing

func (u *HPFCEventTicketUpsertBulk) DoNothing() *HPFCEventTicketUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPFCEventTicketUpsertBulk) Exec

func (u *HPFCEventTicketUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFCEventTicketUpsertBulk) ExecX

func (u *HPFCEventTicketUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketUpsertBulk) Ignore

func (u *HPFCEventTicketUpsertBulk) Ignore() *HPFCEventTicketUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPFCEventTicket.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPFCEventTicketUpsertBulk) SetApplicationDueDate

func (u *HPFCEventTicketUpsertBulk) SetApplicationDueDate(v time.Time) *HPFCEventTicketUpsertBulk

SetApplicationDueDate sets the "application_due_date" field.

func (*HPFCEventTicketUpsertBulk) SetApplicationID

func (u *HPFCEventTicketUpsertBulk) SetApplicationID(v string) *HPFCEventTicketUpsertBulk

SetApplicationID sets the "application_id" field.

func (*HPFCEventTicketUpsertBulk) SetApplicationStartDate

func (u *HPFCEventTicketUpsertBulk) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsertBulk

SetApplicationStartDate sets the "application_start_date" field.

func (*HPFCEventTicketUpsertBulk) SetApplicationTitle

func (u *HPFCEventTicketUpsertBulk) SetApplicationTitle(v string) *HPFCEventTicketUpsertBulk

SetApplicationTitle sets the "application_title" field.

func (*HPFCEventTicketUpsertBulk) SetFcMemberSha256

func (u *HPFCEventTicketUpsertBulk) SetFcMemberSha256(v string) *HPFCEventTicketUpsertBulk

SetFcMemberSha256 sets the "fc_member_sha256" field.

func (*HPFCEventTicketUpsertBulk) SetNum

func (u *HPFCEventTicketUpsertBulk) SetNum(v int) *HPFCEventTicketUpsertBulk

SetNum sets the "num" field.

func (*HPFCEventTicketUpsertBulk) SetOwnerUserID

func (u *HPFCEventTicketUpsertBulk) SetOwnerUserID(v int) *HPFCEventTicketUpsertBulk

SetOwnerUserID sets the "owner_user_id" field.

func (*HPFCEventTicketUpsertBulk) SetPaymentDueDate

func (u *HPFCEventTicketUpsertBulk) SetPaymentDueDate(v time.Time) *HPFCEventTicketUpsertBulk

SetPaymentDueDate sets the "payment_due_date" field.

func (*HPFCEventTicketUpsertBulk) SetPaymentStartDate

func (u *HPFCEventTicketUpsertBulk) SetPaymentStartDate(v time.Time) *HPFCEventTicketUpsertBulk

SetPaymentStartDate sets the "payment_start_date" field.

func (*HPFCEventTicketUpsertBulk) SetStatus

func (u *HPFCEventTicketUpsertBulk) SetStatus(v enums.HPEventFCTicketStatus) *HPFCEventTicketUpsertBulk

SetStatus sets the "status" field.

func (*HPFCEventTicketUpsertBulk) SetUpdatedAt

func (u *HPFCEventTicketUpsertBulk) SetUpdatedAt(v time.Time) *HPFCEventTicketUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPFCEventTicketUpsertBulk) Update

func (u *HPFCEventTicketUpsertBulk) Update(set func(*HPFCEventTicketUpsert)) *HPFCEventTicketUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPFCEventTicketCreateBulk.OnConflict documentation for more info.

func (*HPFCEventTicketUpsertBulk) UpdateApplicationDueDate

func (u *HPFCEventTicketUpsertBulk) UpdateApplicationDueDate() *HPFCEventTicketUpsertBulk

UpdateApplicationDueDate sets the "application_due_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateApplicationID

func (u *HPFCEventTicketUpsertBulk) UpdateApplicationID() *HPFCEventTicketUpsertBulk

UpdateApplicationID sets the "application_id" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateApplicationStartDate

func (u *HPFCEventTicketUpsertBulk) UpdateApplicationStartDate() *HPFCEventTicketUpsertBulk

UpdateApplicationStartDate sets the "application_start_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateApplicationTitle

func (u *HPFCEventTicketUpsertBulk) UpdateApplicationTitle() *HPFCEventTicketUpsertBulk

UpdateApplicationTitle sets the "application_title" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateFcMemberSha256

func (u *HPFCEventTicketUpsertBulk) UpdateFcMemberSha256() *HPFCEventTicketUpsertBulk

UpdateFcMemberSha256 sets the "fc_member_sha256" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateNewValues

func (u *HPFCEventTicketUpsertBulk) UpdateNewValues() *HPFCEventTicketUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPFCEventTicket.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPFCEventTicketUpsertBulk) UpdateNum

func (u *HPFCEventTicketUpsertBulk) UpdateNum() *HPFCEventTicketUpsertBulk

UpdateNum sets the "num" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateOwnerUserID

func (u *HPFCEventTicketUpsertBulk) UpdateOwnerUserID() *HPFCEventTicketUpsertBulk

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdatePaymentDueDate

func (u *HPFCEventTicketUpsertBulk) UpdatePaymentDueDate() *HPFCEventTicketUpsertBulk

UpdatePaymentDueDate sets the "payment_due_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdatePaymentStartDate

func (u *HPFCEventTicketUpsertBulk) UpdatePaymentStartDate() *HPFCEventTicketUpsertBulk

UpdatePaymentStartDate sets the "payment_start_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateStatus

func (u *HPFCEventTicketUpsertBulk) UpdateStatus() *HPFCEventTicketUpsertBulk

UpdateStatus sets the "status" field to the value that was provided on create.

func (*HPFCEventTicketUpsertBulk) UpdateUpdatedAt

func (u *HPFCEventTicketUpsertBulk) UpdateUpdatedAt() *HPFCEventTicketUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFCEventTicketUpsertOne

HPFCEventTicketUpsertOne is the builder for "upsert"-ing

one HPFCEventTicket node.
type HPFCEventTicketUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPFCEventTicketUpsertOne) AddNum

func (u *HPFCEventTicketUpsertOne) AddNum(v int) *HPFCEventTicketUpsertOne

AddNum adds v to the "num" field.

func (*HPFCEventTicketUpsertOne) ClearApplicationDueDate

func (u *HPFCEventTicketUpsertOne) ClearApplicationDueDate() *HPFCEventTicketUpsertOne

ClearApplicationDueDate clears the value of the "application_due_date" field.

func (*HPFCEventTicketUpsertOne) ClearApplicationID

func (u *HPFCEventTicketUpsertOne) ClearApplicationID() *HPFCEventTicketUpsertOne

ClearApplicationID clears the value of the "application_id" field.

func (*HPFCEventTicketUpsertOne) ClearApplicationStartDate

func (u *HPFCEventTicketUpsertOne) ClearApplicationStartDate() *HPFCEventTicketUpsertOne

ClearApplicationStartDate clears the value of the "application_start_date" field.

func (*HPFCEventTicketUpsertOne) ClearPaymentDueDate

func (u *HPFCEventTicketUpsertOne) ClearPaymentDueDate() *HPFCEventTicketUpsertOne

ClearPaymentDueDate clears the value of the "payment_due_date" field.

func (*HPFCEventTicketUpsertOne) ClearPaymentStartDate

func (u *HPFCEventTicketUpsertOne) ClearPaymentStartDate() *HPFCEventTicketUpsertOne

ClearPaymentStartDate clears the value of the "payment_start_date" field.

func (*HPFCEventTicketUpsertOne) ClearUpdatedAt

func (u *HPFCEventTicketUpsertOne) ClearUpdatedAt() *HPFCEventTicketUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFCEventTicketUpsertOne) DoNothing

func (u *HPFCEventTicketUpsertOne) DoNothing() *HPFCEventTicketUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPFCEventTicketUpsertOne) Exec

func (u *HPFCEventTicketUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFCEventTicketUpsertOne) ExecX

func (u *HPFCEventTicketUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFCEventTicketUpsertOne) ID

func (u *HPFCEventTicketUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPFCEventTicketUpsertOne) IDX

func (u *HPFCEventTicketUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPFCEventTicketUpsertOne) Ignore

func (u *HPFCEventTicketUpsertOne) Ignore() *HPFCEventTicketUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPFCEventTicket.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPFCEventTicketUpsertOne) SetApplicationDueDate

func (u *HPFCEventTicketUpsertOne) SetApplicationDueDate(v time.Time) *HPFCEventTicketUpsertOne

SetApplicationDueDate sets the "application_due_date" field.

func (*HPFCEventTicketUpsertOne) SetApplicationID

func (u *HPFCEventTicketUpsertOne) SetApplicationID(v string) *HPFCEventTicketUpsertOne

SetApplicationID sets the "application_id" field.

func (*HPFCEventTicketUpsertOne) SetApplicationStartDate

func (u *HPFCEventTicketUpsertOne) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsertOne

SetApplicationStartDate sets the "application_start_date" field.

func (*HPFCEventTicketUpsertOne) SetApplicationTitle

func (u *HPFCEventTicketUpsertOne) SetApplicationTitle(v string) *HPFCEventTicketUpsertOne

SetApplicationTitle sets the "application_title" field.

func (*HPFCEventTicketUpsertOne) SetFcMemberSha256

func (u *HPFCEventTicketUpsertOne) SetFcMemberSha256(v string) *HPFCEventTicketUpsertOne

SetFcMemberSha256 sets the "fc_member_sha256" field.

func (*HPFCEventTicketUpsertOne) SetNum

func (u *HPFCEventTicketUpsertOne) SetNum(v int) *HPFCEventTicketUpsertOne

SetNum sets the "num" field.

func (*HPFCEventTicketUpsertOne) SetOwnerUserID

func (u *HPFCEventTicketUpsertOne) SetOwnerUserID(v int) *HPFCEventTicketUpsertOne

SetOwnerUserID sets the "owner_user_id" field.

func (*HPFCEventTicketUpsertOne) SetPaymentDueDate

func (u *HPFCEventTicketUpsertOne) SetPaymentDueDate(v time.Time) *HPFCEventTicketUpsertOne

SetPaymentDueDate sets the "payment_due_date" field.

func (*HPFCEventTicketUpsertOne) SetPaymentStartDate

func (u *HPFCEventTicketUpsertOne) SetPaymentStartDate(v time.Time) *HPFCEventTicketUpsertOne

SetPaymentStartDate sets the "payment_start_date" field.

func (*HPFCEventTicketUpsertOne) SetStatus

func (u *HPFCEventTicketUpsertOne) SetStatus(v enums.HPEventFCTicketStatus) *HPFCEventTicketUpsertOne

SetStatus sets the "status" field.

func (*HPFCEventTicketUpsertOne) SetUpdatedAt

func (u *HPFCEventTicketUpsertOne) SetUpdatedAt(v time.Time) *HPFCEventTicketUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPFCEventTicketUpsertOne) Update

func (u *HPFCEventTicketUpsertOne) Update(set func(*HPFCEventTicketUpsert)) *HPFCEventTicketUpsertOne

Update allows overriding fields `UPDATE` values. See the HPFCEventTicketCreate.OnConflict documentation for more info.

func (*HPFCEventTicketUpsertOne) UpdateApplicationDueDate

func (u *HPFCEventTicketUpsertOne) UpdateApplicationDueDate() *HPFCEventTicketUpsertOne

UpdateApplicationDueDate sets the "application_due_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateApplicationID

func (u *HPFCEventTicketUpsertOne) UpdateApplicationID() *HPFCEventTicketUpsertOne

UpdateApplicationID sets the "application_id" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateApplicationStartDate

func (u *HPFCEventTicketUpsertOne) UpdateApplicationStartDate() *HPFCEventTicketUpsertOne

UpdateApplicationStartDate sets the "application_start_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateApplicationTitle

func (u *HPFCEventTicketUpsertOne) UpdateApplicationTitle() *HPFCEventTicketUpsertOne

UpdateApplicationTitle sets the "application_title" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateFcMemberSha256

func (u *HPFCEventTicketUpsertOne) UpdateFcMemberSha256() *HPFCEventTicketUpsertOne

UpdateFcMemberSha256 sets the "fc_member_sha256" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateNewValues

func (u *HPFCEventTicketUpsertOne) UpdateNewValues() *HPFCEventTicketUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPFCEventTicket.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPFCEventTicketUpsertOne) UpdateNum

func (u *HPFCEventTicketUpsertOne) UpdateNum() *HPFCEventTicketUpsertOne

UpdateNum sets the "num" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateOwnerUserID

func (u *HPFCEventTicketUpsertOne) UpdateOwnerUserID() *HPFCEventTicketUpsertOne

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdatePaymentDueDate

func (u *HPFCEventTicketUpsertOne) UpdatePaymentDueDate() *HPFCEventTicketUpsertOne

UpdatePaymentDueDate sets the "payment_due_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdatePaymentStartDate

func (u *HPFCEventTicketUpsertOne) UpdatePaymentStartDate() *HPFCEventTicketUpsertOne

UpdatePaymentStartDate sets the "payment_start_date" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateStatus

func (u *HPFCEventTicketUpsertOne) UpdateStatus() *HPFCEventTicketUpsertOne

UpdateStatus sets the "status" field to the value that was provided on create.

func (*HPFCEventTicketUpsertOne) UpdateUpdatedAt

func (u *HPFCEventTicketUpsertOne) UpdateUpdatedAt() *HPFCEventTicketUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFCEventTickets

HPFCEventTickets is a parsable slice of HPFCEventTicket.

type HPFCEventTickets []*HPFCEventTicket

type HPFeedItem

HPFeedItem is the model entity for the HPFeedItem schema.

type HPFeedItem struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // SourceID holds the value of the "source_id" field.
    SourceID int `json:"source_id,omitempty"`
    // AssetType holds the value of the "asset_type" field.
    AssetType enums.HPAssetType `json:"asset_type,omitempty"`
    // Title holds the value of the "title" field.
    Title string `json:"title,omitempty"`
    // PostAt holds the value of the "post_at" field.
    PostAt time.Time `json:"post_at,omitempty"`
    // SourceURL holds the value of the "source_url" field.
    SourceURL string `json:"source_url,omitempty"`
    // ImageURL holds the value of the "image_url" field.
    ImageURL *string `json:"image_url,omitempty"`
    // Media holds the value of the "media" field.
    Media []jsonfields.Media `json:"media,omitempty"`
    // OwnerArtistID holds the value of the "owner_artist_id" field.
    OwnerArtistID *int `json:"owner_artist_id,omitempty"`
    // OwnerMemberID holds the value of the "owner_member_id" field.
    OwnerMemberID *int `json:"owner_member_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPFeedItemQuery when eager-loading is set.
    Edges HPFeedItemEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPFeedItem) IsNode

func (n *HPFeedItem) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPFeedItem) NamedTaggedArtists

func (hfi *HPFeedItem) NamedTaggedArtists(name string) ([]*HPArtist, error)

NamedTaggedArtists returns the TaggedArtists named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPFeedItem) NamedTaggedMembers

func (hfi *HPFeedItem) NamedTaggedMembers(name string) ([]*HPMember, error)

NamedTaggedMembers returns the TaggedMembers named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPFeedItem) NamedViewHistories

func (hfi *HPFeedItem) NamedViewHistories(name string) ([]*HPViewHistory, error)

NamedViewHistories returns the ViewHistories named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPFeedItem) OwnerArtist

func (hfi *HPFeedItem) OwnerArtist(ctx context.Context) (*HPArtist, error)

func (*HPFeedItem) OwnerMember

func (hfi *HPFeedItem) OwnerMember(ctx context.Context) (*HPMember, error)

func (*HPFeedItem) QueryOwnerArtist

func (hfi *HPFeedItem) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist queries the "owner_artist" edge of the HPFeedItem entity.

func (*HPFeedItem) QueryOwnerMember

func (hfi *HPFeedItem) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember queries the "owner_member" edge of the HPFeedItem entity.

func (*HPFeedItem) QueryTaggedArtists

func (hfi *HPFeedItem) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists queries the "tagged_artists" edge of the HPFeedItem entity.

func (*HPFeedItem) QueryTaggedMembers

func (hfi *HPFeedItem) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers queries the "tagged_members" edge of the HPFeedItem entity.

func (*HPFeedItem) QueryViewHistories

func (hfi *HPFeedItem) QueryViewHistories() *HPViewHistoryQuery

QueryViewHistories queries the "view_histories" edge of the HPFeedItem entity.

func (*HPFeedItem) String

func (hfi *HPFeedItem) String() string

String implements the fmt.Stringer.

func (*HPFeedItem) TaggedArtists

func (hfi *HPFeedItem) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)

func (*HPFeedItem) TaggedMembers

func (hfi *HPFeedItem) TaggedMembers(ctx context.Context) (result []*HPMember, err error)

func (*HPFeedItem) ToEdge

func (hfi *HPFeedItem) ToEdge(order *HPFeedItemOrder) *HPFeedItemEdge

ToEdge converts HPFeedItem into HPFeedItemEdge.

func (*HPFeedItem) Unwrap

func (hfi *HPFeedItem) Unwrap() *HPFeedItem

Unwrap unwraps the HPFeedItem entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPFeedItem) Update

func (hfi *HPFeedItem) Update() *HPFeedItemUpdateOne

Update returns a builder for updating this HPFeedItem. Note that you need to call HPFeedItem.Unwrap() before calling this method if this HPFeedItem was returned from a transaction, and the transaction was committed or rolled back.

func (*HPFeedItem) Value

func (hfi *HPFeedItem) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPFeedItem. This includes values selected through modifiers, order, etc.

type HPFeedItemClient

HPFeedItemClient is a client for the HPFeedItem schema.

type HPFeedItemClient struct {
    // contains filtered or unexported fields
}

func NewHPFeedItemClient

func NewHPFeedItemClient(c config) *HPFeedItemClient

NewHPFeedItemClient returns a client for the HPFeedItem from the given config.

func (*HPFeedItemClient) Create

func (c *HPFeedItemClient) Create() *HPFeedItemCreate

Create returns a builder for creating a HPFeedItem entity.

func (*HPFeedItemClient) CreateBulk

func (c *HPFeedItemClient) CreateBulk(builders ...*HPFeedItemCreate) *HPFeedItemCreateBulk

CreateBulk returns a builder for creating a bulk of HPFeedItem entities.

func (*HPFeedItemClient) Delete

func (c *HPFeedItemClient) Delete() *HPFeedItemDelete

Delete returns a delete builder for HPFeedItem.

func (*HPFeedItemClient) DeleteOne

func (c *HPFeedItemClient) DeleteOne(hfi *HPFeedItem) *HPFeedItemDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPFeedItemClient) DeleteOneID

func (c *HPFeedItemClient) DeleteOneID(id int) *HPFeedItemDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPFeedItemClient) Get

func (c *HPFeedItemClient) Get(ctx context.Context, id int) (*HPFeedItem, error)

Get returns a HPFeedItem entity by its id.

func (*HPFeedItemClient) GetX

func (c *HPFeedItemClient) GetX(ctx context.Context, id int) *HPFeedItem

GetX is like Get, but panics if an error occurs.

func (*HPFeedItemClient) Hooks

func (c *HPFeedItemClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPFeedItemClient) Intercept

func (c *HPFeedItemClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpfeeditem.Intercept(f(g(h())))`.

func (*HPFeedItemClient) Interceptors

func (c *HPFeedItemClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPFeedItemClient) Query

func (c *HPFeedItemClient) Query() *HPFeedItemQuery

Query returns a query builder for HPFeedItem.

func (*HPFeedItemClient) QueryOwnerArtist

func (c *HPFeedItemClient) QueryOwnerArtist(hfi *HPFeedItem) *HPArtistQuery

QueryOwnerArtist queries the owner_artist edge of a HPFeedItem.

func (*HPFeedItemClient) QueryOwnerMember

func (c *HPFeedItemClient) QueryOwnerMember(hfi *HPFeedItem) *HPMemberQuery

QueryOwnerMember queries the owner_member edge of a HPFeedItem.

func (*HPFeedItemClient) QueryTaggedArtists

func (c *HPFeedItemClient) QueryTaggedArtists(hfi *HPFeedItem) *HPArtistQuery

QueryTaggedArtists queries the tagged_artists edge of a HPFeedItem.

func (*HPFeedItemClient) QueryTaggedMembers

func (c *HPFeedItemClient) QueryTaggedMembers(hfi *HPFeedItem) *HPMemberQuery

QueryTaggedMembers queries the tagged_members edge of a HPFeedItem.

func (*HPFeedItemClient) QueryViewHistories

func (c *HPFeedItemClient) QueryViewHistories(hfi *HPFeedItem) *HPViewHistoryQuery

QueryViewHistories queries the view_histories edge of a HPFeedItem.

func (*HPFeedItemClient) Update

func (c *HPFeedItemClient) Update() *HPFeedItemUpdate

Update returns an update builder for HPFeedItem.

func (*HPFeedItemClient) UpdateOne

func (c *HPFeedItemClient) UpdateOne(hfi *HPFeedItem) *HPFeedItemUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPFeedItemClient) UpdateOneID

func (c *HPFeedItemClient) UpdateOneID(id int) *HPFeedItemUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPFeedItemClient) Use

func (c *HPFeedItemClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpfeeditem.Hooks(f(g(h())))`.

type HPFeedItemConnection

HPFeedItemConnection is the connection containing edges to HPFeedItem.

type HPFeedItemConnection struct {
    Edges      []*HPFeedItemEdge `json:"edges"`
    PageInfo   PageInfo          `json:"pageInfo"`
    TotalCount int               `json:"totalCount"`
}

type HPFeedItemCreate

HPFeedItemCreate is the builder for creating a HPFeedItem entity.

type HPFeedItemCreate struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemCreate) AddTaggedArtistIDs

func (hfic *HPFeedItemCreate) AddTaggedArtistIDs(ids ...int) *HPFeedItemCreate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPFeedItemCreate) AddTaggedArtists

func (hfic *HPFeedItemCreate) AddTaggedArtists(h ...*HPArtist) *HPFeedItemCreate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPFeedItemCreate) AddTaggedMemberIDs

func (hfic *HPFeedItemCreate) AddTaggedMemberIDs(ids ...int) *HPFeedItemCreate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPFeedItemCreate) AddTaggedMembers

func (hfic *HPFeedItemCreate) AddTaggedMembers(h ...*HPMember) *HPFeedItemCreate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPFeedItemCreate) AddViewHistories

func (hfic *HPFeedItemCreate) AddViewHistories(h ...*HPViewHistory) *HPFeedItemCreate

AddViewHistories adds the "view_histories" edges to the HPViewHistory entity.

func (*HPFeedItemCreate) AddViewHistoryIDs

func (hfic *HPFeedItemCreate) AddViewHistoryIDs(ids ...int) *HPFeedItemCreate

AddViewHistoryIDs adds the "view_histories" edge to the HPViewHistory entity by IDs.

func (*HPFeedItemCreate) Exec

func (hfic *HPFeedItemCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFeedItemCreate) ExecX

func (hfic *HPFeedItemCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemCreate) Mutation

func (hfic *HPFeedItemCreate) Mutation() *HPFeedItemMutation

Mutation returns the HPFeedItemMutation object of the builder.

func (*HPFeedItemCreate) OnConflict

func (hfic *HPFeedItemCreate) OnConflict(opts ...sql.ConflictOption) *HPFeedItemUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPFeedItem.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPFeedItemUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPFeedItemCreate) OnConflictColumns

func (hfic *HPFeedItemCreate) OnConflictColumns(columns ...string) *HPFeedItemUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPFeedItem.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPFeedItemCreate) Save

func (hfic *HPFeedItemCreate) Save(ctx context.Context) (*HPFeedItem, error)

Save creates the HPFeedItem in the database.

func (*HPFeedItemCreate) SaveX

func (hfic *HPFeedItemCreate) SaveX(ctx context.Context) *HPFeedItem

SaveX calls Save and panics if Save returns an error.

func (*HPFeedItemCreate) SetAssetType

func (hfic *HPFeedItemCreate) SetAssetType(eat enums.HPAssetType) *HPFeedItemCreate

SetAssetType sets the "asset_type" field.

func (*HPFeedItemCreate) SetCreatedAt

func (hfic *HPFeedItemCreate) SetCreatedAt(t time.Time) *HPFeedItemCreate

SetCreatedAt sets the "created_at" field.

func (*HPFeedItemCreate) SetImageURL

func (hfic *HPFeedItemCreate) SetImageURL(s string) *HPFeedItemCreate

SetImageURL sets the "image_url" field.

func (*HPFeedItemCreate) SetMedia

func (hfic *HPFeedItemCreate) SetMedia(j []jsonfields.Media) *HPFeedItemCreate

SetMedia sets the "media" field.

func (*HPFeedItemCreate) SetNillableAssetType

func (hfic *HPFeedItemCreate) SetNillableAssetType(eat *enums.HPAssetType) *HPFeedItemCreate

SetNillableAssetType sets the "asset_type" field if the given value is not nil.

func (*HPFeedItemCreate) SetNillableCreatedAt

func (hfic *HPFeedItemCreate) SetNillableCreatedAt(t *time.Time) *HPFeedItemCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPFeedItemCreate) SetNillableImageURL

func (hfic *HPFeedItemCreate) SetNillableImageURL(s *string) *HPFeedItemCreate

SetNillableImageURL sets the "image_url" field if the given value is not nil.

func (*HPFeedItemCreate) SetNillableOwnerArtistID

func (hfic *HPFeedItemCreate) SetNillableOwnerArtistID(i *int) *HPFeedItemCreate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPFeedItemCreate) SetNillableOwnerMemberID

func (hfic *HPFeedItemCreate) SetNillableOwnerMemberID(i *int) *HPFeedItemCreate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPFeedItemCreate) SetNillableUpdatedAt

func (hfic *HPFeedItemCreate) SetNillableUpdatedAt(t *time.Time) *HPFeedItemCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFeedItemCreate) SetOwnerArtist

func (hfic *HPFeedItemCreate) SetOwnerArtist(h *HPArtist) *HPFeedItemCreate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPFeedItemCreate) SetOwnerArtistID

func (hfic *HPFeedItemCreate) SetOwnerArtistID(i int) *HPFeedItemCreate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPFeedItemCreate) SetOwnerMember

func (hfic *HPFeedItemCreate) SetOwnerMember(h *HPMember) *HPFeedItemCreate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPFeedItemCreate) SetOwnerMemberID

func (hfic *HPFeedItemCreate) SetOwnerMemberID(i int) *HPFeedItemCreate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPFeedItemCreate) SetPostAt

func (hfic *HPFeedItemCreate) SetPostAt(t time.Time) *HPFeedItemCreate

SetPostAt sets the "post_at" field.

func (*HPFeedItemCreate) SetSourceID

func (hfic *HPFeedItemCreate) SetSourceID(i int) *HPFeedItemCreate

SetSourceID sets the "source_id" field.

func (*HPFeedItemCreate) SetSourceURL

func (hfic *HPFeedItemCreate) SetSourceURL(s string) *HPFeedItemCreate

SetSourceURL sets the "source_url" field.

func (*HPFeedItemCreate) SetTitle

func (hfic *HPFeedItemCreate) SetTitle(s string) *HPFeedItemCreate

SetTitle sets the "title" field.

func (*HPFeedItemCreate) SetUpdatedAt

func (hfic *HPFeedItemCreate) SetUpdatedAt(t time.Time) *HPFeedItemCreate

SetUpdatedAt sets the "updated_at" field.

type HPFeedItemCreateBulk

HPFeedItemCreateBulk is the builder for creating many HPFeedItem entities in bulk.

type HPFeedItemCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemCreateBulk) Exec

func (hficb *HPFeedItemCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFeedItemCreateBulk) ExecX

func (hficb *HPFeedItemCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemCreateBulk) OnConflict

func (hficb *HPFeedItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPFeedItemUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPFeedItem.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPFeedItemUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPFeedItemCreateBulk) OnConflictColumns

func (hficb *HPFeedItemCreateBulk) OnConflictColumns(columns ...string) *HPFeedItemUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPFeedItem.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPFeedItemCreateBulk) Save

func (hficb *HPFeedItemCreateBulk) Save(ctx context.Context) ([]*HPFeedItem, error)

Save creates the HPFeedItem entities in the database.

func (*HPFeedItemCreateBulk) SaveX

func (hficb *HPFeedItemCreateBulk) SaveX(ctx context.Context) []*HPFeedItem

SaveX is like Save, but panics if an error occurs.

type HPFeedItemDelete

HPFeedItemDelete is the builder for deleting a HPFeedItem entity.

type HPFeedItemDelete struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemDelete) Exec

func (hfid *HPFeedItemDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPFeedItemDelete) ExecX

func (hfid *HPFeedItemDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemDelete) Where

func (hfid *HPFeedItemDelete) Where(ps ...predicate.HPFeedItem) *HPFeedItemDelete

Where appends a list predicates to the HPFeedItemDelete builder.

type HPFeedItemDeleteOne

HPFeedItemDeleteOne is the builder for deleting a single HPFeedItem entity.

type HPFeedItemDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemDeleteOne) Exec

func (hfido *HPFeedItemDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPFeedItemDeleteOne) ExecX

func (hfido *HPFeedItemDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemDeleteOne) Where

func (hfido *HPFeedItemDeleteOne) Where(ps ...predicate.HPFeedItem) *HPFeedItemDeleteOne

Where appends a list predicates to the HPFeedItemDelete builder.

type HPFeedItemEdge

HPFeedItemEdge is the edge representation of HPFeedItem.

type HPFeedItemEdge struct {
    Node   *HPFeedItem `json:"node"`
    Cursor Cursor      `json:"cursor"`
}

type HPFeedItemEdges

HPFeedItemEdges holds the relations/edges for other nodes in the graph.

type HPFeedItemEdges struct {
    // ViewHistories holds the value of the view_histories edge.
    ViewHistories []*HPViewHistory `json:"view_histories,omitempty"`
    // OwnerArtist holds the value of the owner_artist edge.
    OwnerArtist *HPArtist `json:"owner_artist,omitempty"`
    // OwnerMember holds the value of the owner_member edge.
    OwnerMember *HPMember `json:"owner_member,omitempty"`
    // TaggedArtists holds the value of the tagged_artists edge.
    TaggedArtists []*HPArtist `json:"tagged_artists,omitempty"`
    // TaggedMembers holds the value of the tagged_members edge.
    TaggedMembers []*HPMember `json:"tagged_members,omitempty"`
    // contains filtered or unexported fields
}

func (HPFeedItemEdges) OwnerArtistOrErr

func (e HPFeedItemEdges) OwnerArtistOrErr() (*HPArtist, error)

OwnerArtistOrErr returns the OwnerArtist value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPFeedItemEdges) OwnerMemberOrErr

func (e HPFeedItemEdges) OwnerMemberOrErr() (*HPMember, error)

OwnerMemberOrErr returns the OwnerMember value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPFeedItemEdges) TaggedArtistsOrErr

func (e HPFeedItemEdges) TaggedArtistsOrErr() ([]*HPArtist, error)

TaggedArtistsOrErr returns the TaggedArtists value or an error if the edge was not loaded in eager-loading.

func (HPFeedItemEdges) TaggedMembersOrErr

func (e HPFeedItemEdges) TaggedMembersOrErr() ([]*HPMember, error)

TaggedMembersOrErr returns the TaggedMembers value or an error if the edge was not loaded in eager-loading.

func (HPFeedItemEdges) ViewHistoriesOrErr

func (e HPFeedItemEdges) ViewHistoriesOrErr() ([]*HPViewHistory, error)

ViewHistoriesOrErr returns the ViewHistories value or an error if the edge was not loaded in eager-loading.

type HPFeedItemFilter

HPFeedItemFilter provides a generic filtering capability at runtime for HPFeedItemQuery.

type HPFeedItemFilter struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemFilter) Where

func (f *HPFeedItemFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPFeedItemFilter) WhereAssetType

func (f *HPFeedItemFilter) WhereAssetType(p entql.StringP)

WhereAssetType applies the entql string predicate on the asset_type field.

func (*HPFeedItemFilter) WhereCreatedAt

func (f *HPFeedItemFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPFeedItemFilter) WhereHasOwnerArtist

func (f *HPFeedItemFilter) WhereHasOwnerArtist()

WhereHasOwnerArtist applies a predicate to check if query has an edge owner_artist.

func (*HPFeedItemFilter) WhereHasOwnerArtistWith

func (f *HPFeedItemFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)

WhereHasOwnerArtistWith applies a predicate to check if query has an edge owner_artist with a given conditions (other predicates).

func (*HPFeedItemFilter) WhereHasOwnerMember

func (f *HPFeedItemFilter) WhereHasOwnerMember()

WhereHasOwnerMember applies a predicate to check if query has an edge owner_member.

func (*HPFeedItemFilter) WhereHasOwnerMemberWith

func (f *HPFeedItemFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)

WhereHasOwnerMemberWith applies a predicate to check if query has an edge owner_member with a given conditions (other predicates).

func (*HPFeedItemFilter) WhereHasTaggedArtists

func (f *HPFeedItemFilter) WhereHasTaggedArtists()

WhereHasTaggedArtists applies a predicate to check if query has an edge tagged_artists.

func (*HPFeedItemFilter) WhereHasTaggedArtistsWith

func (f *HPFeedItemFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)

WhereHasTaggedArtistsWith applies a predicate to check if query has an edge tagged_artists with a given conditions (other predicates).

func (*HPFeedItemFilter) WhereHasTaggedMembers

func (f *HPFeedItemFilter) WhereHasTaggedMembers()

WhereHasTaggedMembers applies a predicate to check if query has an edge tagged_members.

func (*HPFeedItemFilter) WhereHasTaggedMembersWith

func (f *HPFeedItemFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)

WhereHasTaggedMembersWith applies a predicate to check if query has an edge tagged_members with a given conditions (other predicates).

func (*HPFeedItemFilter) WhereHasViewHistories

func (f *HPFeedItemFilter) WhereHasViewHistories()

WhereHasViewHistories applies a predicate to check if query has an edge view_histories.

func (*HPFeedItemFilter) WhereHasViewHistoriesWith

func (f *HPFeedItemFilter) WhereHasViewHistoriesWith(preds ...predicate.HPViewHistory)

WhereHasViewHistoriesWith applies a predicate to check if query has an edge view_histories with a given conditions (other predicates).

func (*HPFeedItemFilter) WhereID

func (f *HPFeedItemFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPFeedItemFilter) WhereImageURL

func (f *HPFeedItemFilter) WhereImageURL(p entql.StringP)

WhereImageURL applies the entql string predicate on the image_url field.

func (*HPFeedItemFilter) WhereMedia

func (f *HPFeedItemFilter) WhereMedia(p entql.BytesP)

WhereMedia applies the entql json.RawMessage predicate on the media field.

func (*HPFeedItemFilter) WhereOwnerArtistID

func (f *HPFeedItemFilter) WhereOwnerArtistID(p entql.IntP)

WhereOwnerArtistID applies the entql int predicate on the owner_artist_id field.

func (*HPFeedItemFilter) WhereOwnerMemberID

func (f *HPFeedItemFilter) WhereOwnerMemberID(p entql.IntP)

WhereOwnerMemberID applies the entql int predicate on the owner_member_id field.

func (*HPFeedItemFilter) WherePostAt

func (f *HPFeedItemFilter) WherePostAt(p entql.TimeP)

WherePostAt applies the entql time.Time predicate on the post_at field.

func (*HPFeedItemFilter) WhereSourceID

func (f *HPFeedItemFilter) WhereSourceID(p entql.IntP)

WhereSourceID applies the entql int predicate on the source_id field.

func (*HPFeedItemFilter) WhereSourceURL

func (f *HPFeedItemFilter) WhereSourceURL(p entql.StringP)

WhereSourceURL applies the entql string predicate on the source_url field.

func (*HPFeedItemFilter) WhereTitle

func (f *HPFeedItemFilter) WhereTitle(p entql.StringP)

WhereTitle applies the entql string predicate on the title field.

func (*HPFeedItemFilter) WhereUpdatedAt

func (f *HPFeedItemFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPFeedItemGroupBy

HPFeedItemGroupBy is the group-by builder for HPFeedItem entities.

type HPFeedItemGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemGroupBy) Aggregate

func (hfigb *HPFeedItemGroupBy) Aggregate(fns ...AggregateFunc) *HPFeedItemGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPFeedItemGroupBy) Bool

func (s *HPFeedItemGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) BoolX

func (s *HPFeedItemGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPFeedItemGroupBy) Bools

func (s *HPFeedItemGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) BoolsX

func (s *HPFeedItemGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPFeedItemGroupBy) Float64

func (s *HPFeedItemGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) Float64X

func (s *HPFeedItemGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPFeedItemGroupBy) Float64s

func (s *HPFeedItemGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) Float64sX

func (s *HPFeedItemGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPFeedItemGroupBy) Int

func (s *HPFeedItemGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) IntX

func (s *HPFeedItemGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPFeedItemGroupBy) Ints

func (s *HPFeedItemGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) IntsX

func (s *HPFeedItemGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPFeedItemGroupBy) Scan

func (hfigb *HPFeedItemGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPFeedItemGroupBy) ScanX

func (s *HPFeedItemGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPFeedItemGroupBy) String

func (s *HPFeedItemGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) StringX

func (s *HPFeedItemGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPFeedItemGroupBy) Strings

func (s *HPFeedItemGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPFeedItemGroupBy) StringsX

func (s *HPFeedItemGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPFeedItemMutation

HPFeedItemMutation represents an operation that mutates the HPFeedItem nodes in the graph.

type HPFeedItemMutation struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemMutation) AddField

func (m *HPFeedItemMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPFeedItemMutation) AddSourceID

func (m *HPFeedItemMutation) AddSourceID(i int)

AddSourceID adds i to the "source_id" field.

func (*HPFeedItemMutation) AddTaggedArtistIDs

func (m *HPFeedItemMutation) AddTaggedArtistIDs(ids ...int)

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by ids.

func (*HPFeedItemMutation) AddTaggedMemberIDs

func (m *HPFeedItemMutation) AddTaggedMemberIDs(ids ...int)

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by ids.

func (*HPFeedItemMutation) AddViewHistoryIDs

func (m *HPFeedItemMutation) AddViewHistoryIDs(ids ...int)

AddViewHistoryIDs adds the "view_histories" edge to the HPViewHistory entity by ids.

func (*HPFeedItemMutation) AddedEdges

func (m *HPFeedItemMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPFeedItemMutation) AddedField

func (m *HPFeedItemMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPFeedItemMutation) AddedFields

func (m *HPFeedItemMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPFeedItemMutation) AddedIDs

func (m *HPFeedItemMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPFeedItemMutation) AddedSourceID

func (m *HPFeedItemMutation) AddedSourceID() (r int, exists bool)

AddedSourceID returns the value that was added to the "source_id" field in this mutation.

func (*HPFeedItemMutation) AppendMedia

func (m *HPFeedItemMutation) AppendMedia(j []jsonfields.Media)

AppendMedia adds j to the "media" field.

func (*HPFeedItemMutation) AppendedMedia

func (m *HPFeedItemMutation) AppendedMedia() ([]jsonfields.Media, bool)

AppendedMedia returns the list of values that were appended to the "media" field in this mutation.

func (*HPFeedItemMutation) AssetType

func (m *HPFeedItemMutation) AssetType() (r enums.HPAssetType, exists bool)

AssetType returns the value of the "asset_type" field in the mutation.

func (*HPFeedItemMutation) ClearCreatedAt

func (m *HPFeedItemMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPFeedItemMutation) ClearEdge

func (m *HPFeedItemMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPFeedItemMutation) ClearField

func (m *HPFeedItemMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPFeedItemMutation) ClearImageURL

func (m *HPFeedItemMutation) ClearImageURL()

ClearImageURL clears the value of the "image_url" field.

func (*HPFeedItemMutation) ClearOwnerArtist

func (m *HPFeedItemMutation) ClearOwnerArtist()

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPFeedItemMutation) ClearOwnerArtistID

func (m *HPFeedItemMutation) ClearOwnerArtistID()

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPFeedItemMutation) ClearOwnerMember

func (m *HPFeedItemMutation) ClearOwnerMember()

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPFeedItemMutation) ClearOwnerMemberID

func (m *HPFeedItemMutation) ClearOwnerMemberID()

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPFeedItemMutation) ClearTaggedArtists

func (m *HPFeedItemMutation) ClearTaggedArtists()

ClearTaggedArtists clears the "tagged_artists" edge to the HPArtist entity.

func (*HPFeedItemMutation) ClearTaggedMembers

func (m *HPFeedItemMutation) ClearTaggedMembers()

ClearTaggedMembers clears the "tagged_members" edge to the HPMember entity.

func (*HPFeedItemMutation) ClearUpdatedAt

func (m *HPFeedItemMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFeedItemMutation) ClearViewHistories

func (m *HPFeedItemMutation) ClearViewHistories()

ClearViewHistories clears the "view_histories" edge to the HPViewHistory entity.

func (*HPFeedItemMutation) ClearedEdges

func (m *HPFeedItemMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPFeedItemMutation) ClearedFields

func (m *HPFeedItemMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPFeedItemMutation) Client

func (m HPFeedItemMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPFeedItemMutation) CreatedAt

func (m *HPFeedItemMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPFeedItemMutation) CreatedAtCleared

func (m *HPFeedItemMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPFeedItemMutation) EdgeCleared

func (m *HPFeedItemMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPFeedItemMutation) Field

func (m *HPFeedItemMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPFeedItemMutation) FieldCleared

func (m *HPFeedItemMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPFeedItemMutation) Fields

func (m *HPFeedItemMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPFeedItemMutation) Filter

func (m *HPFeedItemMutation) Filter() *HPFeedItemFilter

Filter returns an entql.Where implementation to apply filters on the HPFeedItemMutation builder.

func (*HPFeedItemMutation) ID

func (m *HPFeedItemMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPFeedItemMutation) IDs

func (m *HPFeedItemMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPFeedItemMutation) ImageURL

func (m *HPFeedItemMutation) ImageURL() (r string, exists bool)

ImageURL returns the value of the "image_url" field in the mutation.

func (*HPFeedItemMutation) ImageURLCleared

func (m *HPFeedItemMutation) ImageURLCleared() bool

ImageURLCleared returns if the "image_url" field was cleared in this mutation.

func (*HPFeedItemMutation) Media

func (m *HPFeedItemMutation) Media() (r []jsonfields.Media, exists bool)

Media returns the value of the "media" field in the mutation.

func (*HPFeedItemMutation) OldAssetType

func (m *HPFeedItemMutation) OldAssetType(ctx context.Context) (v enums.HPAssetType, err error)

OldAssetType returns the old "asset_type" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldCreatedAt

func (m *HPFeedItemMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldField

func (m *HPFeedItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPFeedItemMutation) OldImageURL

func (m *HPFeedItemMutation) OldImageURL(ctx context.Context) (v *string, err error)

OldImageURL returns the old "image_url" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldMedia

func (m *HPFeedItemMutation) OldMedia(ctx context.Context) (v []jsonfields.Media, err error)

OldMedia returns the old "media" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldOwnerArtistID

func (m *HPFeedItemMutation) OldOwnerArtistID(ctx context.Context) (v *int, err error)

OldOwnerArtistID returns the old "owner_artist_id" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldOwnerMemberID

func (m *HPFeedItemMutation) OldOwnerMemberID(ctx context.Context) (v *int, err error)

OldOwnerMemberID returns the old "owner_member_id" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldPostAt

func (m *HPFeedItemMutation) OldPostAt(ctx context.Context) (v time.Time, err error)

OldPostAt returns the old "post_at" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldSourceID

func (m *HPFeedItemMutation) OldSourceID(ctx context.Context) (v int, err error)

OldSourceID returns the old "source_id" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldSourceURL

func (m *HPFeedItemMutation) OldSourceURL(ctx context.Context) (v string, err error)

OldSourceURL returns the old "source_url" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldTitle

func (m *HPFeedItemMutation) OldTitle(ctx context.Context) (v string, err error)

OldTitle returns the old "title" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) OldUpdatedAt

func (m *HPFeedItemMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPFeedItem entity. If the HPFeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFeedItemMutation) Op

func (m *HPFeedItemMutation) Op() Op

Op returns the operation name.

func (*HPFeedItemMutation) OwnerArtistCleared

func (m *HPFeedItemMutation) OwnerArtistCleared() bool

OwnerArtistCleared reports if the "owner_artist" edge to the HPArtist entity was cleared.

func (*HPFeedItemMutation) OwnerArtistID

func (m *HPFeedItemMutation) OwnerArtistID() (r int, exists bool)

OwnerArtistID returns the value of the "owner_artist_id" field in the mutation.

func (*HPFeedItemMutation) OwnerArtistIDCleared

func (m *HPFeedItemMutation) OwnerArtistIDCleared() bool

OwnerArtistIDCleared returns if the "owner_artist_id" field was cleared in this mutation.

func (*HPFeedItemMutation) OwnerArtistIDs

func (m *HPFeedItemMutation) OwnerArtistIDs() (ids []int)

OwnerArtistIDs returns the "owner_artist" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerArtistID instead. It exists only for internal usage by the builders.

func (*HPFeedItemMutation) OwnerMemberCleared

func (m *HPFeedItemMutation) OwnerMemberCleared() bool

OwnerMemberCleared reports if the "owner_member" edge to the HPMember entity was cleared.

func (*HPFeedItemMutation) OwnerMemberID

func (m *HPFeedItemMutation) OwnerMemberID() (r int, exists bool)

OwnerMemberID returns the value of the "owner_member_id" field in the mutation.

func (*HPFeedItemMutation) OwnerMemberIDCleared

func (m *HPFeedItemMutation) OwnerMemberIDCleared() bool

OwnerMemberIDCleared returns if the "owner_member_id" field was cleared in this mutation.

func (*HPFeedItemMutation) OwnerMemberIDs

func (m *HPFeedItemMutation) OwnerMemberIDs() (ids []int)

OwnerMemberIDs returns the "owner_member" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerMemberID instead. It exists only for internal usage by the builders.

func (*HPFeedItemMutation) PostAt

func (m *HPFeedItemMutation) PostAt() (r time.Time, exists bool)

PostAt returns the value of the "post_at" field in the mutation.

func (*HPFeedItemMutation) RemoveTaggedArtistIDs

func (m *HPFeedItemMutation) RemoveTaggedArtistIDs(ids ...int)

RemoveTaggedArtistIDs removes the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPFeedItemMutation) RemoveTaggedMemberIDs

func (m *HPFeedItemMutation) RemoveTaggedMemberIDs(ids ...int)

RemoveTaggedMemberIDs removes the "tagged_members" edge to the HPMember entity by IDs.

func (*HPFeedItemMutation) RemoveViewHistoryIDs

func (m *HPFeedItemMutation) RemoveViewHistoryIDs(ids ...int)

RemoveViewHistoryIDs removes the "view_histories" edge to the HPViewHistory entity by IDs.

func (*HPFeedItemMutation) RemovedEdges

func (m *HPFeedItemMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPFeedItemMutation) RemovedIDs

func (m *HPFeedItemMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPFeedItemMutation) RemovedTaggedArtistsIDs

func (m *HPFeedItemMutation) RemovedTaggedArtistsIDs() (ids []int)

RemovedTaggedArtists returns the removed IDs of the "tagged_artists" edge to the HPArtist entity.

func (*HPFeedItemMutation) RemovedTaggedMembersIDs

func (m *HPFeedItemMutation) RemovedTaggedMembersIDs() (ids []int)

RemovedTaggedMembers returns the removed IDs of the "tagged_members" edge to the HPMember entity.

func (*HPFeedItemMutation) RemovedViewHistoriesIDs

func (m *HPFeedItemMutation) RemovedViewHistoriesIDs() (ids []int)

RemovedViewHistories returns the removed IDs of the "view_histories" edge to the HPViewHistory entity.

func (*HPFeedItemMutation) ResetAssetType

func (m *HPFeedItemMutation) ResetAssetType()

ResetAssetType resets all changes to the "asset_type" field.

func (*HPFeedItemMutation) ResetCreatedAt

func (m *HPFeedItemMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPFeedItemMutation) ResetEdge

func (m *HPFeedItemMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPFeedItemMutation) ResetField

func (m *HPFeedItemMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPFeedItemMutation) ResetImageURL

func (m *HPFeedItemMutation) ResetImageURL()

ResetImageURL resets all changes to the "image_url" field.

func (*HPFeedItemMutation) ResetMedia

func (m *HPFeedItemMutation) ResetMedia()

ResetMedia resets all changes to the "media" field.

func (*HPFeedItemMutation) ResetOwnerArtist

func (m *HPFeedItemMutation) ResetOwnerArtist()

ResetOwnerArtist resets all changes to the "owner_artist" edge.

func (*HPFeedItemMutation) ResetOwnerArtistID

func (m *HPFeedItemMutation) ResetOwnerArtistID()

ResetOwnerArtistID resets all changes to the "owner_artist_id" field.

func (*HPFeedItemMutation) ResetOwnerMember

func (m *HPFeedItemMutation) ResetOwnerMember()

ResetOwnerMember resets all changes to the "owner_member" edge.

func (*HPFeedItemMutation) ResetOwnerMemberID

func (m *HPFeedItemMutation) ResetOwnerMemberID()

ResetOwnerMemberID resets all changes to the "owner_member_id" field.

func (*HPFeedItemMutation) ResetPostAt

func (m *HPFeedItemMutation) ResetPostAt()

ResetPostAt resets all changes to the "post_at" field.

func (*HPFeedItemMutation) ResetSourceID

func (m *HPFeedItemMutation) ResetSourceID()

ResetSourceID resets all changes to the "source_id" field.

func (*HPFeedItemMutation) ResetSourceURL

func (m *HPFeedItemMutation) ResetSourceURL()

ResetSourceURL resets all changes to the "source_url" field.

func (*HPFeedItemMutation) ResetTaggedArtists

func (m *HPFeedItemMutation) ResetTaggedArtists()

ResetTaggedArtists resets all changes to the "tagged_artists" edge.

func (*HPFeedItemMutation) ResetTaggedMembers

func (m *HPFeedItemMutation) ResetTaggedMembers()

ResetTaggedMembers resets all changes to the "tagged_members" edge.

func (*HPFeedItemMutation) ResetTitle

func (m *HPFeedItemMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*HPFeedItemMutation) ResetUpdatedAt

func (m *HPFeedItemMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPFeedItemMutation) ResetViewHistories

func (m *HPFeedItemMutation) ResetViewHistories()

ResetViewHistories resets all changes to the "view_histories" edge.

func (*HPFeedItemMutation) SetAssetType

func (m *HPFeedItemMutation) SetAssetType(eat enums.HPAssetType)

SetAssetType sets the "asset_type" field.

func (*HPFeedItemMutation) SetCreatedAt

func (m *HPFeedItemMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPFeedItemMutation) SetField

func (m *HPFeedItemMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPFeedItemMutation) SetImageURL

func (m *HPFeedItemMutation) SetImageURL(s string)

SetImageURL sets the "image_url" field.

func (*HPFeedItemMutation) SetMedia

func (m *HPFeedItemMutation) SetMedia(j []jsonfields.Media)

SetMedia sets the "media" field.

func (*HPFeedItemMutation) SetOp

func (m *HPFeedItemMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPFeedItemMutation) SetOwnerArtistID

func (m *HPFeedItemMutation) SetOwnerArtistID(i int)

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPFeedItemMutation) SetOwnerMemberID

func (m *HPFeedItemMutation) SetOwnerMemberID(i int)

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPFeedItemMutation) SetPostAt

func (m *HPFeedItemMutation) SetPostAt(t time.Time)

SetPostAt sets the "post_at" field.

func (*HPFeedItemMutation) SetSourceID

func (m *HPFeedItemMutation) SetSourceID(i int)

SetSourceID sets the "source_id" field.

func (*HPFeedItemMutation) SetSourceURL

func (m *HPFeedItemMutation) SetSourceURL(s string)

SetSourceURL sets the "source_url" field.

func (*HPFeedItemMutation) SetTitle

func (m *HPFeedItemMutation) SetTitle(s string)

SetTitle sets the "title" field.

func (*HPFeedItemMutation) SetUpdatedAt

func (m *HPFeedItemMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPFeedItemMutation) SourceID

func (m *HPFeedItemMutation) SourceID() (r int, exists bool)

SourceID returns the value of the "source_id" field in the mutation.

func (*HPFeedItemMutation) SourceURL

func (m *HPFeedItemMutation) SourceURL() (r string, exists bool)

SourceURL returns the value of the "source_url" field in the mutation.

func (*HPFeedItemMutation) TaggedArtistsCleared

func (m *HPFeedItemMutation) TaggedArtistsCleared() bool

TaggedArtistsCleared reports if the "tagged_artists" edge to the HPArtist entity was cleared.

func (*HPFeedItemMutation) TaggedArtistsIDs

func (m *HPFeedItemMutation) TaggedArtistsIDs() (ids []int)

TaggedArtistsIDs returns the "tagged_artists" edge IDs in the mutation.

func (*HPFeedItemMutation) TaggedMembersCleared

func (m *HPFeedItemMutation) TaggedMembersCleared() bool

TaggedMembersCleared reports if the "tagged_members" edge to the HPMember entity was cleared.

func (*HPFeedItemMutation) TaggedMembersIDs

func (m *HPFeedItemMutation) TaggedMembersIDs() (ids []int)

TaggedMembersIDs returns the "tagged_members" edge IDs in the mutation.

func (*HPFeedItemMutation) Title

func (m *HPFeedItemMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (HPFeedItemMutation) Tx

func (m HPFeedItemMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPFeedItemMutation) Type

func (m *HPFeedItemMutation) Type() string

Type returns the node type of this mutation (HPFeedItem).

func (*HPFeedItemMutation) UpdatedAt

func (m *HPFeedItemMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPFeedItemMutation) UpdatedAtCleared

func (m *HPFeedItemMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPFeedItemMutation) ViewHistoriesCleared

func (m *HPFeedItemMutation) ViewHistoriesCleared() bool

ViewHistoriesCleared reports if the "view_histories" edge to the HPViewHistory entity was cleared.

func (*HPFeedItemMutation) ViewHistoriesIDs

func (m *HPFeedItemMutation) ViewHistoriesIDs() (ids []int)

ViewHistoriesIDs returns the "view_histories" edge IDs in the mutation.

func (*HPFeedItemMutation) Where

func (m *HPFeedItemMutation) Where(ps ...predicate.HPFeedItem)

Where appends a list predicates to the HPFeedItemMutation builder.

func (*HPFeedItemMutation) WhereP

func (m *HPFeedItemMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPFeedItemMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPFeedItemOrder

HPFeedItemOrder defines the ordering of HPFeedItem.

type HPFeedItemOrder struct {
    Direction OrderDirection        `json:"direction"`
    Field     *HPFeedItemOrderField `json:"field"`
}

type HPFeedItemOrderField

HPFeedItemOrderField defines the ordering field of HPFeedItem.

type HPFeedItemOrderField struct {
    // contains filtered or unexported fields
}

func (HPFeedItemOrderField) MarshalGQL

func (f HPFeedItemOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (HPFeedItemOrderField) String

func (f HPFeedItemOrderField) String() string

String implement fmt.Stringer interface.

func (*HPFeedItemOrderField) UnmarshalGQL

func (f *HPFeedItemOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type HPFeedItemPaginateOption

HPFeedItemPaginateOption enables pagination customization.

type HPFeedItemPaginateOption func(*hpfeeditemPager) error

func WithHPFeedItemFilter

func WithHPFeedItemFilter(filter func(*HPFeedItemQuery) (*HPFeedItemQuery, error)) HPFeedItemPaginateOption

WithHPFeedItemFilter configures pagination filter.

func WithHPFeedItemOrder

func WithHPFeedItemOrder(order *HPFeedItemOrder) HPFeedItemPaginateOption

WithHPFeedItemOrder configures pagination ordering.

type HPFeedItemQuery

HPFeedItemQuery is the builder for querying HPFeedItem entities.

type HPFeedItemQuery struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemQuery) Aggregate

func (hfiq *HPFeedItemQuery) Aggregate(fns ...AggregateFunc) *HPFeedItemSelect

Aggregate returns a HPFeedItemSelect configured with the given aggregations.

func (*HPFeedItemQuery) All

func (hfiq *HPFeedItemQuery) All(ctx context.Context) ([]*HPFeedItem, error)

All executes the query and returns a list of HPFeedItems.

func (*HPFeedItemQuery) AllX

func (hfiq *HPFeedItemQuery) AllX(ctx context.Context) []*HPFeedItem

AllX is like All, but panics if an error occurs.

func (*HPFeedItemQuery) Clone

func (hfiq *HPFeedItemQuery) Clone() *HPFeedItemQuery

Clone returns a duplicate of the HPFeedItemQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPFeedItemQuery) CollectFields

func (hfi *HPFeedItemQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPFeedItemQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPFeedItemQuery) Count

func (hfiq *HPFeedItemQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPFeedItemQuery) CountX

func (hfiq *HPFeedItemQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPFeedItemQuery) Exist

func (hfiq *HPFeedItemQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPFeedItemQuery) ExistX

func (hfiq *HPFeedItemQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPFeedItemQuery) Filter

func (hfiq *HPFeedItemQuery) Filter() *HPFeedItemFilter

Filter returns a Filter implementation to apply filters on the HPFeedItemQuery builder.

func (*HPFeedItemQuery) First

func (hfiq *HPFeedItemQuery) First(ctx context.Context) (*HPFeedItem, error)

First returns the first HPFeedItem entity from the query. Returns a *NotFoundError when no HPFeedItem was found.

func (*HPFeedItemQuery) FirstID

func (hfiq *HPFeedItemQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPFeedItem ID from the query. Returns a *NotFoundError when no HPFeedItem ID was found.

func (*HPFeedItemQuery) FirstIDX

func (hfiq *HPFeedItemQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPFeedItemQuery) FirstX

func (hfiq *HPFeedItemQuery) FirstX(ctx context.Context) *HPFeedItem

FirstX is like First, but panics if an error occurs.

func (*HPFeedItemQuery) GroupBy

func (hfiq *HPFeedItemQuery) GroupBy(field string, fields ...string) *HPFeedItemGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPFeedItem.Query().
	GroupBy(hpfeeditem.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPFeedItemQuery) IDs

func (hfiq *HPFeedItemQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPFeedItem IDs.

func (*HPFeedItemQuery) IDsX

func (hfiq *HPFeedItemQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPFeedItemQuery) Limit

func (hfiq *HPFeedItemQuery) Limit(limit int) *HPFeedItemQuery

Limit the number of records to be returned by this query.

func (*HPFeedItemQuery) Offset

func (hfiq *HPFeedItemQuery) Offset(offset int) *HPFeedItemQuery

Offset to start from.

func (*HPFeedItemQuery) Only

func (hfiq *HPFeedItemQuery) Only(ctx context.Context) (*HPFeedItem, error)

Only returns a single HPFeedItem entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPFeedItem entity is found. Returns a *NotFoundError when no HPFeedItem entities are found.

func (*HPFeedItemQuery) OnlyID

func (hfiq *HPFeedItemQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPFeedItem ID in the query. Returns a *NotSingularError when more than one HPFeedItem ID is found. Returns a *NotFoundError when no entities are found.

func (*HPFeedItemQuery) OnlyIDX

func (hfiq *HPFeedItemQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPFeedItemQuery) OnlyX

func (hfiq *HPFeedItemQuery) OnlyX(ctx context.Context) *HPFeedItem

OnlyX is like Only, but panics if an error occurs.

func (*HPFeedItemQuery) Order

func (hfiq *HPFeedItemQuery) Order(o ...hpfeeditem.Order) *HPFeedItemQuery

Order specifies how the records should be ordered.

func (*HPFeedItemQuery) Paginate

func (hfi *HPFeedItemQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPFeedItemPaginateOption,
) (*HPFeedItemConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPFeedItem.

func (*HPFeedItemQuery) QueryOwnerArtist

func (hfiq *HPFeedItemQuery) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist chains the current query on the "owner_artist" edge.

func (*HPFeedItemQuery) QueryOwnerMember

func (hfiq *HPFeedItemQuery) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember chains the current query on the "owner_member" edge.

func (*HPFeedItemQuery) QueryTaggedArtists

func (hfiq *HPFeedItemQuery) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists chains the current query on the "tagged_artists" edge.

func (*HPFeedItemQuery) QueryTaggedMembers

func (hfiq *HPFeedItemQuery) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers chains the current query on the "tagged_members" edge.

func (*HPFeedItemQuery) QueryViewHistories

func (hfiq *HPFeedItemQuery) QueryViewHistories() *HPViewHistoryQuery

QueryViewHistories chains the current query on the "view_histories" edge.

func (*HPFeedItemQuery) Select

func (hfiq *HPFeedItemQuery) Select(fields ...string) *HPFeedItemSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.HPFeedItem.Query().
	Select(hpfeeditem.FieldCreatedAt).
	Scan(ctx, &v)

func (*HPFeedItemQuery) Unique

func (hfiq *HPFeedItemQuery) Unique(unique bool) *HPFeedItemQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPFeedItemQuery) Where

func (hfiq *HPFeedItemQuery) Where(ps ...predicate.HPFeedItem) *HPFeedItemQuery

Where adds a new predicate for the HPFeedItemQuery builder.

func (*HPFeedItemQuery) WithNamedTaggedArtists

func (hfiq *HPFeedItemQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPFeedItemQuery

WithNamedTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPFeedItemQuery) WithNamedTaggedMembers

func (hfiq *HPFeedItemQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPFeedItemQuery

WithNamedTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPFeedItemQuery) WithNamedViewHistories

func (hfiq *HPFeedItemQuery) WithNamedViewHistories(name string, opts ...func(*HPViewHistoryQuery)) *HPFeedItemQuery

WithNamedViewHistories tells the query-builder to eager-load the nodes that are connected to the "view_histories" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPFeedItemQuery) WithOwnerArtist

func (hfiq *HPFeedItemQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPFeedItemQuery

WithOwnerArtist tells the query-builder to eager-load the nodes that are connected to the "owner_artist" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPFeedItemQuery) WithOwnerMember

func (hfiq *HPFeedItemQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPFeedItemQuery

WithOwnerMember tells the query-builder to eager-load the nodes that are connected to the "owner_member" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPFeedItemQuery) WithTaggedArtists

func (hfiq *HPFeedItemQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPFeedItemQuery

WithTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPFeedItemQuery) WithTaggedMembers

func (hfiq *HPFeedItemQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPFeedItemQuery

WithTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPFeedItemQuery) WithViewHistories

func (hfiq *HPFeedItemQuery) WithViewHistories(opts ...func(*HPViewHistoryQuery)) *HPFeedItemQuery

WithViewHistories tells the query-builder to eager-load the nodes that are connected to the "view_histories" edge. The optional arguments are used to configure the query builder of the edge.

type HPFeedItemSelect

HPFeedItemSelect is the builder for selecting fields of HPFeedItem entities.

type HPFeedItemSelect struct {
    *HPFeedItemQuery
    // contains filtered or unexported fields
}

func (*HPFeedItemSelect) Aggregate

func (hfis *HPFeedItemSelect) Aggregate(fns ...AggregateFunc) *HPFeedItemSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPFeedItemSelect) Bool

func (s *HPFeedItemSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) BoolX

func (s *HPFeedItemSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPFeedItemSelect) Bools

func (s *HPFeedItemSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) BoolsX

func (s *HPFeedItemSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPFeedItemSelect) Float64

func (s *HPFeedItemSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) Float64X

func (s *HPFeedItemSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPFeedItemSelect) Float64s

func (s *HPFeedItemSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) Float64sX

func (s *HPFeedItemSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPFeedItemSelect) Int

func (s *HPFeedItemSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) IntX

func (s *HPFeedItemSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPFeedItemSelect) Ints

func (s *HPFeedItemSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) IntsX

func (s *HPFeedItemSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPFeedItemSelect) Scan

func (hfis *HPFeedItemSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPFeedItemSelect) ScanX

func (s *HPFeedItemSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPFeedItemSelect) String

func (s *HPFeedItemSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) StringX

func (s *HPFeedItemSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPFeedItemSelect) Strings

func (s *HPFeedItemSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPFeedItemSelect) StringsX

func (s *HPFeedItemSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPFeedItemUpdate

HPFeedItemUpdate is the builder for updating HPFeedItem entities.

type HPFeedItemUpdate struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemUpdate) AddSourceID

func (hfiu *HPFeedItemUpdate) AddSourceID(i int) *HPFeedItemUpdate

AddSourceID adds i to the "source_id" field.

func (*HPFeedItemUpdate) AddTaggedArtistIDs

func (hfiu *HPFeedItemUpdate) AddTaggedArtistIDs(ids ...int) *HPFeedItemUpdate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPFeedItemUpdate) AddTaggedArtists

func (hfiu *HPFeedItemUpdate) AddTaggedArtists(h ...*HPArtist) *HPFeedItemUpdate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPFeedItemUpdate) AddTaggedMemberIDs

func (hfiu *HPFeedItemUpdate) AddTaggedMemberIDs(ids ...int) *HPFeedItemUpdate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPFeedItemUpdate) AddTaggedMembers

func (hfiu *HPFeedItemUpdate) AddTaggedMembers(h ...*HPMember) *HPFeedItemUpdate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPFeedItemUpdate) AddViewHistories

func (hfiu *HPFeedItemUpdate) AddViewHistories(h ...*HPViewHistory) *HPFeedItemUpdate

AddViewHistories adds the "view_histories" edges to the HPViewHistory entity.

func (*HPFeedItemUpdate) AddViewHistoryIDs

func (hfiu *HPFeedItemUpdate) AddViewHistoryIDs(ids ...int) *HPFeedItemUpdate

AddViewHistoryIDs adds the "view_histories" edge to the HPViewHistory entity by IDs.

func (*HPFeedItemUpdate) AppendMedia

func (hfiu *HPFeedItemUpdate) AppendMedia(j []jsonfields.Media) *HPFeedItemUpdate

AppendMedia appends j to the "media" field.

func (*HPFeedItemUpdate) ClearImageURL

func (hfiu *HPFeedItemUpdate) ClearImageURL() *HPFeedItemUpdate

ClearImageURL clears the value of the "image_url" field.

func (*HPFeedItemUpdate) ClearOwnerArtist

func (hfiu *HPFeedItemUpdate) ClearOwnerArtist() *HPFeedItemUpdate

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPFeedItemUpdate) ClearOwnerArtistID

func (hfiu *HPFeedItemUpdate) ClearOwnerArtistID() *HPFeedItemUpdate

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPFeedItemUpdate) ClearOwnerMember

func (hfiu *HPFeedItemUpdate) ClearOwnerMember() *HPFeedItemUpdate

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPFeedItemUpdate) ClearOwnerMemberID

func (hfiu *HPFeedItemUpdate) ClearOwnerMemberID() *HPFeedItemUpdate

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPFeedItemUpdate) ClearTaggedArtists

func (hfiu *HPFeedItemUpdate) ClearTaggedArtists() *HPFeedItemUpdate

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPFeedItemUpdate) ClearTaggedMembers

func (hfiu *HPFeedItemUpdate) ClearTaggedMembers() *HPFeedItemUpdate

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPFeedItemUpdate) ClearUpdatedAt

func (hfiu *HPFeedItemUpdate) ClearUpdatedAt() *HPFeedItemUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFeedItemUpdate) ClearViewHistories

func (hfiu *HPFeedItemUpdate) ClearViewHistories() *HPFeedItemUpdate

ClearViewHistories clears all "view_histories" edges to the HPViewHistory entity.

func (*HPFeedItemUpdate) Exec

func (hfiu *HPFeedItemUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFeedItemUpdate) ExecX

func (hfiu *HPFeedItemUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemUpdate) Mutation

func (hfiu *HPFeedItemUpdate) Mutation() *HPFeedItemMutation

Mutation returns the HPFeedItemMutation object of the builder.

func (*HPFeedItemUpdate) RemoveTaggedArtistIDs

func (hfiu *HPFeedItemUpdate) RemoveTaggedArtistIDs(ids ...int) *HPFeedItemUpdate

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPFeedItemUpdate) RemoveTaggedArtists

func (hfiu *HPFeedItemUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPFeedItemUpdate

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPFeedItemUpdate) RemoveTaggedMemberIDs

func (hfiu *HPFeedItemUpdate) RemoveTaggedMemberIDs(ids ...int) *HPFeedItemUpdate

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPFeedItemUpdate) RemoveTaggedMembers

func (hfiu *HPFeedItemUpdate) RemoveTaggedMembers(h ...*HPMember) *HPFeedItemUpdate

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPFeedItemUpdate) RemoveViewHistories

func (hfiu *HPFeedItemUpdate) RemoveViewHistories(h ...*HPViewHistory) *HPFeedItemUpdate

RemoveViewHistories removes "view_histories" edges to HPViewHistory entities.

func (*HPFeedItemUpdate) RemoveViewHistoryIDs

func (hfiu *HPFeedItemUpdate) RemoveViewHistoryIDs(ids ...int) *HPFeedItemUpdate

RemoveViewHistoryIDs removes the "view_histories" edge to HPViewHistory entities by IDs.

func (*HPFeedItemUpdate) Save

func (hfiu *HPFeedItemUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPFeedItemUpdate) SaveX

func (hfiu *HPFeedItemUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPFeedItemUpdate) SetAssetType

func (hfiu *HPFeedItemUpdate) SetAssetType(eat enums.HPAssetType) *HPFeedItemUpdate

SetAssetType sets the "asset_type" field.

func (*HPFeedItemUpdate) SetImageURL

func (hfiu *HPFeedItemUpdate) SetImageURL(s string) *HPFeedItemUpdate

SetImageURL sets the "image_url" field.

func (*HPFeedItemUpdate) SetMedia

func (hfiu *HPFeedItemUpdate) SetMedia(j []jsonfields.Media) *HPFeedItemUpdate

SetMedia sets the "media" field.

func (*HPFeedItemUpdate) SetNillableAssetType

func (hfiu *HPFeedItemUpdate) SetNillableAssetType(eat *enums.HPAssetType) *HPFeedItemUpdate

SetNillableAssetType sets the "asset_type" field if the given value is not nil.

func (*HPFeedItemUpdate) SetNillableImageURL

func (hfiu *HPFeedItemUpdate) SetNillableImageURL(s *string) *HPFeedItemUpdate

SetNillableImageURL sets the "image_url" field if the given value is not nil.

func (*HPFeedItemUpdate) SetNillableOwnerArtistID

func (hfiu *HPFeedItemUpdate) SetNillableOwnerArtistID(i *int) *HPFeedItemUpdate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPFeedItemUpdate) SetNillableOwnerMemberID

func (hfiu *HPFeedItemUpdate) SetNillableOwnerMemberID(i *int) *HPFeedItemUpdate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPFeedItemUpdate) SetNillableUpdatedAt

func (hfiu *HPFeedItemUpdate) SetNillableUpdatedAt(t *time.Time) *HPFeedItemUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFeedItemUpdate) SetOwnerArtist

func (hfiu *HPFeedItemUpdate) SetOwnerArtist(h *HPArtist) *HPFeedItemUpdate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPFeedItemUpdate) SetOwnerArtistID

func (hfiu *HPFeedItemUpdate) SetOwnerArtistID(i int) *HPFeedItemUpdate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPFeedItemUpdate) SetOwnerMember

func (hfiu *HPFeedItemUpdate) SetOwnerMember(h *HPMember) *HPFeedItemUpdate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPFeedItemUpdate) SetOwnerMemberID

func (hfiu *HPFeedItemUpdate) SetOwnerMemberID(i int) *HPFeedItemUpdate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPFeedItemUpdate) SetPostAt

func (hfiu *HPFeedItemUpdate) SetPostAt(t time.Time) *HPFeedItemUpdate

SetPostAt sets the "post_at" field.

func (*HPFeedItemUpdate) SetSourceID

func (hfiu *HPFeedItemUpdate) SetSourceID(i int) *HPFeedItemUpdate

SetSourceID sets the "source_id" field.

func (*HPFeedItemUpdate) SetSourceURL

func (hfiu *HPFeedItemUpdate) SetSourceURL(s string) *HPFeedItemUpdate

SetSourceURL sets the "source_url" field.

func (*HPFeedItemUpdate) SetTitle

func (hfiu *HPFeedItemUpdate) SetTitle(s string) *HPFeedItemUpdate

SetTitle sets the "title" field.

func (*HPFeedItemUpdate) SetUpdatedAt

func (hfiu *HPFeedItemUpdate) SetUpdatedAt(t time.Time) *HPFeedItemUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPFeedItemUpdate) Where

func (hfiu *HPFeedItemUpdate) Where(ps ...predicate.HPFeedItem) *HPFeedItemUpdate

Where appends a list predicates to the HPFeedItemUpdate builder.

type HPFeedItemUpdateOne

HPFeedItemUpdateOne is the builder for updating a single HPFeedItem entity.

type HPFeedItemUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemUpdateOne) AddSourceID

func (hfiuo *HPFeedItemUpdateOne) AddSourceID(i int) *HPFeedItemUpdateOne

AddSourceID adds i to the "source_id" field.

func (*HPFeedItemUpdateOne) AddTaggedArtistIDs

func (hfiuo *HPFeedItemUpdateOne) AddTaggedArtistIDs(ids ...int) *HPFeedItemUpdateOne

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPFeedItemUpdateOne) AddTaggedArtists

func (hfiuo *HPFeedItemUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPFeedItemUpdateOne

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPFeedItemUpdateOne) AddTaggedMemberIDs

func (hfiuo *HPFeedItemUpdateOne) AddTaggedMemberIDs(ids ...int) *HPFeedItemUpdateOne

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPFeedItemUpdateOne) AddTaggedMembers

func (hfiuo *HPFeedItemUpdateOne) AddTaggedMembers(h ...*HPMember) *HPFeedItemUpdateOne

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPFeedItemUpdateOne) AddViewHistories

func (hfiuo *HPFeedItemUpdateOne) AddViewHistories(h ...*HPViewHistory) *HPFeedItemUpdateOne

AddViewHistories adds the "view_histories" edges to the HPViewHistory entity.

func (*HPFeedItemUpdateOne) AddViewHistoryIDs

func (hfiuo *HPFeedItemUpdateOne) AddViewHistoryIDs(ids ...int) *HPFeedItemUpdateOne

AddViewHistoryIDs adds the "view_histories" edge to the HPViewHistory entity by IDs.

func (*HPFeedItemUpdateOne) AppendMedia

func (hfiuo *HPFeedItemUpdateOne) AppendMedia(j []jsonfields.Media) *HPFeedItemUpdateOne

AppendMedia appends j to the "media" field.

func (*HPFeedItemUpdateOne) ClearImageURL

func (hfiuo *HPFeedItemUpdateOne) ClearImageURL() *HPFeedItemUpdateOne

ClearImageURL clears the value of the "image_url" field.

func (*HPFeedItemUpdateOne) ClearOwnerArtist

func (hfiuo *HPFeedItemUpdateOne) ClearOwnerArtist() *HPFeedItemUpdateOne

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPFeedItemUpdateOne) ClearOwnerArtistID

func (hfiuo *HPFeedItemUpdateOne) ClearOwnerArtistID() *HPFeedItemUpdateOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPFeedItemUpdateOne) ClearOwnerMember

func (hfiuo *HPFeedItemUpdateOne) ClearOwnerMember() *HPFeedItemUpdateOne

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPFeedItemUpdateOne) ClearOwnerMemberID

func (hfiuo *HPFeedItemUpdateOne) ClearOwnerMemberID() *HPFeedItemUpdateOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPFeedItemUpdateOne) ClearTaggedArtists

func (hfiuo *HPFeedItemUpdateOne) ClearTaggedArtists() *HPFeedItemUpdateOne

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPFeedItemUpdateOne) ClearTaggedMembers

func (hfiuo *HPFeedItemUpdateOne) ClearTaggedMembers() *HPFeedItemUpdateOne

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPFeedItemUpdateOne) ClearUpdatedAt

func (hfiuo *HPFeedItemUpdateOne) ClearUpdatedAt() *HPFeedItemUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFeedItemUpdateOne) ClearViewHistories

func (hfiuo *HPFeedItemUpdateOne) ClearViewHistories() *HPFeedItemUpdateOne

ClearViewHistories clears all "view_histories" edges to the HPViewHistory entity.

func (*HPFeedItemUpdateOne) Exec

func (hfiuo *HPFeedItemUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPFeedItemUpdateOne) ExecX

func (hfiuo *HPFeedItemUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemUpdateOne) Mutation

func (hfiuo *HPFeedItemUpdateOne) Mutation() *HPFeedItemMutation

Mutation returns the HPFeedItemMutation object of the builder.

func (*HPFeedItemUpdateOne) RemoveTaggedArtistIDs

func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPFeedItemUpdateOne

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPFeedItemUpdateOne) RemoveTaggedArtists

func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPFeedItemUpdateOne

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPFeedItemUpdateOne) RemoveTaggedMemberIDs

func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPFeedItemUpdateOne

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPFeedItemUpdateOne) RemoveTaggedMembers

func (hfiuo *HPFeedItemUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPFeedItemUpdateOne

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPFeedItemUpdateOne) RemoveViewHistories

func (hfiuo *HPFeedItemUpdateOne) RemoveViewHistories(h ...*HPViewHistory) *HPFeedItemUpdateOne

RemoveViewHistories removes "view_histories" edges to HPViewHistory entities.

func (*HPFeedItemUpdateOne) RemoveViewHistoryIDs

func (hfiuo *HPFeedItemUpdateOne) RemoveViewHistoryIDs(ids ...int) *HPFeedItemUpdateOne

RemoveViewHistoryIDs removes the "view_histories" edge to HPViewHistory entities by IDs.

func (*HPFeedItemUpdateOne) Save

func (hfiuo *HPFeedItemUpdateOne) Save(ctx context.Context) (*HPFeedItem, error)

Save executes the query and returns the updated HPFeedItem entity.

func (*HPFeedItemUpdateOne) SaveX

func (hfiuo *HPFeedItemUpdateOne) SaveX(ctx context.Context) *HPFeedItem

SaveX is like Save, but panics if an error occurs.

func (*HPFeedItemUpdateOne) Select

func (hfiuo *HPFeedItemUpdateOne) Select(field string, fields ...string) *HPFeedItemUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPFeedItemUpdateOne) SetAssetType

func (hfiuo *HPFeedItemUpdateOne) SetAssetType(eat enums.HPAssetType) *HPFeedItemUpdateOne

SetAssetType sets the "asset_type" field.

func (*HPFeedItemUpdateOne) SetImageURL

func (hfiuo *HPFeedItemUpdateOne) SetImageURL(s string) *HPFeedItemUpdateOne

SetImageURL sets the "image_url" field.

func (*HPFeedItemUpdateOne) SetMedia

func (hfiuo *HPFeedItemUpdateOne) SetMedia(j []jsonfields.Media) *HPFeedItemUpdateOne

SetMedia sets the "media" field.

func (*HPFeedItemUpdateOne) SetNillableAssetType

func (hfiuo *HPFeedItemUpdateOne) SetNillableAssetType(eat *enums.HPAssetType) *HPFeedItemUpdateOne

SetNillableAssetType sets the "asset_type" field if the given value is not nil.

func (*HPFeedItemUpdateOne) SetNillableImageURL

func (hfiuo *HPFeedItemUpdateOne) SetNillableImageURL(s *string) *HPFeedItemUpdateOne

SetNillableImageURL sets the "image_url" field if the given value is not nil.

func (*HPFeedItemUpdateOne) SetNillableOwnerArtistID

func (hfiuo *HPFeedItemUpdateOne) SetNillableOwnerArtistID(i *int) *HPFeedItemUpdateOne

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPFeedItemUpdateOne) SetNillableOwnerMemberID

func (hfiuo *HPFeedItemUpdateOne) SetNillableOwnerMemberID(i *int) *HPFeedItemUpdateOne

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPFeedItemUpdateOne) SetNillableUpdatedAt

func (hfiuo *HPFeedItemUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFeedItemUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFeedItemUpdateOne) SetOwnerArtist

func (hfiuo *HPFeedItemUpdateOne) SetOwnerArtist(h *HPArtist) *HPFeedItemUpdateOne

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPFeedItemUpdateOne) SetOwnerArtistID

func (hfiuo *HPFeedItemUpdateOne) SetOwnerArtistID(i int) *HPFeedItemUpdateOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPFeedItemUpdateOne) SetOwnerMember

func (hfiuo *HPFeedItemUpdateOne) SetOwnerMember(h *HPMember) *HPFeedItemUpdateOne

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPFeedItemUpdateOne) SetOwnerMemberID

func (hfiuo *HPFeedItemUpdateOne) SetOwnerMemberID(i int) *HPFeedItemUpdateOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPFeedItemUpdateOne) SetPostAt

func (hfiuo *HPFeedItemUpdateOne) SetPostAt(t time.Time) *HPFeedItemUpdateOne

SetPostAt sets the "post_at" field.

func (*HPFeedItemUpdateOne) SetSourceID

func (hfiuo *HPFeedItemUpdateOne) SetSourceID(i int) *HPFeedItemUpdateOne

SetSourceID sets the "source_id" field.

func (*HPFeedItemUpdateOne) SetSourceURL

func (hfiuo *HPFeedItemUpdateOne) SetSourceURL(s string) *HPFeedItemUpdateOne

SetSourceURL sets the "source_url" field.

func (*HPFeedItemUpdateOne) SetTitle

func (hfiuo *HPFeedItemUpdateOne) SetTitle(s string) *HPFeedItemUpdateOne

SetTitle sets the "title" field.

func (*HPFeedItemUpdateOne) SetUpdatedAt

func (hfiuo *HPFeedItemUpdateOne) SetUpdatedAt(t time.Time) *HPFeedItemUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPFeedItemUpdateOne) Where

func (hfiuo *HPFeedItemUpdateOne) Where(ps ...predicate.HPFeedItem) *HPFeedItemUpdateOne

Where appends a list predicates to the HPFeedItemUpdate builder.

type HPFeedItemUpsert

HPFeedItemUpsert is the "OnConflict" setter.

type HPFeedItemUpsert struct {
    *sql.UpdateSet
}

func (*HPFeedItemUpsert) AddSourceID

func (u *HPFeedItemUpsert) AddSourceID(v int) *HPFeedItemUpsert

AddSourceID adds v to the "source_id" field.

func (*HPFeedItemUpsert) ClearImageURL

func (u *HPFeedItemUpsert) ClearImageURL() *HPFeedItemUpsert

ClearImageURL clears the value of the "image_url" field.

func (*HPFeedItemUpsert) ClearOwnerArtistID

func (u *HPFeedItemUpsert) ClearOwnerArtistID() *HPFeedItemUpsert

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPFeedItemUpsert) ClearOwnerMemberID

func (u *HPFeedItemUpsert) ClearOwnerMemberID() *HPFeedItemUpsert

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPFeedItemUpsert) ClearUpdatedAt

func (u *HPFeedItemUpsert) ClearUpdatedAt() *HPFeedItemUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFeedItemUpsert) SetAssetType

func (u *HPFeedItemUpsert) SetAssetType(v enums.HPAssetType) *HPFeedItemUpsert

SetAssetType sets the "asset_type" field.

func (*HPFeedItemUpsert) SetImageURL

func (u *HPFeedItemUpsert) SetImageURL(v string) *HPFeedItemUpsert

SetImageURL sets the "image_url" field.

func (*HPFeedItemUpsert) SetMedia

func (u *HPFeedItemUpsert) SetMedia(v []jsonfields.Media) *HPFeedItemUpsert

SetMedia sets the "media" field.

func (*HPFeedItemUpsert) SetOwnerArtistID

func (u *HPFeedItemUpsert) SetOwnerArtistID(v int) *HPFeedItemUpsert

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPFeedItemUpsert) SetOwnerMemberID

func (u *HPFeedItemUpsert) SetOwnerMemberID(v int) *HPFeedItemUpsert

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPFeedItemUpsert) SetPostAt

func (u *HPFeedItemUpsert) SetPostAt(v time.Time) *HPFeedItemUpsert

SetPostAt sets the "post_at" field.

func (*HPFeedItemUpsert) SetSourceID

func (u *HPFeedItemUpsert) SetSourceID(v int) *HPFeedItemUpsert

SetSourceID sets the "source_id" field.

func (*HPFeedItemUpsert) SetSourceURL

func (u *HPFeedItemUpsert) SetSourceURL(v string) *HPFeedItemUpsert

SetSourceURL sets the "source_url" field.

func (*HPFeedItemUpsert) SetTitle

func (u *HPFeedItemUpsert) SetTitle(v string) *HPFeedItemUpsert

SetTitle sets the "title" field.

func (*HPFeedItemUpsert) SetUpdatedAt

func (u *HPFeedItemUpsert) SetUpdatedAt(v time.Time) *HPFeedItemUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPFeedItemUpsert) UpdateAssetType

func (u *HPFeedItemUpsert) UpdateAssetType() *HPFeedItemUpsert

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateImageURL

func (u *HPFeedItemUpsert) UpdateImageURL() *HPFeedItemUpsert

UpdateImageURL sets the "image_url" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateMedia

func (u *HPFeedItemUpsert) UpdateMedia() *HPFeedItemUpsert

UpdateMedia sets the "media" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateOwnerArtistID

func (u *HPFeedItemUpsert) UpdateOwnerArtistID() *HPFeedItemUpsert

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateOwnerMemberID

func (u *HPFeedItemUpsert) UpdateOwnerMemberID() *HPFeedItemUpsert

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdatePostAt

func (u *HPFeedItemUpsert) UpdatePostAt() *HPFeedItemUpsert

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateSourceID

func (u *HPFeedItemUpsert) UpdateSourceID() *HPFeedItemUpsert

UpdateSourceID sets the "source_id" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateSourceURL

func (u *HPFeedItemUpsert) UpdateSourceURL() *HPFeedItemUpsert

UpdateSourceURL sets the "source_url" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateTitle

func (u *HPFeedItemUpsert) UpdateTitle() *HPFeedItemUpsert

UpdateTitle sets the "title" field to the value that was provided on create.

func (*HPFeedItemUpsert) UpdateUpdatedAt

func (u *HPFeedItemUpsert) UpdateUpdatedAt() *HPFeedItemUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFeedItemUpsertBulk

HPFeedItemUpsertBulk is the builder for "upsert"-ing a bulk of HPFeedItem nodes.

type HPFeedItemUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemUpsertBulk) AddSourceID

func (u *HPFeedItemUpsertBulk) AddSourceID(v int) *HPFeedItemUpsertBulk

AddSourceID adds v to the "source_id" field.

func (*HPFeedItemUpsertBulk) ClearImageURL

func (u *HPFeedItemUpsertBulk) ClearImageURL() *HPFeedItemUpsertBulk

ClearImageURL clears the value of the "image_url" field.

func (*HPFeedItemUpsertBulk) ClearOwnerArtistID

func (u *HPFeedItemUpsertBulk) ClearOwnerArtistID() *HPFeedItemUpsertBulk

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPFeedItemUpsertBulk) ClearOwnerMemberID

func (u *HPFeedItemUpsertBulk) ClearOwnerMemberID() *HPFeedItemUpsertBulk

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPFeedItemUpsertBulk) ClearUpdatedAt

func (u *HPFeedItemUpsertBulk) ClearUpdatedAt() *HPFeedItemUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFeedItemUpsertBulk) DoNothing

func (u *HPFeedItemUpsertBulk) DoNothing() *HPFeedItemUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPFeedItemUpsertBulk) Exec

func (u *HPFeedItemUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFeedItemUpsertBulk) ExecX

func (u *HPFeedItemUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemUpsertBulk) Ignore

func (u *HPFeedItemUpsertBulk) Ignore() *HPFeedItemUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPFeedItem.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPFeedItemUpsertBulk) SetAssetType

func (u *HPFeedItemUpsertBulk) SetAssetType(v enums.HPAssetType) *HPFeedItemUpsertBulk

SetAssetType sets the "asset_type" field.

func (*HPFeedItemUpsertBulk) SetImageURL

func (u *HPFeedItemUpsertBulk) SetImageURL(v string) *HPFeedItemUpsertBulk

SetImageURL sets the "image_url" field.

func (*HPFeedItemUpsertBulk) SetMedia

func (u *HPFeedItemUpsertBulk) SetMedia(v []jsonfields.Media) *HPFeedItemUpsertBulk

SetMedia sets the "media" field.

func (*HPFeedItemUpsertBulk) SetOwnerArtistID

func (u *HPFeedItemUpsertBulk) SetOwnerArtistID(v int) *HPFeedItemUpsertBulk

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPFeedItemUpsertBulk) SetOwnerMemberID

func (u *HPFeedItemUpsertBulk) SetOwnerMemberID(v int) *HPFeedItemUpsertBulk

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPFeedItemUpsertBulk) SetPostAt

func (u *HPFeedItemUpsertBulk) SetPostAt(v time.Time) *HPFeedItemUpsertBulk

SetPostAt sets the "post_at" field.

func (*HPFeedItemUpsertBulk) SetSourceID

func (u *HPFeedItemUpsertBulk) SetSourceID(v int) *HPFeedItemUpsertBulk

SetSourceID sets the "source_id" field.

func (*HPFeedItemUpsertBulk) SetSourceURL

func (u *HPFeedItemUpsertBulk) SetSourceURL(v string) *HPFeedItemUpsertBulk

SetSourceURL sets the "source_url" field.

func (*HPFeedItemUpsertBulk) SetTitle

func (u *HPFeedItemUpsertBulk) SetTitle(v string) *HPFeedItemUpsertBulk

SetTitle sets the "title" field.

func (*HPFeedItemUpsertBulk) SetUpdatedAt

func (u *HPFeedItemUpsertBulk) SetUpdatedAt(v time.Time) *HPFeedItemUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPFeedItemUpsertBulk) Update

func (u *HPFeedItemUpsertBulk) Update(set func(*HPFeedItemUpsert)) *HPFeedItemUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPFeedItemCreateBulk.OnConflict documentation for more info.

func (*HPFeedItemUpsertBulk) UpdateAssetType

func (u *HPFeedItemUpsertBulk) UpdateAssetType() *HPFeedItemUpsertBulk

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateImageURL

func (u *HPFeedItemUpsertBulk) UpdateImageURL() *HPFeedItemUpsertBulk

UpdateImageURL sets the "image_url" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateMedia

func (u *HPFeedItemUpsertBulk) UpdateMedia() *HPFeedItemUpsertBulk

UpdateMedia sets the "media" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateNewValues

func (u *HPFeedItemUpsertBulk) UpdateNewValues() *HPFeedItemUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPFeedItem.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPFeedItemUpsertBulk) UpdateOwnerArtistID

func (u *HPFeedItemUpsertBulk) UpdateOwnerArtistID() *HPFeedItemUpsertBulk

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateOwnerMemberID

func (u *HPFeedItemUpsertBulk) UpdateOwnerMemberID() *HPFeedItemUpsertBulk

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdatePostAt

func (u *HPFeedItemUpsertBulk) UpdatePostAt() *HPFeedItemUpsertBulk

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateSourceID

func (u *HPFeedItemUpsertBulk) UpdateSourceID() *HPFeedItemUpsertBulk

UpdateSourceID sets the "source_id" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateSourceURL

func (u *HPFeedItemUpsertBulk) UpdateSourceURL() *HPFeedItemUpsertBulk

UpdateSourceURL sets the "source_url" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateTitle

func (u *HPFeedItemUpsertBulk) UpdateTitle() *HPFeedItemUpsertBulk

UpdateTitle sets the "title" field to the value that was provided on create.

func (*HPFeedItemUpsertBulk) UpdateUpdatedAt

func (u *HPFeedItemUpsertBulk) UpdateUpdatedAt() *HPFeedItemUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFeedItemUpsertOne

HPFeedItemUpsertOne is the builder for "upsert"-ing

one HPFeedItem node.
type HPFeedItemUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPFeedItemUpsertOne) AddSourceID

func (u *HPFeedItemUpsertOne) AddSourceID(v int) *HPFeedItemUpsertOne

AddSourceID adds v to the "source_id" field.

func (*HPFeedItemUpsertOne) ClearImageURL

func (u *HPFeedItemUpsertOne) ClearImageURL() *HPFeedItemUpsertOne

ClearImageURL clears the value of the "image_url" field.

func (*HPFeedItemUpsertOne) ClearOwnerArtistID

func (u *HPFeedItemUpsertOne) ClearOwnerArtistID() *HPFeedItemUpsertOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPFeedItemUpsertOne) ClearOwnerMemberID

func (u *HPFeedItemUpsertOne) ClearOwnerMemberID() *HPFeedItemUpsertOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPFeedItemUpsertOne) ClearUpdatedAt

func (u *HPFeedItemUpsertOne) ClearUpdatedAt() *HPFeedItemUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFeedItemUpsertOne) DoNothing

func (u *HPFeedItemUpsertOne) DoNothing() *HPFeedItemUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPFeedItemUpsertOne) Exec

func (u *HPFeedItemUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFeedItemUpsertOne) ExecX

func (u *HPFeedItemUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFeedItemUpsertOne) ID

func (u *HPFeedItemUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPFeedItemUpsertOne) IDX

func (u *HPFeedItemUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPFeedItemUpsertOne) Ignore

func (u *HPFeedItemUpsertOne) Ignore() *HPFeedItemUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPFeedItem.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPFeedItemUpsertOne) SetAssetType

func (u *HPFeedItemUpsertOne) SetAssetType(v enums.HPAssetType) *HPFeedItemUpsertOne

SetAssetType sets the "asset_type" field.

func (*HPFeedItemUpsertOne) SetImageURL

func (u *HPFeedItemUpsertOne) SetImageURL(v string) *HPFeedItemUpsertOne

SetImageURL sets the "image_url" field.

func (*HPFeedItemUpsertOne) SetMedia

func (u *HPFeedItemUpsertOne) SetMedia(v []jsonfields.Media) *HPFeedItemUpsertOne

SetMedia sets the "media" field.

func (*HPFeedItemUpsertOne) SetOwnerArtistID

func (u *HPFeedItemUpsertOne) SetOwnerArtistID(v int) *HPFeedItemUpsertOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPFeedItemUpsertOne) SetOwnerMemberID

func (u *HPFeedItemUpsertOne) SetOwnerMemberID(v int) *HPFeedItemUpsertOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPFeedItemUpsertOne) SetPostAt

func (u *HPFeedItemUpsertOne) SetPostAt(v time.Time) *HPFeedItemUpsertOne

SetPostAt sets the "post_at" field.

func (*HPFeedItemUpsertOne) SetSourceID

func (u *HPFeedItemUpsertOne) SetSourceID(v int) *HPFeedItemUpsertOne

SetSourceID sets the "source_id" field.

func (*HPFeedItemUpsertOne) SetSourceURL

func (u *HPFeedItemUpsertOne) SetSourceURL(v string) *HPFeedItemUpsertOne

SetSourceURL sets the "source_url" field.

func (*HPFeedItemUpsertOne) SetTitle

func (u *HPFeedItemUpsertOne) SetTitle(v string) *HPFeedItemUpsertOne

SetTitle sets the "title" field.

func (*HPFeedItemUpsertOne) SetUpdatedAt

func (u *HPFeedItemUpsertOne) SetUpdatedAt(v time.Time) *HPFeedItemUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPFeedItemUpsertOne) Update

func (u *HPFeedItemUpsertOne) Update(set func(*HPFeedItemUpsert)) *HPFeedItemUpsertOne

Update allows overriding fields `UPDATE` values. See the HPFeedItemCreate.OnConflict documentation for more info.

func (*HPFeedItemUpsertOne) UpdateAssetType

func (u *HPFeedItemUpsertOne) UpdateAssetType() *HPFeedItemUpsertOne

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateImageURL

func (u *HPFeedItemUpsertOne) UpdateImageURL() *HPFeedItemUpsertOne

UpdateImageURL sets the "image_url" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateMedia

func (u *HPFeedItemUpsertOne) UpdateMedia() *HPFeedItemUpsertOne

UpdateMedia sets the "media" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateNewValues

func (u *HPFeedItemUpsertOne) UpdateNewValues() *HPFeedItemUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPFeedItem.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPFeedItemUpsertOne) UpdateOwnerArtistID

func (u *HPFeedItemUpsertOne) UpdateOwnerArtistID() *HPFeedItemUpsertOne

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateOwnerMemberID

func (u *HPFeedItemUpsertOne) UpdateOwnerMemberID() *HPFeedItemUpsertOne

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdatePostAt

func (u *HPFeedItemUpsertOne) UpdatePostAt() *HPFeedItemUpsertOne

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateSourceID

func (u *HPFeedItemUpsertOne) UpdateSourceID() *HPFeedItemUpsertOne

UpdateSourceID sets the "source_id" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateSourceURL

func (u *HPFeedItemUpsertOne) UpdateSourceURL() *HPFeedItemUpsertOne

UpdateSourceURL sets the "source_url" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateTitle

func (u *HPFeedItemUpsertOne) UpdateTitle() *HPFeedItemUpsertOne

UpdateTitle sets the "title" field to the value that was provided on create.

func (*HPFeedItemUpsertOne) UpdateUpdatedAt

func (u *HPFeedItemUpsertOne) UpdateUpdatedAt() *HPFeedItemUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFeedItems

HPFeedItems is a parsable slice of HPFeedItem.

type HPFeedItems []*HPFeedItem

type HPFollow

HPFollow is the model entity for the HPFollow schema.

type HPFollow struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Type holds the value of the "type" field.
    Type enums.HPFollowType `json:"type,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPFollowQuery when eager-loading is set.
    Edges HPFollowEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPFollow) IsNode

func (n *HPFollow) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPFollow) Member

func (hf *HPFollow) Member(ctx context.Context) (*HPMember, error)

func (*HPFollow) QueryMember

func (hf *HPFollow) QueryMember() *HPMemberQuery

QueryMember queries the "member" edge of the HPFollow entity.

func (*HPFollow) QueryUser

func (hf *HPFollow) QueryUser() *UserQuery

QueryUser queries the "user" edge of the HPFollow entity.

func (*HPFollow) String

func (hf *HPFollow) String() string

String implements the fmt.Stringer.

func (*HPFollow) ToEdge

func (hf *HPFollow) ToEdge(order *HPFollowOrder) *HPFollowEdge

ToEdge converts HPFollow into HPFollowEdge.

func (*HPFollow) Unwrap

func (hf *HPFollow) Unwrap() *HPFollow

Unwrap unwraps the HPFollow entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPFollow) Update

func (hf *HPFollow) Update() *HPFollowUpdateOne

Update returns a builder for updating this HPFollow. Note that you need to call HPFollow.Unwrap() before calling this method if this HPFollow was returned from a transaction, and the transaction was committed or rolled back.

func (*HPFollow) User

func (hf *HPFollow) User(ctx context.Context) (*User, error)

func (*HPFollow) Value

func (hf *HPFollow) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPFollow. This includes values selected through modifiers, order, etc.

type HPFollowClient

HPFollowClient is a client for the HPFollow schema.

type HPFollowClient struct {
    // contains filtered or unexported fields
}

func NewHPFollowClient

func NewHPFollowClient(c config) *HPFollowClient

NewHPFollowClient returns a client for the HPFollow from the given config.

func (*HPFollowClient) Create

func (c *HPFollowClient) Create() *HPFollowCreate

Create returns a builder for creating a HPFollow entity.

func (*HPFollowClient) CreateBulk

func (c *HPFollowClient) CreateBulk(builders ...*HPFollowCreate) *HPFollowCreateBulk

CreateBulk returns a builder for creating a bulk of HPFollow entities.

func (*HPFollowClient) Delete

func (c *HPFollowClient) Delete() *HPFollowDelete

Delete returns a delete builder for HPFollow.

func (*HPFollowClient) DeleteOne

func (c *HPFollowClient) DeleteOne(hf *HPFollow) *HPFollowDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPFollowClient) DeleteOneID

func (c *HPFollowClient) DeleteOneID(id int) *HPFollowDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPFollowClient) Get

func (c *HPFollowClient) Get(ctx context.Context, id int) (*HPFollow, error)

Get returns a HPFollow entity by its id.

func (*HPFollowClient) GetX

func (c *HPFollowClient) GetX(ctx context.Context, id int) *HPFollow

GetX is like Get, but panics if an error occurs.

func (*HPFollowClient) Hooks

func (c *HPFollowClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPFollowClient) Intercept

func (c *HPFollowClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpfollow.Intercept(f(g(h())))`.

func (*HPFollowClient) Interceptors

func (c *HPFollowClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPFollowClient) Query

func (c *HPFollowClient) Query() *HPFollowQuery

Query returns a query builder for HPFollow.

func (*HPFollowClient) QueryMember

func (c *HPFollowClient) QueryMember(hf *HPFollow) *HPMemberQuery

QueryMember queries the member edge of a HPFollow.

func (*HPFollowClient) QueryUser

func (c *HPFollowClient) QueryUser(hf *HPFollow) *UserQuery

QueryUser queries the user edge of a HPFollow.

func (*HPFollowClient) Update

func (c *HPFollowClient) Update() *HPFollowUpdate

Update returns an update builder for HPFollow.

func (*HPFollowClient) UpdateOne

func (c *HPFollowClient) UpdateOne(hf *HPFollow) *HPFollowUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPFollowClient) UpdateOneID

func (c *HPFollowClient) UpdateOneID(id int) *HPFollowUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPFollowClient) Use

func (c *HPFollowClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpfollow.Hooks(f(g(h())))`.

type HPFollowConnection

HPFollowConnection is the connection containing edges to HPFollow.

type HPFollowConnection struct {
    Edges      []*HPFollowEdge `json:"edges"`
    PageInfo   PageInfo        `json:"pageInfo"`
    TotalCount int             `json:"totalCount"`
}

type HPFollowCreate

HPFollowCreate is the builder for creating a HPFollow entity.

type HPFollowCreate struct {
    // contains filtered or unexported fields
}

func (*HPFollowCreate) Exec

func (hfc *HPFollowCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFollowCreate) ExecX

func (hfc *HPFollowCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowCreate) Mutation

func (hfc *HPFollowCreate) Mutation() *HPFollowMutation

Mutation returns the HPFollowMutation object of the builder.

func (*HPFollowCreate) OnConflict

func (hfc *HPFollowCreate) OnConflict(opts ...sql.ConflictOption) *HPFollowUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPFollow.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPFollowUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPFollowCreate) OnConflictColumns

func (hfc *HPFollowCreate) OnConflictColumns(columns ...string) *HPFollowUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPFollow.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPFollowCreate) Save

func (hfc *HPFollowCreate) Save(ctx context.Context) (*HPFollow, error)

Save creates the HPFollow in the database.

func (*HPFollowCreate) SaveX

func (hfc *HPFollowCreate) SaveX(ctx context.Context) *HPFollow

SaveX calls Save and panics if Save returns an error.

func (*HPFollowCreate) SetCreatedAt

func (hfc *HPFollowCreate) SetCreatedAt(t time.Time) *HPFollowCreate

SetCreatedAt sets the "created_at" field.

func (*HPFollowCreate) SetMember

func (hfc *HPFollowCreate) SetMember(h *HPMember) *HPFollowCreate

SetMember sets the "member" edge to the HPMember entity.

func (*HPFollowCreate) SetMemberID

func (hfc *HPFollowCreate) SetMemberID(id int) *HPFollowCreate

SetMemberID sets the "member" edge to the HPMember entity by ID.

func (*HPFollowCreate) SetNillableCreatedAt

func (hfc *HPFollowCreate) SetNillableCreatedAt(t *time.Time) *HPFollowCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPFollowCreate) SetNillableType

func (hfc *HPFollowCreate) SetNillableType(eft *enums.HPFollowType) *HPFollowCreate

SetNillableType sets the "type" field if the given value is not nil.

func (*HPFollowCreate) SetNillableUpdatedAt

func (hfc *HPFollowCreate) SetNillableUpdatedAt(t *time.Time) *HPFollowCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFollowCreate) SetType

func (hfc *HPFollowCreate) SetType(eft enums.HPFollowType) *HPFollowCreate

SetType sets the "type" field.

func (*HPFollowCreate) SetUpdatedAt

func (hfc *HPFollowCreate) SetUpdatedAt(t time.Time) *HPFollowCreate

SetUpdatedAt sets the "updated_at" field.

func (*HPFollowCreate) SetUser

func (hfc *HPFollowCreate) SetUser(u *User) *HPFollowCreate

SetUser sets the "user" edge to the User entity.

func (*HPFollowCreate) SetUserID

func (hfc *HPFollowCreate) SetUserID(id int) *HPFollowCreate

SetUserID sets the "user" edge to the User entity by ID.

type HPFollowCreateBulk

HPFollowCreateBulk is the builder for creating many HPFollow entities in bulk.

type HPFollowCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPFollowCreateBulk) Exec

func (hfcb *HPFollowCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFollowCreateBulk) ExecX

func (hfcb *HPFollowCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowCreateBulk) OnConflict

func (hfcb *HPFollowCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPFollowUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPFollow.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPFollowUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPFollowCreateBulk) OnConflictColumns

func (hfcb *HPFollowCreateBulk) OnConflictColumns(columns ...string) *HPFollowUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPFollow.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPFollowCreateBulk) Save

func (hfcb *HPFollowCreateBulk) Save(ctx context.Context) ([]*HPFollow, error)

Save creates the HPFollow entities in the database.

func (*HPFollowCreateBulk) SaveX

func (hfcb *HPFollowCreateBulk) SaveX(ctx context.Context) []*HPFollow

SaveX is like Save, but panics if an error occurs.

type HPFollowDelete

HPFollowDelete is the builder for deleting a HPFollow entity.

type HPFollowDelete struct {
    // contains filtered or unexported fields
}

func (*HPFollowDelete) Exec

func (hfd *HPFollowDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPFollowDelete) ExecX

func (hfd *HPFollowDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowDelete) Where

func (hfd *HPFollowDelete) Where(ps ...predicate.HPFollow) *HPFollowDelete

Where appends a list predicates to the HPFollowDelete builder.

type HPFollowDeleteOne

HPFollowDeleteOne is the builder for deleting a single HPFollow entity.

type HPFollowDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPFollowDeleteOne) Exec

func (hfdo *HPFollowDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPFollowDeleteOne) ExecX

func (hfdo *HPFollowDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowDeleteOne) Where

func (hfdo *HPFollowDeleteOne) Where(ps ...predicate.HPFollow) *HPFollowDeleteOne

Where appends a list predicates to the HPFollowDelete builder.

type HPFollowEdge

HPFollowEdge is the edge representation of HPFollow.

type HPFollowEdge struct {
    Node   *HPFollow `json:"node"`
    Cursor Cursor    `json:"cursor"`
}

type HPFollowEdges

HPFollowEdges holds the relations/edges for other nodes in the graph.

type HPFollowEdges struct {
    // User holds the value of the user edge.
    User *User `json:"user,omitempty"`
    // Member holds the value of the member edge.
    Member *HPMember `json:"member,omitempty"`
    // contains filtered or unexported fields
}

func (HPFollowEdges) MemberOrErr

func (e HPFollowEdges) MemberOrErr() (*HPMember, error)

MemberOrErr returns the Member value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPFollowEdges) UserOrErr

func (e HPFollowEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type HPFollowFilter

HPFollowFilter provides a generic filtering capability at runtime for HPFollowQuery.

type HPFollowFilter struct {
    // contains filtered or unexported fields
}

func (*HPFollowFilter) Where

func (f *HPFollowFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPFollowFilter) WhereCreatedAt

func (f *HPFollowFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPFollowFilter) WhereHasMember

func (f *HPFollowFilter) WhereHasMember()

WhereHasMember applies a predicate to check if query has an edge member.

func (*HPFollowFilter) WhereHasMemberWith

func (f *HPFollowFilter) WhereHasMemberWith(preds ...predicate.HPMember)

WhereHasMemberWith applies a predicate to check if query has an edge member with a given conditions (other predicates).

func (*HPFollowFilter) WhereHasUser

func (f *HPFollowFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*HPFollowFilter) WhereHasUserWith

func (f *HPFollowFilter) WhereHasUserWith(preds ...predicate.User)

WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates).

func (*HPFollowFilter) WhereID

func (f *HPFollowFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPFollowFilter) WhereType

func (f *HPFollowFilter) WhereType(p entql.StringP)

WhereType applies the entql string predicate on the type field.

func (*HPFollowFilter) WhereUpdatedAt

func (f *HPFollowFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPFollowGroupBy

HPFollowGroupBy is the group-by builder for HPFollow entities.

type HPFollowGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPFollowGroupBy) Aggregate

func (hfgb *HPFollowGroupBy) Aggregate(fns ...AggregateFunc) *HPFollowGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPFollowGroupBy) Bool

func (s *HPFollowGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) BoolX

func (s *HPFollowGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPFollowGroupBy) Bools

func (s *HPFollowGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) BoolsX

func (s *HPFollowGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPFollowGroupBy) Float64

func (s *HPFollowGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) Float64X

func (s *HPFollowGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPFollowGroupBy) Float64s

func (s *HPFollowGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) Float64sX

func (s *HPFollowGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPFollowGroupBy) Int

func (s *HPFollowGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) IntX

func (s *HPFollowGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPFollowGroupBy) Ints

func (s *HPFollowGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) IntsX

func (s *HPFollowGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPFollowGroupBy) Scan

func (hfgb *HPFollowGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPFollowGroupBy) ScanX

func (s *HPFollowGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPFollowGroupBy) String

func (s *HPFollowGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) StringX

func (s *HPFollowGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPFollowGroupBy) Strings

func (s *HPFollowGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPFollowGroupBy) StringsX

func (s *HPFollowGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPFollowMutation

HPFollowMutation represents an operation that mutates the HPFollow nodes in the graph.

type HPFollowMutation struct {
    // contains filtered or unexported fields
}

func (*HPFollowMutation) AddField

func (m *HPFollowMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPFollowMutation) AddedEdges

func (m *HPFollowMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPFollowMutation) AddedField

func (m *HPFollowMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPFollowMutation) AddedFields

func (m *HPFollowMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPFollowMutation) AddedIDs

func (m *HPFollowMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPFollowMutation) ClearCreatedAt

func (m *HPFollowMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPFollowMutation) ClearEdge

func (m *HPFollowMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPFollowMutation) ClearField

func (m *HPFollowMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPFollowMutation) ClearMember

func (m *HPFollowMutation) ClearMember()

ClearMember clears the "member" edge to the HPMember entity.

func (*HPFollowMutation) ClearUpdatedAt

func (m *HPFollowMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFollowMutation) ClearUser

func (m *HPFollowMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*HPFollowMutation) ClearedEdges

func (m *HPFollowMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPFollowMutation) ClearedFields

func (m *HPFollowMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPFollowMutation) Client

func (m HPFollowMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPFollowMutation) CreatedAt

func (m *HPFollowMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPFollowMutation) CreatedAtCleared

func (m *HPFollowMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPFollowMutation) EdgeCleared

func (m *HPFollowMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPFollowMutation) Field

func (m *HPFollowMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPFollowMutation) FieldCleared

func (m *HPFollowMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPFollowMutation) Fields

func (m *HPFollowMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPFollowMutation) Filter

func (m *HPFollowMutation) Filter() *HPFollowFilter

Filter returns an entql.Where implementation to apply filters on the HPFollowMutation builder.

func (*HPFollowMutation) GetType

func (m *HPFollowMutation) GetType() (r enums.HPFollowType, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*HPFollowMutation) ID

func (m *HPFollowMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPFollowMutation) IDs

func (m *HPFollowMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPFollowMutation) MemberCleared

func (m *HPFollowMutation) MemberCleared() bool

MemberCleared reports if the "member" edge to the HPMember entity was cleared.

func (*HPFollowMutation) MemberID

func (m *HPFollowMutation) MemberID() (id int, exists bool)

MemberID returns the "member" edge ID in the mutation.

func (*HPFollowMutation) MemberIDs

func (m *HPFollowMutation) MemberIDs() (ids []int)

MemberIDs returns the "member" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use MemberID instead. It exists only for internal usage by the builders.

func (*HPFollowMutation) OldCreatedAt

func (m *HPFollowMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPFollow entity. If the HPFollow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFollowMutation) OldField

func (m *HPFollowMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPFollowMutation) OldType

func (m *HPFollowMutation) OldType(ctx context.Context) (v enums.HPFollowType, err error)

OldType returns the old "type" field's value of the HPFollow entity. If the HPFollow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFollowMutation) OldUpdatedAt

func (m *HPFollowMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPFollow entity. If the HPFollow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPFollowMutation) Op

func (m *HPFollowMutation) Op() Op

Op returns the operation name.

func (*HPFollowMutation) RemovedEdges

func (m *HPFollowMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPFollowMutation) RemovedIDs

func (m *HPFollowMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPFollowMutation) ResetCreatedAt

func (m *HPFollowMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPFollowMutation) ResetEdge

func (m *HPFollowMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPFollowMutation) ResetField

func (m *HPFollowMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPFollowMutation) ResetMember

func (m *HPFollowMutation) ResetMember()

ResetMember resets all changes to the "member" edge.

func (*HPFollowMutation) ResetType

func (m *HPFollowMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*HPFollowMutation) ResetUpdatedAt

func (m *HPFollowMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPFollowMutation) ResetUser

func (m *HPFollowMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*HPFollowMutation) SetCreatedAt

func (m *HPFollowMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPFollowMutation) SetField

func (m *HPFollowMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPFollowMutation) SetMemberID

func (m *HPFollowMutation) SetMemberID(id int)

SetMemberID sets the "member" edge to the HPMember entity by id.

func (*HPFollowMutation) SetOp

func (m *HPFollowMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPFollowMutation) SetType

func (m *HPFollowMutation) SetType(eft enums.HPFollowType)

SetType sets the "type" field.

func (*HPFollowMutation) SetUpdatedAt

func (m *HPFollowMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPFollowMutation) SetUserID

func (m *HPFollowMutation) SetUserID(id int)

SetUserID sets the "user" edge to the User entity by id.

func (HPFollowMutation) Tx

func (m HPFollowMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPFollowMutation) Type

func (m *HPFollowMutation) Type() string

Type returns the node type of this mutation (HPFollow).

func (*HPFollowMutation) UpdatedAt

func (m *HPFollowMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPFollowMutation) UpdatedAtCleared

func (m *HPFollowMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPFollowMutation) UserCleared

func (m *HPFollowMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*HPFollowMutation) UserID

func (m *HPFollowMutation) UserID() (id int, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*HPFollowMutation) UserIDs

func (m *HPFollowMutation) UserIDs() (ids []int)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*HPFollowMutation) Where

func (m *HPFollowMutation) Where(ps ...predicate.HPFollow)

Where appends a list predicates to the HPFollowMutation builder.

func (*HPFollowMutation) WhereP

func (m *HPFollowMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPFollowMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPFollowOrder

HPFollowOrder defines the ordering of HPFollow.

type HPFollowOrder struct {
    Direction OrderDirection      `json:"direction"`
    Field     *HPFollowOrderField `json:"field"`
}

type HPFollowOrderField

HPFollowOrderField defines the ordering field of HPFollow.

type HPFollowOrderField struct {
    // contains filtered or unexported fields
}

type HPFollowPaginateOption

HPFollowPaginateOption enables pagination customization.

type HPFollowPaginateOption func(*hpfollowPager) error

func WithHPFollowFilter

func WithHPFollowFilter(filter func(*HPFollowQuery) (*HPFollowQuery, error)) HPFollowPaginateOption

WithHPFollowFilter configures pagination filter.

func WithHPFollowOrder

func WithHPFollowOrder(order *HPFollowOrder) HPFollowPaginateOption

WithHPFollowOrder configures pagination ordering.

type HPFollowQuery

HPFollowQuery is the builder for querying HPFollow entities.

type HPFollowQuery struct {
    // contains filtered or unexported fields
}

func (*HPFollowQuery) Aggregate

func (hfq *HPFollowQuery) Aggregate(fns ...AggregateFunc) *HPFollowSelect

Aggregate returns a HPFollowSelect configured with the given aggregations.

func (*HPFollowQuery) All

func (hfq *HPFollowQuery) All(ctx context.Context) ([]*HPFollow, error)

All executes the query and returns a list of HPFollows.

func (*HPFollowQuery) AllX

func (hfq *HPFollowQuery) AllX(ctx context.Context) []*HPFollow

AllX is like All, but panics if an error occurs.

func (*HPFollowQuery) Clone

func (hfq *HPFollowQuery) Clone() *HPFollowQuery

Clone returns a duplicate of the HPFollowQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPFollowQuery) CollectFields

func (hf *HPFollowQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPFollowQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPFollowQuery) Count

func (hfq *HPFollowQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPFollowQuery) CountX

func (hfq *HPFollowQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPFollowQuery) Exist

func (hfq *HPFollowQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPFollowQuery) ExistX

func (hfq *HPFollowQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPFollowQuery) Filter

func (hfq *HPFollowQuery) Filter() *HPFollowFilter

Filter returns a Filter implementation to apply filters on the HPFollowQuery builder.

func (*HPFollowQuery) First

func (hfq *HPFollowQuery) First(ctx context.Context) (*HPFollow, error)

First returns the first HPFollow entity from the query. Returns a *NotFoundError when no HPFollow was found.

func (*HPFollowQuery) FirstID

func (hfq *HPFollowQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPFollow ID from the query. Returns a *NotFoundError when no HPFollow ID was found.

func (*HPFollowQuery) FirstIDX

func (hfq *HPFollowQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPFollowQuery) FirstX

func (hfq *HPFollowQuery) FirstX(ctx context.Context) *HPFollow

FirstX is like First, but panics if an error occurs.

func (*HPFollowQuery) GroupBy

func (hfq *HPFollowQuery) GroupBy(field string, fields ...string) *HPFollowGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPFollow.Query().
	GroupBy(hpfollow.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPFollowQuery) IDs

func (hfq *HPFollowQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPFollow IDs.

func (*HPFollowQuery) IDsX

func (hfq *HPFollowQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPFollowQuery) Limit

func (hfq *HPFollowQuery) Limit(limit int) *HPFollowQuery

Limit the number of records to be returned by this query.

func (*HPFollowQuery) Offset

func (hfq *HPFollowQuery) Offset(offset int) *HPFollowQuery

Offset to start from.

func (*HPFollowQuery) Only

func (hfq *HPFollowQuery) Only(ctx context.Context) (*HPFollow, error)

Only returns a single HPFollow entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPFollow entity is found. Returns a *NotFoundError when no HPFollow entities are found.

func (*HPFollowQuery) OnlyID

func (hfq *HPFollowQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPFollow ID in the query. Returns a *NotSingularError when more than one HPFollow ID is found. Returns a *NotFoundError when no entities are found.

func (*HPFollowQuery) OnlyIDX

func (hfq *HPFollowQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPFollowQuery) OnlyX

func (hfq *HPFollowQuery) OnlyX(ctx context.Context) *HPFollow

OnlyX is like Only, but panics if an error occurs.

func (*HPFollowQuery) Order

func (hfq *HPFollowQuery) Order(o ...hpfollow.Order) *HPFollowQuery

Order specifies how the records should be ordered.

func (*HPFollowQuery) Paginate

func (hf *HPFollowQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPFollowPaginateOption,
) (*HPFollowConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPFollow.

func (*HPFollowQuery) QueryMember

func (hfq *HPFollowQuery) QueryMember() *HPMemberQuery

QueryMember chains the current query on the "member" edge.

func (*HPFollowQuery) QueryUser

func (hfq *HPFollowQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*HPFollowQuery) Select

func (hfq *HPFollowQuery) Select(fields ...string) *HPFollowSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.HPFollow.Query().
	Select(hpfollow.FieldCreatedAt).
	Scan(ctx, &v)

func (*HPFollowQuery) Unique

func (hfq *HPFollowQuery) Unique(unique bool) *HPFollowQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPFollowQuery) Where

func (hfq *HPFollowQuery) Where(ps ...predicate.HPFollow) *HPFollowQuery

Where adds a new predicate for the HPFollowQuery builder.

func (*HPFollowQuery) WithMember

func (hfq *HPFollowQuery) WithMember(opts ...func(*HPMemberQuery)) *HPFollowQuery

WithMember tells the query-builder to eager-load the nodes that are connected to the "member" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPFollowQuery) WithUser

func (hfq *HPFollowQuery) WithUser(opts ...func(*UserQuery)) *HPFollowQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type HPFollowSelect

HPFollowSelect is the builder for selecting fields of HPFollow entities.

type HPFollowSelect struct {
    *HPFollowQuery
    // contains filtered or unexported fields
}

func (*HPFollowSelect) Aggregate

func (hfs *HPFollowSelect) Aggregate(fns ...AggregateFunc) *HPFollowSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPFollowSelect) Bool

func (s *HPFollowSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) BoolX

func (s *HPFollowSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPFollowSelect) Bools

func (s *HPFollowSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) BoolsX

func (s *HPFollowSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPFollowSelect) Float64

func (s *HPFollowSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) Float64X

func (s *HPFollowSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPFollowSelect) Float64s

func (s *HPFollowSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) Float64sX

func (s *HPFollowSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPFollowSelect) Int

func (s *HPFollowSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) IntX

func (s *HPFollowSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPFollowSelect) Ints

func (s *HPFollowSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) IntsX

func (s *HPFollowSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPFollowSelect) Scan

func (hfs *HPFollowSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPFollowSelect) ScanX

func (s *HPFollowSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPFollowSelect) String

func (s *HPFollowSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) StringX

func (s *HPFollowSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPFollowSelect) Strings

func (s *HPFollowSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPFollowSelect) StringsX

func (s *HPFollowSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPFollowUpdate

HPFollowUpdate is the builder for updating HPFollow entities.

type HPFollowUpdate struct {
    // contains filtered or unexported fields
}

func (*HPFollowUpdate) ClearMember

func (hfu *HPFollowUpdate) ClearMember() *HPFollowUpdate

ClearMember clears the "member" edge to the HPMember entity.

func (*HPFollowUpdate) ClearUpdatedAt

func (hfu *HPFollowUpdate) ClearUpdatedAt() *HPFollowUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFollowUpdate) ClearUser

func (hfu *HPFollowUpdate) ClearUser() *HPFollowUpdate

ClearUser clears the "user" edge to the User entity.

func (*HPFollowUpdate) Exec

func (hfu *HPFollowUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFollowUpdate) ExecX

func (hfu *HPFollowUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowUpdate) Mutation

func (hfu *HPFollowUpdate) Mutation() *HPFollowMutation

Mutation returns the HPFollowMutation object of the builder.

func (*HPFollowUpdate) Save

func (hfu *HPFollowUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPFollowUpdate) SaveX

func (hfu *HPFollowUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPFollowUpdate) SetMember

func (hfu *HPFollowUpdate) SetMember(h *HPMember) *HPFollowUpdate

SetMember sets the "member" edge to the HPMember entity.

func (*HPFollowUpdate) SetMemberID

func (hfu *HPFollowUpdate) SetMemberID(id int) *HPFollowUpdate

SetMemberID sets the "member" edge to the HPMember entity by ID.

func (*HPFollowUpdate) SetNillableType

func (hfu *HPFollowUpdate) SetNillableType(eft *enums.HPFollowType) *HPFollowUpdate

SetNillableType sets the "type" field if the given value is not nil.

func (*HPFollowUpdate) SetNillableUpdatedAt

func (hfu *HPFollowUpdate) SetNillableUpdatedAt(t *time.Time) *HPFollowUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFollowUpdate) SetType

func (hfu *HPFollowUpdate) SetType(eft enums.HPFollowType) *HPFollowUpdate

SetType sets the "type" field.

func (*HPFollowUpdate) SetUpdatedAt

func (hfu *HPFollowUpdate) SetUpdatedAt(t time.Time) *HPFollowUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPFollowUpdate) SetUser

func (hfu *HPFollowUpdate) SetUser(u *User) *HPFollowUpdate

SetUser sets the "user" edge to the User entity.

func (*HPFollowUpdate) SetUserID

func (hfu *HPFollowUpdate) SetUserID(id int) *HPFollowUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*HPFollowUpdate) Where

func (hfu *HPFollowUpdate) Where(ps ...predicate.HPFollow) *HPFollowUpdate

Where appends a list predicates to the HPFollowUpdate builder.

type HPFollowUpdateOne

HPFollowUpdateOne is the builder for updating a single HPFollow entity.

type HPFollowUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPFollowUpdateOne) ClearMember

func (hfuo *HPFollowUpdateOne) ClearMember() *HPFollowUpdateOne

ClearMember clears the "member" edge to the HPMember entity.

func (*HPFollowUpdateOne) ClearUpdatedAt

func (hfuo *HPFollowUpdateOne) ClearUpdatedAt() *HPFollowUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFollowUpdateOne) ClearUser

func (hfuo *HPFollowUpdateOne) ClearUser() *HPFollowUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*HPFollowUpdateOne) Exec

func (hfuo *HPFollowUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPFollowUpdateOne) ExecX

func (hfuo *HPFollowUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowUpdateOne) Mutation

func (hfuo *HPFollowUpdateOne) Mutation() *HPFollowMutation

Mutation returns the HPFollowMutation object of the builder.

func (*HPFollowUpdateOne) Save

func (hfuo *HPFollowUpdateOne) Save(ctx context.Context) (*HPFollow, error)

Save executes the query and returns the updated HPFollow entity.

func (*HPFollowUpdateOne) SaveX

func (hfuo *HPFollowUpdateOne) SaveX(ctx context.Context) *HPFollow

SaveX is like Save, but panics if an error occurs.

func (*HPFollowUpdateOne) Select

func (hfuo *HPFollowUpdateOne) Select(field string, fields ...string) *HPFollowUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPFollowUpdateOne) SetMember

func (hfuo *HPFollowUpdateOne) SetMember(h *HPMember) *HPFollowUpdateOne

SetMember sets the "member" edge to the HPMember entity.

func (*HPFollowUpdateOne) SetMemberID

func (hfuo *HPFollowUpdateOne) SetMemberID(id int) *HPFollowUpdateOne

SetMemberID sets the "member" edge to the HPMember entity by ID.

func (*HPFollowUpdateOne) SetNillableType

func (hfuo *HPFollowUpdateOne) SetNillableType(eft *enums.HPFollowType) *HPFollowUpdateOne

SetNillableType sets the "type" field if the given value is not nil.

func (*HPFollowUpdateOne) SetNillableUpdatedAt

func (hfuo *HPFollowUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFollowUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPFollowUpdateOne) SetType

func (hfuo *HPFollowUpdateOne) SetType(eft enums.HPFollowType) *HPFollowUpdateOne

SetType sets the "type" field.

func (*HPFollowUpdateOne) SetUpdatedAt

func (hfuo *HPFollowUpdateOne) SetUpdatedAt(t time.Time) *HPFollowUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPFollowUpdateOne) SetUser

func (hfuo *HPFollowUpdateOne) SetUser(u *User) *HPFollowUpdateOne

SetUser sets the "user" edge to the User entity.

func (*HPFollowUpdateOne) SetUserID

func (hfuo *HPFollowUpdateOne) SetUserID(id int) *HPFollowUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*HPFollowUpdateOne) Where

func (hfuo *HPFollowUpdateOne) Where(ps ...predicate.HPFollow) *HPFollowUpdateOne

Where appends a list predicates to the HPFollowUpdate builder.

type HPFollowUpsert

HPFollowUpsert is the "OnConflict" setter.

type HPFollowUpsert struct {
    *sql.UpdateSet
}

func (*HPFollowUpsert) ClearUpdatedAt

func (u *HPFollowUpsert) ClearUpdatedAt() *HPFollowUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFollowUpsert) SetType

func (u *HPFollowUpsert) SetType(v enums.HPFollowType) *HPFollowUpsert

SetType sets the "type" field.

func (*HPFollowUpsert) SetUpdatedAt

func (u *HPFollowUpsert) SetUpdatedAt(v time.Time) *HPFollowUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPFollowUpsert) UpdateType

func (u *HPFollowUpsert) UpdateType() *HPFollowUpsert

UpdateType sets the "type" field to the value that was provided on create.

func (*HPFollowUpsert) UpdateUpdatedAt

func (u *HPFollowUpsert) UpdateUpdatedAt() *HPFollowUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFollowUpsertBulk

HPFollowUpsertBulk is the builder for "upsert"-ing a bulk of HPFollow nodes.

type HPFollowUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPFollowUpsertBulk) ClearUpdatedAt

func (u *HPFollowUpsertBulk) ClearUpdatedAt() *HPFollowUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFollowUpsertBulk) DoNothing

func (u *HPFollowUpsertBulk) DoNothing() *HPFollowUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPFollowUpsertBulk) Exec

func (u *HPFollowUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFollowUpsertBulk) ExecX

func (u *HPFollowUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowUpsertBulk) Ignore

func (u *HPFollowUpsertBulk) Ignore() *HPFollowUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPFollow.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPFollowUpsertBulk) SetType

func (u *HPFollowUpsertBulk) SetType(v enums.HPFollowType) *HPFollowUpsertBulk

SetType sets the "type" field.

func (*HPFollowUpsertBulk) SetUpdatedAt

func (u *HPFollowUpsertBulk) SetUpdatedAt(v time.Time) *HPFollowUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPFollowUpsertBulk) Update

func (u *HPFollowUpsertBulk) Update(set func(*HPFollowUpsert)) *HPFollowUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPFollowCreateBulk.OnConflict documentation for more info.

func (*HPFollowUpsertBulk) UpdateNewValues

func (u *HPFollowUpsertBulk) UpdateNewValues() *HPFollowUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPFollow.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPFollowUpsertBulk) UpdateType

func (u *HPFollowUpsertBulk) UpdateType() *HPFollowUpsertBulk

UpdateType sets the "type" field to the value that was provided on create.

func (*HPFollowUpsertBulk) UpdateUpdatedAt

func (u *HPFollowUpsertBulk) UpdateUpdatedAt() *HPFollowUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFollowUpsertOne

HPFollowUpsertOne is the builder for "upsert"-ing

one HPFollow node.
type HPFollowUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPFollowUpsertOne) ClearUpdatedAt

func (u *HPFollowUpsertOne) ClearUpdatedAt() *HPFollowUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPFollowUpsertOne) DoNothing

func (u *HPFollowUpsertOne) DoNothing() *HPFollowUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPFollowUpsertOne) Exec

func (u *HPFollowUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPFollowUpsertOne) ExecX

func (u *HPFollowUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPFollowUpsertOne) ID

func (u *HPFollowUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPFollowUpsertOne) IDX

func (u *HPFollowUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPFollowUpsertOne) Ignore

func (u *HPFollowUpsertOne) Ignore() *HPFollowUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPFollow.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPFollowUpsertOne) SetType

func (u *HPFollowUpsertOne) SetType(v enums.HPFollowType) *HPFollowUpsertOne

SetType sets the "type" field.

func (*HPFollowUpsertOne) SetUpdatedAt

func (u *HPFollowUpsertOne) SetUpdatedAt(v time.Time) *HPFollowUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPFollowUpsertOne) Update

func (u *HPFollowUpsertOne) Update(set func(*HPFollowUpsert)) *HPFollowUpsertOne

Update allows overriding fields `UPDATE` values. See the HPFollowCreate.OnConflict documentation for more info.

func (*HPFollowUpsertOne) UpdateNewValues

func (u *HPFollowUpsertOne) UpdateNewValues() *HPFollowUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPFollow.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPFollowUpsertOne) UpdateType

func (u *HPFollowUpsertOne) UpdateType() *HPFollowUpsertOne

UpdateType sets the "type" field to the value that was provided on create.

func (*HPFollowUpsertOne) UpdateUpdatedAt

func (u *HPFollowUpsertOne) UpdateUpdatedAt() *HPFollowUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPFollows

HPFollows is a parsable slice of HPFollow.

type HPFollows []*HPFollow

type HPIgPost

HPIgPost is the model entity for the HPIgPost schema.

type HPIgPost struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CrawledAt holds the value of the "crawled_at" field.
    CrawledAt *time.Time `json:"crawled_at,omitempty"`
    // ErrorCount holds the value of the "error_count" field.
    ErrorCount int `json:"error_count,omitempty"`
    // ManuallyModified holds the value of the "manually_modified" field.
    ManuallyModified *jsonfields.ManuallyModified `json:"manually_modified,omitempty"`
    // LastErrorMessage holds the value of the "last_error_message" field.
    LastErrorMessage *string `json:"last_error_message,omitempty"`
    // RecrawlRequired holds the value of the "recrawl_required" field.
    RecrawlRequired bool `json:"recrawl_required,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Shortcode holds the value of the "shortcode" field.
    Shortcode string `json:"shortcode,omitempty"`
    // Description holds the value of the "description" field.
    Description string `json:"description,omitempty"`
    // PostAt holds the value of the "post_at" field.
    PostAt time.Time `json:"post_at,omitempty"`
    // Media holds the value of the "media" field.
    Media []jsonfields.Media `json:"media,omitempty"`
    // Likes holds the value of the "likes" field.
    Likes int `json:"likes,omitempty"`
    // Comments holds the value of the "comments" field.
    Comments int `json:"comments,omitempty"`
    // RecrawlArgs holds the value of the "recrawl_args" field.
    RecrawlArgs *jsonfields.HPIgCrawlArgs `json:"recrawl_args,omitempty"`
    // OwnerArtistID holds the value of the "owner_artist_id" field.
    OwnerArtistID *int `json:"owner_artist_id,omitempty"`
    // OwnerMemberID holds the value of the "owner_member_id" field.
    OwnerMemberID *int `json:"owner_member_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPIgPostQuery when eager-loading is set.
    Edges HPIgPostEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPIgPost) Blobs

func (hip *HPIgPost) Blobs(ctx context.Context) (result []*HPBlob, err error)

func (*HPIgPost) IsNode

func (n *HPIgPost) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPIgPost) NamedBlobs

func (hip *HPIgPost) NamedBlobs(name string) ([]*HPBlob, error)

NamedBlobs returns the Blobs named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPIgPost) NamedTaggedArtists

func (hip *HPIgPost) NamedTaggedArtists(name string) ([]*HPArtist, error)

NamedTaggedArtists returns the TaggedArtists named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPIgPost) NamedTaggedMembers

func (hip *HPIgPost) NamedTaggedMembers(name string) ([]*HPMember, error)

NamedTaggedMembers returns the TaggedMembers named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPIgPost) OwnerArtist

func (hip *HPIgPost) OwnerArtist(ctx context.Context) (*HPArtist, error)

func (*HPIgPost) OwnerMember

func (hip *HPIgPost) OwnerMember(ctx context.Context) (*HPMember, error)

func (*HPIgPost) QueryAsset

func (hip *HPIgPost) QueryAsset() *HPAssetQuery

QueryAsset queries the "asset" edge of the HPIgPost entity.

func (*HPIgPost) QueryBlobs

func (hip *HPIgPost) QueryBlobs() *HPBlobQuery

QueryBlobs queries the "blobs" edge of the HPIgPost entity.

func (*HPIgPost) QueryOwnerArtist

func (hip *HPIgPost) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist queries the "owner_artist" edge of the HPIgPost entity.

func (*HPIgPost) QueryOwnerMember

func (hip *HPIgPost) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember queries the "owner_member" edge of the HPIgPost entity.

func (*HPIgPost) QueryTaggedArtists

func (hip *HPIgPost) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists queries the "tagged_artists" edge of the HPIgPost entity.

func (*HPIgPost) QueryTaggedMembers

func (hip *HPIgPost) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers queries the "tagged_members" edge of the HPIgPost entity.

func (*HPIgPost) String

func (hip *HPIgPost) String() string

String implements the fmt.Stringer.

func (*HPIgPost) TaggedArtists

func (hip *HPIgPost) TaggedArtists(ctx context.Context) (result []*HPArtist, err error)

func (*HPIgPost) TaggedMembers

func (hip *HPIgPost) TaggedMembers(ctx context.Context) (result []*HPMember, err error)

func (*HPIgPost) ToEdge

func (hip *HPIgPost) ToEdge(order *HPIgPostOrder) *HPIgPostEdge

ToEdge converts HPIgPost into HPIgPostEdge.

func (*HPIgPost) Unwrap

func (hip *HPIgPost) Unwrap() *HPIgPost

Unwrap unwraps the HPIgPost entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPIgPost) Update

func (hip *HPIgPost) Update() *HPIgPostUpdateOne

Update returns a builder for updating this HPIgPost. Note that you need to call HPIgPost.Unwrap() before calling this method if this HPIgPost was returned from a transaction, and the transaction was committed or rolled back.

func (*HPIgPost) Value

func (hip *HPIgPost) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPIgPost. This includes values selected through modifiers, order, etc.

type HPIgPostClient

HPIgPostClient is a client for the HPIgPost schema.

type HPIgPostClient struct {
    // contains filtered or unexported fields
}

func NewHPIgPostClient

func NewHPIgPostClient(c config) *HPIgPostClient

NewHPIgPostClient returns a client for the HPIgPost from the given config.

func (*HPIgPostClient) Create

func (c *HPIgPostClient) Create() *HPIgPostCreate

Create returns a builder for creating a HPIgPost entity.

func (*HPIgPostClient) CreateBulk

func (c *HPIgPostClient) CreateBulk(builders ...*HPIgPostCreate) *HPIgPostCreateBulk

CreateBulk returns a builder for creating a bulk of HPIgPost entities.

func (*HPIgPostClient) Delete

func (c *HPIgPostClient) Delete() *HPIgPostDelete

Delete returns a delete builder for HPIgPost.

func (*HPIgPostClient) DeleteOne

func (c *HPIgPostClient) DeleteOne(hip *HPIgPost) *HPIgPostDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPIgPostClient) DeleteOneID

func (c *HPIgPostClient) DeleteOneID(id int) *HPIgPostDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPIgPostClient) Get

func (c *HPIgPostClient) Get(ctx context.Context, id int) (*HPIgPost, error)

Get returns a HPIgPost entity by its id.

func (*HPIgPostClient) GetX

func (c *HPIgPostClient) GetX(ctx context.Context, id int) *HPIgPost

GetX is like Get, but panics if an error occurs.

func (*HPIgPostClient) Hooks

func (c *HPIgPostClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPIgPostClient) Intercept

func (c *HPIgPostClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpigpost.Intercept(f(g(h())))`.

func (*HPIgPostClient) Interceptors

func (c *HPIgPostClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPIgPostClient) Query

func (c *HPIgPostClient) Query() *HPIgPostQuery

Query returns a query builder for HPIgPost.

func (*HPIgPostClient) QueryAsset

func (c *HPIgPostClient) QueryAsset(hip *HPIgPost) *HPAssetQuery

QueryAsset queries the asset edge of a HPIgPost.

func (*HPIgPostClient) QueryBlobs

func (c *HPIgPostClient) QueryBlobs(hip *HPIgPost) *HPBlobQuery

QueryBlobs queries the blobs edge of a HPIgPost.

func (*HPIgPostClient) QueryOwnerArtist

func (c *HPIgPostClient) QueryOwnerArtist(hip *HPIgPost) *HPArtistQuery

QueryOwnerArtist queries the owner_artist edge of a HPIgPost.

func (*HPIgPostClient) QueryOwnerMember

func (c *HPIgPostClient) QueryOwnerMember(hip *HPIgPost) *HPMemberQuery

QueryOwnerMember queries the owner_member edge of a HPIgPost.

func (*HPIgPostClient) QueryTaggedArtists

func (c *HPIgPostClient) QueryTaggedArtists(hip *HPIgPost) *HPArtistQuery

QueryTaggedArtists queries the tagged_artists edge of a HPIgPost.

func (*HPIgPostClient) QueryTaggedMembers

func (c *HPIgPostClient) QueryTaggedMembers(hip *HPIgPost) *HPMemberQuery

QueryTaggedMembers queries the tagged_members edge of a HPIgPost.

func (*HPIgPostClient) Update

func (c *HPIgPostClient) Update() *HPIgPostUpdate

Update returns an update builder for HPIgPost.

func (*HPIgPostClient) UpdateOne

func (c *HPIgPostClient) UpdateOne(hip *HPIgPost) *HPIgPostUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPIgPostClient) UpdateOneID

func (c *HPIgPostClient) UpdateOneID(id int) *HPIgPostUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPIgPostClient) Use

func (c *HPIgPostClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpigpost.Hooks(f(g(h())))`.

type HPIgPostConnection

HPIgPostConnection is the connection containing edges to HPIgPost.

type HPIgPostConnection struct {
    Edges      []*HPIgPostEdge `json:"edges"`
    PageInfo   PageInfo        `json:"pageInfo"`
    TotalCount int             `json:"totalCount"`
}

type HPIgPostCreate

HPIgPostCreate is the builder for creating a HPIgPost entity.

type HPIgPostCreate struct {
    // contains filtered or unexported fields
}

func (*HPIgPostCreate) AddBlobIDs

func (hipc *HPIgPostCreate) AddBlobIDs(ids ...int) *HPIgPostCreate

AddBlobIDs adds the "blobs" edge to the HPBlob entity by IDs.

func (*HPIgPostCreate) AddBlobs

func (hipc *HPIgPostCreate) AddBlobs(h ...*HPBlob) *HPIgPostCreate

AddBlobs adds the "blobs" edges to the HPBlob entity.

func (*HPIgPostCreate) AddTaggedArtistIDs

func (hipc *HPIgPostCreate) AddTaggedArtistIDs(ids ...int) *HPIgPostCreate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPIgPostCreate) AddTaggedArtists

func (hipc *HPIgPostCreate) AddTaggedArtists(h ...*HPArtist) *HPIgPostCreate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPIgPostCreate) AddTaggedMemberIDs

func (hipc *HPIgPostCreate) AddTaggedMemberIDs(ids ...int) *HPIgPostCreate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPIgPostCreate) AddTaggedMembers

func (hipc *HPIgPostCreate) AddTaggedMembers(h ...*HPMember) *HPIgPostCreate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPIgPostCreate) Exec

func (hipc *HPIgPostCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPIgPostCreate) ExecX

func (hipc *HPIgPostCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostCreate) Mutation

func (hipc *HPIgPostCreate) Mutation() *HPIgPostMutation

Mutation returns the HPIgPostMutation object of the builder.

func (*HPIgPostCreate) OnConflict

func (hipc *HPIgPostCreate) OnConflict(opts ...sql.ConflictOption) *HPIgPostUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPIgPost.Create().
	SetCrawledAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPIgPostUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPIgPostCreate) OnConflictColumns

func (hipc *HPIgPostCreate) OnConflictColumns(columns ...string) *HPIgPostUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPIgPost.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPIgPostCreate) Save

func (hipc *HPIgPostCreate) Save(ctx context.Context) (*HPIgPost, error)

Save creates the HPIgPost in the database.

func (*HPIgPostCreate) SaveX

func (hipc *HPIgPostCreate) SaveX(ctx context.Context) *HPIgPost

SaveX calls Save and panics if Save returns an error.

func (*HPIgPostCreate) SetAsset

func (hipc *HPIgPostCreate) SetAsset(h *HPAsset) *HPIgPostCreate

SetAsset sets the "asset" edge to the HPAsset entity.

func (*HPIgPostCreate) SetAssetID

func (hipc *HPIgPostCreate) SetAssetID(id int) *HPIgPostCreate

SetAssetID sets the "asset" edge to the HPAsset entity by ID.

func (*HPIgPostCreate) SetComments

func (hipc *HPIgPostCreate) SetComments(i int) *HPIgPostCreate

SetComments sets the "comments" field.

func (*HPIgPostCreate) SetCrawledAt

func (hipc *HPIgPostCreate) SetCrawledAt(t time.Time) *HPIgPostCreate

SetCrawledAt sets the "crawled_at" field.

func (*HPIgPostCreate) SetCreatedAt

func (hipc *HPIgPostCreate) SetCreatedAt(t time.Time) *HPIgPostCreate

SetCreatedAt sets the "created_at" field.

func (*HPIgPostCreate) SetDescription

func (hipc *HPIgPostCreate) SetDescription(s string) *HPIgPostCreate

SetDescription sets the "description" field.

func (*HPIgPostCreate) SetErrorCount

func (hipc *HPIgPostCreate) SetErrorCount(i int) *HPIgPostCreate

SetErrorCount sets the "error_count" field.

func (*HPIgPostCreate) SetLastErrorMessage

func (hipc *HPIgPostCreate) SetLastErrorMessage(s string) *HPIgPostCreate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPIgPostCreate) SetLikes

func (hipc *HPIgPostCreate) SetLikes(i int) *HPIgPostCreate

SetLikes sets the "likes" field.

func (*HPIgPostCreate) SetManuallyModified

func (hipc *HPIgPostCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPIgPostCreate

SetManuallyModified sets the "manually_modified" field.

func (*HPIgPostCreate) SetMedia

func (hipc *HPIgPostCreate) SetMedia(j []jsonfields.Media) *HPIgPostCreate

SetMedia sets the "media" field.

func (*HPIgPostCreate) SetNillableAssetID

func (hipc *HPIgPostCreate) SetNillableAssetID(id *int) *HPIgPostCreate

SetNillableAssetID sets the "asset" edge to the HPAsset entity by ID if the given value is not nil.

func (*HPIgPostCreate) SetNillableCrawledAt

func (hipc *HPIgPostCreate) SetNillableCrawledAt(t *time.Time) *HPIgPostCreate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPIgPostCreate) SetNillableCreatedAt

func (hipc *HPIgPostCreate) SetNillableCreatedAt(t *time.Time) *HPIgPostCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPIgPostCreate) SetNillableErrorCount

func (hipc *HPIgPostCreate) SetNillableErrorCount(i *int) *HPIgPostCreate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPIgPostCreate) SetNillableLastErrorMessage

func (hipc *HPIgPostCreate) SetNillableLastErrorMessage(s *string) *HPIgPostCreate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPIgPostCreate) SetNillableOwnerArtistID

func (hipc *HPIgPostCreate) SetNillableOwnerArtistID(i *int) *HPIgPostCreate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPIgPostCreate) SetNillableOwnerMemberID

func (hipc *HPIgPostCreate) SetNillableOwnerMemberID(i *int) *HPIgPostCreate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPIgPostCreate) SetNillableRecrawlRequired

func (hipc *HPIgPostCreate) SetNillableRecrawlRequired(b *bool) *HPIgPostCreate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPIgPostCreate) SetNillableUpdatedAt

func (hipc *HPIgPostCreate) SetNillableUpdatedAt(t *time.Time) *HPIgPostCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPIgPostCreate) SetOwnerArtist

func (hipc *HPIgPostCreate) SetOwnerArtist(h *HPArtist) *HPIgPostCreate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPIgPostCreate) SetOwnerArtistID

func (hipc *HPIgPostCreate) SetOwnerArtistID(i int) *HPIgPostCreate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPIgPostCreate) SetOwnerMember

func (hipc *HPIgPostCreate) SetOwnerMember(h *HPMember) *HPIgPostCreate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPIgPostCreate) SetOwnerMemberID

func (hipc *HPIgPostCreate) SetOwnerMemberID(i int) *HPIgPostCreate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPIgPostCreate) SetPostAt

func (hipc *HPIgPostCreate) SetPostAt(t time.Time) *HPIgPostCreate

SetPostAt sets the "post_at" field.

func (*HPIgPostCreate) SetRecrawlArgs

func (hipc *HPIgPostCreate) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs) *HPIgPostCreate

SetRecrawlArgs sets the "recrawl_args" field.

func (*HPIgPostCreate) SetRecrawlRequired

func (hipc *HPIgPostCreate) SetRecrawlRequired(b bool) *HPIgPostCreate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPIgPostCreate) SetShortcode

func (hipc *HPIgPostCreate) SetShortcode(s string) *HPIgPostCreate

SetShortcode sets the "shortcode" field.

func (*HPIgPostCreate) SetUpdatedAt

func (hipc *HPIgPostCreate) SetUpdatedAt(t time.Time) *HPIgPostCreate

SetUpdatedAt sets the "updated_at" field.

type HPIgPostCreateBulk

HPIgPostCreateBulk is the builder for creating many HPIgPost entities in bulk.

type HPIgPostCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPIgPostCreateBulk) Exec

func (hipcb *HPIgPostCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPIgPostCreateBulk) ExecX

func (hipcb *HPIgPostCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostCreateBulk) OnConflict

func (hipcb *HPIgPostCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPIgPostUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPIgPost.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPIgPostUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPIgPostCreateBulk) OnConflictColumns

func (hipcb *HPIgPostCreateBulk) OnConflictColumns(columns ...string) *HPIgPostUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPIgPost.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPIgPostCreateBulk) Save

func (hipcb *HPIgPostCreateBulk) Save(ctx context.Context) ([]*HPIgPost, error)

Save creates the HPIgPost entities in the database.

func (*HPIgPostCreateBulk) SaveX

func (hipcb *HPIgPostCreateBulk) SaveX(ctx context.Context) []*HPIgPost

SaveX is like Save, but panics if an error occurs.

type HPIgPostDelete

HPIgPostDelete is the builder for deleting a HPIgPost entity.

type HPIgPostDelete struct {
    // contains filtered or unexported fields
}

func (*HPIgPostDelete) Exec

func (hipd *HPIgPostDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPIgPostDelete) ExecX

func (hipd *HPIgPostDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostDelete) Where

func (hipd *HPIgPostDelete) Where(ps ...predicate.HPIgPost) *HPIgPostDelete

Where appends a list predicates to the HPIgPostDelete builder.

type HPIgPostDeleteOne

HPIgPostDeleteOne is the builder for deleting a single HPIgPost entity.

type HPIgPostDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPIgPostDeleteOne) Exec

func (hipdo *HPIgPostDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPIgPostDeleteOne) ExecX

func (hipdo *HPIgPostDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostDeleteOne) Where

func (hipdo *HPIgPostDeleteOne) Where(ps ...predicate.HPIgPost) *HPIgPostDeleteOne

Where appends a list predicates to the HPIgPostDelete builder.

type HPIgPostEdge

HPIgPostEdge is the edge representation of HPIgPost.

type HPIgPostEdge struct {
    Node   *HPIgPost `json:"node"`
    Cursor Cursor    `json:"cursor"`
}

type HPIgPostEdges

HPIgPostEdges holds the relations/edges for other nodes in the graph.

type HPIgPostEdges struct {
    // OwnerArtist holds the value of the owner_artist edge.
    OwnerArtist *HPArtist `json:"owner_artist,omitempty"`
    // OwnerMember holds the value of the owner_member edge.
    OwnerMember *HPMember `json:"owner_member,omitempty"`
    // Asset holds the value of the asset edge.
    Asset *HPAsset `json:"asset,omitempty"`
    // TaggedArtists holds the value of the tagged_artists edge.
    TaggedArtists []*HPArtist `json:"tagged_artists,omitempty"`
    // TaggedMembers holds the value of the tagged_members edge.
    TaggedMembers []*HPMember `json:"tagged_members,omitempty"`
    // Blobs holds the value of the blobs edge.
    Blobs []*HPBlob `json:"blobs,omitempty"`
    // contains filtered or unexported fields
}

func (HPIgPostEdges) AssetOrErr

func (e HPIgPostEdges) AssetOrErr() (*HPAsset, error)

AssetOrErr returns the Asset value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPIgPostEdges) BlobsOrErr

func (e HPIgPostEdges) BlobsOrErr() ([]*HPBlob, error)

BlobsOrErr returns the Blobs value or an error if the edge was not loaded in eager-loading.

func (HPIgPostEdges) OwnerArtistOrErr

func (e HPIgPostEdges) OwnerArtistOrErr() (*HPArtist, error)

OwnerArtistOrErr returns the OwnerArtist value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPIgPostEdges) OwnerMemberOrErr

func (e HPIgPostEdges) OwnerMemberOrErr() (*HPMember, error)

OwnerMemberOrErr returns the OwnerMember value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPIgPostEdges) TaggedArtistsOrErr

func (e HPIgPostEdges) TaggedArtistsOrErr() ([]*HPArtist, error)

TaggedArtistsOrErr returns the TaggedArtists value or an error if the edge was not loaded in eager-loading.

func (HPIgPostEdges) TaggedMembersOrErr

func (e HPIgPostEdges) TaggedMembersOrErr() ([]*HPMember, error)

TaggedMembersOrErr returns the TaggedMembers value or an error if the edge was not loaded in eager-loading.

type HPIgPostFilter

HPIgPostFilter provides a generic filtering capability at runtime for HPIgPostQuery.

type HPIgPostFilter struct {
    // contains filtered or unexported fields
}

func (*HPIgPostFilter) Where

func (f *HPIgPostFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPIgPostFilter) WhereComments

func (f *HPIgPostFilter) WhereComments(p entql.IntP)

WhereComments applies the entql int predicate on the comments field.

func (*HPIgPostFilter) WhereCrawledAt

func (f *HPIgPostFilter) WhereCrawledAt(p entql.TimeP)

WhereCrawledAt applies the entql time.Time predicate on the crawled_at field.

func (*HPIgPostFilter) WhereCreatedAt

func (f *HPIgPostFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPIgPostFilter) WhereDescription

func (f *HPIgPostFilter) WhereDescription(p entql.StringP)

WhereDescription applies the entql string predicate on the description field.

func (*HPIgPostFilter) WhereErrorCount

func (f *HPIgPostFilter) WhereErrorCount(p entql.IntP)

WhereErrorCount applies the entql int predicate on the error_count field.

func (*HPIgPostFilter) WhereHasAsset

func (f *HPIgPostFilter) WhereHasAsset()

WhereHasAsset applies a predicate to check if query has an edge asset.

func (*HPIgPostFilter) WhereHasAssetWith

func (f *HPIgPostFilter) WhereHasAssetWith(preds ...predicate.HPAsset)

WhereHasAssetWith applies a predicate to check if query has an edge asset with a given conditions (other predicates).

func (*HPIgPostFilter) WhereHasBlobs

func (f *HPIgPostFilter) WhereHasBlobs()

WhereHasBlobs applies a predicate to check if query has an edge blobs.

func (*HPIgPostFilter) WhereHasBlobsWith

func (f *HPIgPostFilter) WhereHasBlobsWith(preds ...predicate.HPBlob)

WhereHasBlobsWith applies a predicate to check if query has an edge blobs with a given conditions (other predicates).

func (*HPIgPostFilter) WhereHasOwnerArtist

func (f *HPIgPostFilter) WhereHasOwnerArtist()

WhereHasOwnerArtist applies a predicate to check if query has an edge owner_artist.

func (*HPIgPostFilter) WhereHasOwnerArtistWith

func (f *HPIgPostFilter) WhereHasOwnerArtistWith(preds ...predicate.HPArtist)

WhereHasOwnerArtistWith applies a predicate to check if query has an edge owner_artist with a given conditions (other predicates).

func (*HPIgPostFilter) WhereHasOwnerMember

func (f *HPIgPostFilter) WhereHasOwnerMember()

WhereHasOwnerMember applies a predicate to check if query has an edge owner_member.

func (*HPIgPostFilter) WhereHasOwnerMemberWith

func (f *HPIgPostFilter) WhereHasOwnerMemberWith(preds ...predicate.HPMember)

WhereHasOwnerMemberWith applies a predicate to check if query has an edge owner_member with a given conditions (other predicates).

func (*HPIgPostFilter) WhereHasTaggedArtists

func (f *HPIgPostFilter) WhereHasTaggedArtists()

WhereHasTaggedArtists applies a predicate to check if query has an edge tagged_artists.

func (*HPIgPostFilter) WhereHasTaggedArtistsWith

func (f *HPIgPostFilter) WhereHasTaggedArtistsWith(preds ...predicate.HPArtist)

WhereHasTaggedArtistsWith applies a predicate to check if query has an edge tagged_artists with a given conditions (other predicates).

func (*HPIgPostFilter) WhereHasTaggedMembers

func (f *HPIgPostFilter) WhereHasTaggedMembers()

WhereHasTaggedMembers applies a predicate to check if query has an edge tagged_members.

func (*HPIgPostFilter) WhereHasTaggedMembersWith

func (f *HPIgPostFilter) WhereHasTaggedMembersWith(preds ...predicate.HPMember)

WhereHasTaggedMembersWith applies a predicate to check if query has an edge tagged_members with a given conditions (other predicates).

func (*HPIgPostFilter) WhereID

func (f *HPIgPostFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPIgPostFilter) WhereLastErrorMessage

func (f *HPIgPostFilter) WhereLastErrorMessage(p entql.StringP)

WhereLastErrorMessage applies the entql string predicate on the last_error_message field.

func (*HPIgPostFilter) WhereLikes

func (f *HPIgPostFilter) WhereLikes(p entql.IntP)

WhereLikes applies the entql int predicate on the likes field.

func (*HPIgPostFilter) WhereManuallyModified

func (f *HPIgPostFilter) WhereManuallyModified(p entql.BytesP)

WhereManuallyModified applies the entql json.RawMessage predicate on the manually_modified field.

func (*HPIgPostFilter) WhereMedia

func (f *HPIgPostFilter) WhereMedia(p entql.BytesP)

WhereMedia applies the entql json.RawMessage predicate on the media field.

func (*HPIgPostFilter) WhereOwnerArtistID

func (f *HPIgPostFilter) WhereOwnerArtistID(p entql.IntP)

WhereOwnerArtistID applies the entql int predicate on the owner_artist_id field.

func (*HPIgPostFilter) WhereOwnerMemberID

func (f *HPIgPostFilter) WhereOwnerMemberID(p entql.IntP)

WhereOwnerMemberID applies the entql int predicate on the owner_member_id field.

func (*HPIgPostFilter) WherePostAt

func (f *HPIgPostFilter) WherePostAt(p entql.TimeP)

WherePostAt applies the entql time.Time predicate on the post_at field.

func (*HPIgPostFilter) WhereRecrawlArgs

func (f *HPIgPostFilter) WhereRecrawlArgs(p entql.BytesP)

WhereRecrawlArgs applies the entql json.RawMessage predicate on the recrawl_args field.

func (*HPIgPostFilter) WhereRecrawlRequired

func (f *HPIgPostFilter) WhereRecrawlRequired(p entql.BoolP)

WhereRecrawlRequired applies the entql bool predicate on the recrawl_required field.

func (*HPIgPostFilter) WhereShortcode

func (f *HPIgPostFilter) WhereShortcode(p entql.StringP)

WhereShortcode applies the entql string predicate on the shortcode field.

func (*HPIgPostFilter) WhereUpdatedAt

func (f *HPIgPostFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPIgPostGroupBy

HPIgPostGroupBy is the group-by builder for HPIgPost entities.

type HPIgPostGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPIgPostGroupBy) Aggregate

func (hipgb *HPIgPostGroupBy) Aggregate(fns ...AggregateFunc) *HPIgPostGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPIgPostGroupBy) Bool

func (s *HPIgPostGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) BoolX

func (s *HPIgPostGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPIgPostGroupBy) Bools

func (s *HPIgPostGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) BoolsX

func (s *HPIgPostGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPIgPostGroupBy) Float64

func (s *HPIgPostGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) Float64X

func (s *HPIgPostGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPIgPostGroupBy) Float64s

func (s *HPIgPostGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) Float64sX

func (s *HPIgPostGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPIgPostGroupBy) Int

func (s *HPIgPostGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) IntX

func (s *HPIgPostGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPIgPostGroupBy) Ints

func (s *HPIgPostGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) IntsX

func (s *HPIgPostGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPIgPostGroupBy) Scan

func (hipgb *HPIgPostGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPIgPostGroupBy) ScanX

func (s *HPIgPostGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPIgPostGroupBy) String

func (s *HPIgPostGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) StringX

func (s *HPIgPostGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPIgPostGroupBy) Strings

func (s *HPIgPostGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPIgPostGroupBy) StringsX

func (s *HPIgPostGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPIgPostMutation

HPIgPostMutation represents an operation that mutates the HPIgPost nodes in the graph.

type HPIgPostMutation struct {
    // contains filtered or unexported fields
}

func (*HPIgPostMutation) AddBlobIDs

func (m *HPIgPostMutation) AddBlobIDs(ids ...int)

AddBlobIDs adds the "blobs" edge to the HPBlob entity by ids.

func (*HPIgPostMutation) AddComments

func (m *HPIgPostMutation) AddComments(i int)

AddComments adds i to the "comments" field.

func (*HPIgPostMutation) AddErrorCount

func (m *HPIgPostMutation) AddErrorCount(i int)

AddErrorCount adds i to the "error_count" field.

func (*HPIgPostMutation) AddField

func (m *HPIgPostMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPIgPostMutation) AddLikes

func (m *HPIgPostMutation) AddLikes(i int)

AddLikes adds i to the "likes" field.

func (*HPIgPostMutation) AddTaggedArtistIDs

func (m *HPIgPostMutation) AddTaggedArtistIDs(ids ...int)

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by ids.

func (*HPIgPostMutation) AddTaggedMemberIDs

func (m *HPIgPostMutation) AddTaggedMemberIDs(ids ...int)

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by ids.

func (*HPIgPostMutation) AddedComments

func (m *HPIgPostMutation) AddedComments() (r int, exists bool)

AddedComments returns the value that was added to the "comments" field in this mutation.

func (*HPIgPostMutation) AddedEdges

func (m *HPIgPostMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPIgPostMutation) AddedErrorCount

func (m *HPIgPostMutation) AddedErrorCount() (r int, exists bool)

AddedErrorCount returns the value that was added to the "error_count" field in this mutation.

func (*HPIgPostMutation) AddedField

func (m *HPIgPostMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPIgPostMutation) AddedFields

func (m *HPIgPostMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPIgPostMutation) AddedIDs

func (m *HPIgPostMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPIgPostMutation) AddedLikes

func (m *HPIgPostMutation) AddedLikes() (r int, exists bool)

AddedLikes returns the value that was added to the "likes" field in this mutation.

func (*HPIgPostMutation) AppendMedia

func (m *HPIgPostMutation) AppendMedia(j []jsonfields.Media)

AppendMedia adds j to the "media" field.

func (*HPIgPostMutation) AppendedMedia

func (m *HPIgPostMutation) AppendedMedia() ([]jsonfields.Media, bool)

AppendedMedia returns the list of values that were appended to the "media" field in this mutation.

func (*HPIgPostMutation) AssetCleared

func (m *HPIgPostMutation) AssetCleared() bool

AssetCleared reports if the "asset" edge to the HPAsset entity was cleared.

func (*HPIgPostMutation) AssetID

func (m *HPIgPostMutation) AssetID() (id int, exists bool)

AssetID returns the "asset" edge ID in the mutation.

func (*HPIgPostMutation) AssetIDs

func (m *HPIgPostMutation) AssetIDs() (ids []int)

AssetIDs returns the "asset" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use AssetID instead. It exists only for internal usage by the builders.

func (*HPIgPostMutation) BlobsCleared

func (m *HPIgPostMutation) BlobsCleared() bool

BlobsCleared reports if the "blobs" edge to the HPBlob entity was cleared.

func (*HPIgPostMutation) BlobsIDs

func (m *HPIgPostMutation) BlobsIDs() (ids []int)

BlobsIDs returns the "blobs" edge IDs in the mutation.

func (*HPIgPostMutation) ClearAsset

func (m *HPIgPostMutation) ClearAsset()

ClearAsset clears the "asset" edge to the HPAsset entity.

func (*HPIgPostMutation) ClearBlobs

func (m *HPIgPostMutation) ClearBlobs()

ClearBlobs clears the "blobs" edge to the HPBlob entity.

func (*HPIgPostMutation) ClearCrawledAt

func (m *HPIgPostMutation) ClearCrawledAt()

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPIgPostMutation) ClearCreatedAt

func (m *HPIgPostMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPIgPostMutation) ClearEdge

func (m *HPIgPostMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPIgPostMutation) ClearField

func (m *HPIgPostMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPIgPostMutation) ClearLastErrorMessage

func (m *HPIgPostMutation) ClearLastErrorMessage()

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPIgPostMutation) ClearManuallyModified

func (m *HPIgPostMutation) ClearManuallyModified()

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPIgPostMutation) ClearOwnerArtist

func (m *HPIgPostMutation) ClearOwnerArtist()

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPIgPostMutation) ClearOwnerArtistID

func (m *HPIgPostMutation) ClearOwnerArtistID()

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPIgPostMutation) ClearOwnerMember

func (m *HPIgPostMutation) ClearOwnerMember()

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPIgPostMutation) ClearOwnerMemberID

func (m *HPIgPostMutation) ClearOwnerMemberID()

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPIgPostMutation) ClearRecrawlArgs

func (m *HPIgPostMutation) ClearRecrawlArgs()

ClearRecrawlArgs clears the value of the "recrawl_args" field.

func (*HPIgPostMutation) ClearRecrawlRequired

func (m *HPIgPostMutation) ClearRecrawlRequired()

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPIgPostMutation) ClearTaggedArtists

func (m *HPIgPostMutation) ClearTaggedArtists()

ClearTaggedArtists clears the "tagged_artists" edge to the HPArtist entity.

func (*HPIgPostMutation) ClearTaggedMembers

func (m *HPIgPostMutation) ClearTaggedMembers()

ClearTaggedMembers clears the "tagged_members" edge to the HPMember entity.

func (*HPIgPostMutation) ClearUpdatedAt

func (m *HPIgPostMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPIgPostMutation) ClearedEdges

func (m *HPIgPostMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPIgPostMutation) ClearedFields

func (m *HPIgPostMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPIgPostMutation) Client

func (m HPIgPostMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPIgPostMutation) Comments

func (m *HPIgPostMutation) Comments() (r int, exists bool)

Comments returns the value of the "comments" field in the mutation.

func (*HPIgPostMutation) CrawledAt

func (m *HPIgPostMutation) CrawledAt() (r time.Time, exists bool)

CrawledAt returns the value of the "crawled_at" field in the mutation.

func (*HPIgPostMutation) CrawledAtCleared

func (m *HPIgPostMutation) CrawledAtCleared() bool

CrawledAtCleared returns if the "crawled_at" field was cleared in this mutation.

func (*HPIgPostMutation) CreatedAt

func (m *HPIgPostMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPIgPostMutation) CreatedAtCleared

func (m *HPIgPostMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPIgPostMutation) Description

func (m *HPIgPostMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*HPIgPostMutation) EdgeCleared

func (m *HPIgPostMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPIgPostMutation) ErrorCount

func (m *HPIgPostMutation) ErrorCount() (r int, exists bool)

ErrorCount returns the value of the "error_count" field in the mutation.

func (*HPIgPostMutation) Field

func (m *HPIgPostMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPIgPostMutation) FieldCleared

func (m *HPIgPostMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPIgPostMutation) Fields

func (m *HPIgPostMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPIgPostMutation) Filter

func (m *HPIgPostMutation) Filter() *HPIgPostFilter

Filter returns an entql.Where implementation to apply filters on the HPIgPostMutation builder.

func (*HPIgPostMutation) ID

func (m *HPIgPostMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPIgPostMutation) IDs

func (m *HPIgPostMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPIgPostMutation) LastErrorMessage

func (m *HPIgPostMutation) LastErrorMessage() (r string, exists bool)

LastErrorMessage returns the value of the "last_error_message" field in the mutation.

func (*HPIgPostMutation) LastErrorMessageCleared

func (m *HPIgPostMutation) LastErrorMessageCleared() bool

LastErrorMessageCleared returns if the "last_error_message" field was cleared in this mutation.

func (*HPIgPostMutation) Likes

func (m *HPIgPostMutation) Likes() (r int, exists bool)

Likes returns the value of the "likes" field in the mutation.

func (*HPIgPostMutation) ManuallyModified

func (m *HPIgPostMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)

ManuallyModified returns the value of the "manually_modified" field in the mutation.

func (*HPIgPostMutation) ManuallyModifiedCleared

func (m *HPIgPostMutation) ManuallyModifiedCleared() bool

ManuallyModifiedCleared returns if the "manually_modified" field was cleared in this mutation.

func (*HPIgPostMutation) Media

func (m *HPIgPostMutation) Media() (r []jsonfields.Media, exists bool)

Media returns the value of the "media" field in the mutation.

func (*HPIgPostMutation) OldComments

func (m *HPIgPostMutation) OldComments(ctx context.Context) (v int, err error)

OldComments returns the old "comments" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldCrawledAt

func (m *HPIgPostMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)

OldCrawledAt returns the old "crawled_at" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldCreatedAt

func (m *HPIgPostMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldDescription

func (m *HPIgPostMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldErrorCount

func (m *HPIgPostMutation) OldErrorCount(ctx context.Context) (v int, err error)

OldErrorCount returns the old "error_count" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldField

func (m *HPIgPostMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPIgPostMutation) OldLastErrorMessage

func (m *HPIgPostMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)

OldLastErrorMessage returns the old "last_error_message" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldLikes

func (m *HPIgPostMutation) OldLikes(ctx context.Context) (v int, err error)

OldLikes returns the old "likes" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldManuallyModified

func (m *HPIgPostMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)

OldManuallyModified returns the old "manually_modified" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldMedia

func (m *HPIgPostMutation) OldMedia(ctx context.Context) (v []jsonfields.Media, err error)

OldMedia returns the old "media" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldOwnerArtistID

func (m *HPIgPostMutation) OldOwnerArtistID(ctx context.Context) (v *int, err error)

OldOwnerArtistID returns the old "owner_artist_id" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldOwnerMemberID

func (m *HPIgPostMutation) OldOwnerMemberID(ctx context.Context) (v *int, err error)

OldOwnerMemberID returns the old "owner_member_id" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldPostAt

func (m *HPIgPostMutation) OldPostAt(ctx context.Context) (v time.Time, err error)

OldPostAt returns the old "post_at" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldRecrawlArgs

func (m *HPIgPostMutation) OldRecrawlArgs(ctx context.Context) (v *jsonfields.HPIgCrawlArgs, err error)

OldRecrawlArgs returns the old "recrawl_args" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldRecrawlRequired

func (m *HPIgPostMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)

OldRecrawlRequired returns the old "recrawl_required" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldShortcode

func (m *HPIgPostMutation) OldShortcode(ctx context.Context) (v string, err error)

OldShortcode returns the old "shortcode" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) OldUpdatedAt

func (m *HPIgPostMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPIgPost entity. If the HPIgPost object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPIgPostMutation) Op

func (m *HPIgPostMutation) Op() Op

Op returns the operation name.

func (*HPIgPostMutation) OwnerArtistCleared

func (m *HPIgPostMutation) OwnerArtistCleared() bool

OwnerArtistCleared reports if the "owner_artist" edge to the HPArtist entity was cleared.

func (*HPIgPostMutation) OwnerArtistID

func (m *HPIgPostMutation) OwnerArtistID() (r int, exists bool)

OwnerArtistID returns the value of the "owner_artist_id" field in the mutation.

func (*HPIgPostMutation) OwnerArtistIDCleared

func (m *HPIgPostMutation) OwnerArtistIDCleared() bool

OwnerArtistIDCleared returns if the "owner_artist_id" field was cleared in this mutation.

func (*HPIgPostMutation) OwnerArtistIDs

func (m *HPIgPostMutation) OwnerArtistIDs() (ids []int)

OwnerArtistIDs returns the "owner_artist" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerArtistID instead. It exists only for internal usage by the builders.

func (*HPIgPostMutation) OwnerMemberCleared

func (m *HPIgPostMutation) OwnerMemberCleared() bool

OwnerMemberCleared reports if the "owner_member" edge to the HPMember entity was cleared.

func (*HPIgPostMutation) OwnerMemberID

func (m *HPIgPostMutation) OwnerMemberID() (r int, exists bool)

OwnerMemberID returns the value of the "owner_member_id" field in the mutation.

func (*HPIgPostMutation) OwnerMemberIDCleared

func (m *HPIgPostMutation) OwnerMemberIDCleared() bool

OwnerMemberIDCleared returns if the "owner_member_id" field was cleared in this mutation.

func (*HPIgPostMutation) OwnerMemberIDs

func (m *HPIgPostMutation) OwnerMemberIDs() (ids []int)

OwnerMemberIDs returns the "owner_member" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerMemberID instead. It exists only for internal usage by the builders.

func (*HPIgPostMutation) PostAt

func (m *HPIgPostMutation) PostAt() (r time.Time, exists bool)

PostAt returns the value of the "post_at" field in the mutation.

func (*HPIgPostMutation) RecrawlArgs

func (m *HPIgPostMutation) RecrawlArgs() (r *jsonfields.HPIgCrawlArgs, exists bool)

RecrawlArgs returns the value of the "recrawl_args" field in the mutation.

func (*HPIgPostMutation) RecrawlArgsCleared

func (m *HPIgPostMutation) RecrawlArgsCleared() bool

RecrawlArgsCleared returns if the "recrawl_args" field was cleared in this mutation.

func (*HPIgPostMutation) RecrawlRequired

func (m *HPIgPostMutation) RecrawlRequired() (r bool, exists bool)

RecrawlRequired returns the value of the "recrawl_required" field in the mutation.

func (*HPIgPostMutation) RecrawlRequiredCleared

func (m *HPIgPostMutation) RecrawlRequiredCleared() bool

RecrawlRequiredCleared returns if the "recrawl_required" field was cleared in this mutation.

func (*HPIgPostMutation) RemoveBlobIDs

func (m *HPIgPostMutation) RemoveBlobIDs(ids ...int)

RemoveBlobIDs removes the "blobs" edge to the HPBlob entity by IDs.

func (*HPIgPostMutation) RemoveTaggedArtistIDs

func (m *HPIgPostMutation) RemoveTaggedArtistIDs(ids ...int)

RemoveTaggedArtistIDs removes the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPIgPostMutation) RemoveTaggedMemberIDs

func (m *HPIgPostMutation) RemoveTaggedMemberIDs(ids ...int)

RemoveTaggedMemberIDs removes the "tagged_members" edge to the HPMember entity by IDs.

func (*HPIgPostMutation) RemovedBlobsIDs

func (m *HPIgPostMutation) RemovedBlobsIDs() (ids []int)

RemovedBlobs returns the removed IDs of the "blobs" edge to the HPBlob entity.

func (*HPIgPostMutation) RemovedEdges

func (m *HPIgPostMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPIgPostMutation) RemovedIDs

func (m *HPIgPostMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPIgPostMutation) RemovedTaggedArtistsIDs

func (m *HPIgPostMutation) RemovedTaggedArtistsIDs() (ids []int)

RemovedTaggedArtists returns the removed IDs of the "tagged_artists" edge to the HPArtist entity.

func (*HPIgPostMutation) RemovedTaggedMembersIDs

func (m *HPIgPostMutation) RemovedTaggedMembersIDs() (ids []int)

RemovedTaggedMembers returns the removed IDs of the "tagged_members" edge to the HPMember entity.

func (*HPIgPostMutation) ResetAsset

func (m *HPIgPostMutation) ResetAsset()

ResetAsset resets all changes to the "asset" edge.

func (*HPIgPostMutation) ResetBlobs

func (m *HPIgPostMutation) ResetBlobs()

ResetBlobs resets all changes to the "blobs" edge.

func (*HPIgPostMutation) ResetComments

func (m *HPIgPostMutation) ResetComments()

ResetComments resets all changes to the "comments" field.

func (*HPIgPostMutation) ResetCrawledAt

func (m *HPIgPostMutation) ResetCrawledAt()

ResetCrawledAt resets all changes to the "crawled_at" field.

func (*HPIgPostMutation) ResetCreatedAt

func (m *HPIgPostMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPIgPostMutation) ResetDescription

func (m *HPIgPostMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*HPIgPostMutation) ResetEdge

func (m *HPIgPostMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPIgPostMutation) ResetErrorCount

func (m *HPIgPostMutation) ResetErrorCount()

ResetErrorCount resets all changes to the "error_count" field.

func (*HPIgPostMutation) ResetField

func (m *HPIgPostMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPIgPostMutation) ResetLastErrorMessage

func (m *HPIgPostMutation) ResetLastErrorMessage()

ResetLastErrorMessage resets all changes to the "last_error_message" field.

func (*HPIgPostMutation) ResetLikes

func (m *HPIgPostMutation) ResetLikes()

ResetLikes resets all changes to the "likes" field.

func (*HPIgPostMutation) ResetManuallyModified

func (m *HPIgPostMutation) ResetManuallyModified()

ResetManuallyModified resets all changes to the "manually_modified" field.

func (*HPIgPostMutation) ResetMedia

func (m *HPIgPostMutation) ResetMedia()

ResetMedia resets all changes to the "media" field.

func (*HPIgPostMutation) ResetOwnerArtist

func (m *HPIgPostMutation) ResetOwnerArtist()

ResetOwnerArtist resets all changes to the "owner_artist" edge.

func (*HPIgPostMutation) ResetOwnerArtistID

func (m *HPIgPostMutation) ResetOwnerArtistID()

ResetOwnerArtistID resets all changes to the "owner_artist_id" field.

func (*HPIgPostMutation) ResetOwnerMember

func (m *HPIgPostMutation) ResetOwnerMember()

ResetOwnerMember resets all changes to the "owner_member" edge.

func (*HPIgPostMutation) ResetOwnerMemberID

func (m *HPIgPostMutation) ResetOwnerMemberID()

ResetOwnerMemberID resets all changes to the "owner_member_id" field.

func (*HPIgPostMutation) ResetPostAt

func (m *HPIgPostMutation) ResetPostAt()

ResetPostAt resets all changes to the "post_at" field.

func (*HPIgPostMutation) ResetRecrawlArgs

func (m *HPIgPostMutation) ResetRecrawlArgs()

ResetRecrawlArgs resets all changes to the "recrawl_args" field.

func (*HPIgPostMutation) ResetRecrawlRequired

func (m *HPIgPostMutation) ResetRecrawlRequired()

ResetRecrawlRequired resets all changes to the "recrawl_required" field.

func (*HPIgPostMutation) ResetShortcode

func (m *HPIgPostMutation) ResetShortcode()

ResetShortcode resets all changes to the "shortcode" field.

func (*HPIgPostMutation) ResetTaggedArtists

func (m *HPIgPostMutation) ResetTaggedArtists()

ResetTaggedArtists resets all changes to the "tagged_artists" edge.

func (*HPIgPostMutation) ResetTaggedMembers

func (m *HPIgPostMutation) ResetTaggedMembers()

ResetTaggedMembers resets all changes to the "tagged_members" edge.

func (*HPIgPostMutation) ResetUpdatedAt

func (m *HPIgPostMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPIgPostMutation) SetAssetID

func (m *HPIgPostMutation) SetAssetID(id int)

SetAssetID sets the "asset" edge to the HPAsset entity by id.

func (*HPIgPostMutation) SetComments

func (m *HPIgPostMutation) SetComments(i int)

SetComments sets the "comments" field.

func (*HPIgPostMutation) SetCrawledAt

func (m *HPIgPostMutation) SetCrawledAt(t time.Time)

SetCrawledAt sets the "crawled_at" field.

func (*HPIgPostMutation) SetCreatedAt

func (m *HPIgPostMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPIgPostMutation) SetDescription

func (m *HPIgPostMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*HPIgPostMutation) SetErrorCount

func (m *HPIgPostMutation) SetErrorCount(i int)

SetErrorCount sets the "error_count" field.

func (*HPIgPostMutation) SetField

func (m *HPIgPostMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPIgPostMutation) SetLastErrorMessage

func (m *HPIgPostMutation) SetLastErrorMessage(s string)

SetLastErrorMessage sets the "last_error_message" field.

func (*HPIgPostMutation) SetLikes

func (m *HPIgPostMutation) SetLikes(i int)

SetLikes sets the "likes" field.

func (*HPIgPostMutation) SetManuallyModified

func (m *HPIgPostMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)

SetManuallyModified sets the "manually_modified" field.

func (*HPIgPostMutation) SetMedia

func (m *HPIgPostMutation) SetMedia(j []jsonfields.Media)

SetMedia sets the "media" field.

func (*HPIgPostMutation) SetOp

func (m *HPIgPostMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPIgPostMutation) SetOwnerArtistID

func (m *HPIgPostMutation) SetOwnerArtistID(i int)

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPIgPostMutation) SetOwnerMemberID

func (m *HPIgPostMutation) SetOwnerMemberID(i int)

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPIgPostMutation) SetPostAt

func (m *HPIgPostMutation) SetPostAt(t time.Time)

SetPostAt sets the "post_at" field.

func (*HPIgPostMutation) SetRecrawlArgs

func (m *HPIgPostMutation) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs)

SetRecrawlArgs sets the "recrawl_args" field.

func (*HPIgPostMutation) SetRecrawlRequired

func (m *HPIgPostMutation) SetRecrawlRequired(b bool)

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPIgPostMutation) SetShortcode

func (m *HPIgPostMutation) SetShortcode(s string)

SetShortcode sets the "shortcode" field.

func (*HPIgPostMutation) SetUpdatedAt

func (m *HPIgPostMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPIgPostMutation) Shortcode

func (m *HPIgPostMutation) Shortcode() (r string, exists bool)

Shortcode returns the value of the "shortcode" field in the mutation.

func (*HPIgPostMutation) TaggedArtistsCleared

func (m *HPIgPostMutation) TaggedArtistsCleared() bool

TaggedArtistsCleared reports if the "tagged_artists" edge to the HPArtist entity was cleared.

func (*HPIgPostMutation) TaggedArtistsIDs

func (m *HPIgPostMutation) TaggedArtistsIDs() (ids []int)

TaggedArtistsIDs returns the "tagged_artists" edge IDs in the mutation.

func (*HPIgPostMutation) TaggedMembersCleared

func (m *HPIgPostMutation) TaggedMembersCleared() bool

TaggedMembersCleared reports if the "tagged_members" edge to the HPMember entity was cleared.

func (*HPIgPostMutation) TaggedMembersIDs

func (m *HPIgPostMutation) TaggedMembersIDs() (ids []int)

TaggedMembersIDs returns the "tagged_members" edge IDs in the mutation.

func (HPIgPostMutation) Tx

func (m HPIgPostMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPIgPostMutation) Type

func (m *HPIgPostMutation) Type() string

Type returns the node type of this mutation (HPIgPost).

func (*HPIgPostMutation) UpdatedAt

func (m *HPIgPostMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPIgPostMutation) UpdatedAtCleared

func (m *HPIgPostMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPIgPostMutation) Where

func (m *HPIgPostMutation) Where(ps ...predicate.HPIgPost)

Where appends a list predicates to the HPIgPostMutation builder.

func (*HPIgPostMutation) WhereP

func (m *HPIgPostMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPIgPostMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPIgPostOrder

HPIgPostOrder defines the ordering of HPIgPost.

type HPIgPostOrder struct {
    Direction OrderDirection      `json:"direction"`
    Field     *HPIgPostOrderField `json:"field"`
}

type HPIgPostOrderField

HPIgPostOrderField defines the ordering field of HPIgPost.

type HPIgPostOrderField struct {
    // contains filtered or unexported fields
}

type HPIgPostPaginateOption

HPIgPostPaginateOption enables pagination customization.

type HPIgPostPaginateOption func(*hpigpostPager) error

func WithHPIgPostFilter

func WithHPIgPostFilter(filter func(*HPIgPostQuery) (*HPIgPostQuery, error)) HPIgPostPaginateOption

WithHPIgPostFilter configures pagination filter.

func WithHPIgPostOrder

func WithHPIgPostOrder(order *HPIgPostOrder) HPIgPostPaginateOption

WithHPIgPostOrder configures pagination ordering.

type HPIgPostQuery

HPIgPostQuery is the builder for querying HPIgPost entities.

type HPIgPostQuery struct {
    // contains filtered or unexported fields
}

func (*HPIgPostQuery) Aggregate

func (hipq *HPIgPostQuery) Aggregate(fns ...AggregateFunc) *HPIgPostSelect

Aggregate returns a HPIgPostSelect configured with the given aggregations.

func (*HPIgPostQuery) All

func (hipq *HPIgPostQuery) All(ctx context.Context) ([]*HPIgPost, error)

All executes the query and returns a list of HPIgPosts.

func (*HPIgPostQuery) AllX

func (hipq *HPIgPostQuery) AllX(ctx context.Context) []*HPIgPost

AllX is like All, but panics if an error occurs.

func (*HPIgPostQuery) Clone

func (hipq *HPIgPostQuery) Clone() *HPIgPostQuery

Clone returns a duplicate of the HPIgPostQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPIgPostQuery) CollectFields

func (hip *HPIgPostQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPIgPostQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPIgPostQuery) Count

func (hipq *HPIgPostQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPIgPostQuery) CountX

func (hipq *HPIgPostQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPIgPostQuery) Exist

func (hipq *HPIgPostQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPIgPostQuery) ExistX

func (hipq *HPIgPostQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPIgPostQuery) Filter

func (hipq *HPIgPostQuery) Filter() *HPIgPostFilter

Filter returns a Filter implementation to apply filters on the HPIgPostQuery builder.

func (*HPIgPostQuery) First

func (hipq *HPIgPostQuery) First(ctx context.Context) (*HPIgPost, error)

First returns the first HPIgPost entity from the query. Returns a *NotFoundError when no HPIgPost was found.

func (*HPIgPostQuery) FirstID

func (hipq *HPIgPostQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPIgPost ID from the query. Returns a *NotFoundError when no HPIgPost ID was found.

func (*HPIgPostQuery) FirstIDX

func (hipq *HPIgPostQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPIgPostQuery) FirstX

func (hipq *HPIgPostQuery) FirstX(ctx context.Context) *HPIgPost

FirstX is like First, but panics if an error occurs.

func (*HPIgPostQuery) GroupBy

func (hipq *HPIgPostQuery) GroupBy(field string, fields ...string) *HPIgPostGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPIgPost.Query().
	GroupBy(hpigpost.FieldCrawledAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPIgPostQuery) IDs

func (hipq *HPIgPostQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPIgPost IDs.

func (*HPIgPostQuery) IDsX

func (hipq *HPIgPostQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPIgPostQuery) Limit

func (hipq *HPIgPostQuery) Limit(limit int) *HPIgPostQuery

Limit the number of records to be returned by this query.

func (*HPIgPostQuery) Offset

func (hipq *HPIgPostQuery) Offset(offset int) *HPIgPostQuery

Offset to start from.

func (*HPIgPostQuery) Only

func (hipq *HPIgPostQuery) Only(ctx context.Context) (*HPIgPost, error)

Only returns a single HPIgPost entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPIgPost entity is found. Returns a *NotFoundError when no HPIgPost entities are found.

func (*HPIgPostQuery) OnlyID

func (hipq *HPIgPostQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPIgPost ID in the query. Returns a *NotSingularError when more than one HPIgPost ID is found. Returns a *NotFoundError when no entities are found.

func (*HPIgPostQuery) OnlyIDX

func (hipq *HPIgPostQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPIgPostQuery) OnlyX

func (hipq *HPIgPostQuery) OnlyX(ctx context.Context) *HPIgPost

OnlyX is like Only, but panics if an error occurs.

func (*HPIgPostQuery) Order

func (hipq *HPIgPostQuery) Order(o ...hpigpost.Order) *HPIgPostQuery

Order specifies how the records should be ordered.

func (*HPIgPostQuery) Paginate

func (hip *HPIgPostQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPIgPostPaginateOption,
) (*HPIgPostConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPIgPost.

func (*HPIgPostQuery) QueryAsset

func (hipq *HPIgPostQuery) QueryAsset() *HPAssetQuery

QueryAsset chains the current query on the "asset" edge.

func (*HPIgPostQuery) QueryBlobs

func (hipq *HPIgPostQuery) QueryBlobs() *HPBlobQuery

QueryBlobs chains the current query on the "blobs" edge.

func (*HPIgPostQuery) QueryOwnerArtist

func (hipq *HPIgPostQuery) QueryOwnerArtist() *HPArtistQuery

QueryOwnerArtist chains the current query on the "owner_artist" edge.

func (*HPIgPostQuery) QueryOwnerMember

func (hipq *HPIgPostQuery) QueryOwnerMember() *HPMemberQuery

QueryOwnerMember chains the current query on the "owner_member" edge.

func (*HPIgPostQuery) QueryTaggedArtists

func (hipq *HPIgPostQuery) QueryTaggedArtists() *HPArtistQuery

QueryTaggedArtists chains the current query on the "tagged_artists" edge.

func (*HPIgPostQuery) QueryTaggedMembers

func (hipq *HPIgPostQuery) QueryTaggedMembers() *HPMemberQuery

QueryTaggedMembers chains the current query on the "tagged_members" edge.

func (*HPIgPostQuery) Select

func (hipq *HPIgPostQuery) Select(fields ...string) *HPIgPostSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
}

client.HPIgPost.Query().
	Select(hpigpost.FieldCrawledAt).
	Scan(ctx, &v)

func (*HPIgPostQuery) Unique

func (hipq *HPIgPostQuery) Unique(unique bool) *HPIgPostQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPIgPostQuery) Where

func (hipq *HPIgPostQuery) Where(ps ...predicate.HPIgPost) *HPIgPostQuery

Where adds a new predicate for the HPIgPostQuery builder.

func (*HPIgPostQuery) WithAsset

func (hipq *HPIgPostQuery) WithAsset(opts ...func(*HPAssetQuery)) *HPIgPostQuery

WithAsset tells the query-builder to eager-load the nodes that are connected to the "asset" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithBlobs

func (hipq *HPIgPostQuery) WithBlobs(opts ...func(*HPBlobQuery)) *HPIgPostQuery

WithBlobs tells the query-builder to eager-load the nodes that are connected to the "blobs" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithNamedBlobs

func (hipq *HPIgPostQuery) WithNamedBlobs(name string, opts ...func(*HPBlobQuery)) *HPIgPostQuery

WithNamedBlobs tells the query-builder to eager-load the nodes that are connected to the "blobs" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithNamedTaggedArtists

func (hipq *HPIgPostQuery) WithNamedTaggedArtists(name string, opts ...func(*HPArtistQuery)) *HPIgPostQuery

WithNamedTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithNamedTaggedMembers

func (hipq *HPIgPostQuery) WithNamedTaggedMembers(name string, opts ...func(*HPMemberQuery)) *HPIgPostQuery

WithNamedTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithOwnerArtist

func (hipq *HPIgPostQuery) WithOwnerArtist(opts ...func(*HPArtistQuery)) *HPIgPostQuery

WithOwnerArtist tells the query-builder to eager-load the nodes that are connected to the "owner_artist" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithOwnerMember

func (hipq *HPIgPostQuery) WithOwnerMember(opts ...func(*HPMemberQuery)) *HPIgPostQuery

WithOwnerMember tells the query-builder to eager-load the nodes that are connected to the "owner_member" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithTaggedArtists

func (hipq *HPIgPostQuery) WithTaggedArtists(opts ...func(*HPArtistQuery)) *HPIgPostQuery

WithTaggedArtists tells the query-builder to eager-load the nodes that are connected to the "tagged_artists" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPIgPostQuery) WithTaggedMembers

func (hipq *HPIgPostQuery) WithTaggedMembers(opts ...func(*HPMemberQuery)) *HPIgPostQuery

WithTaggedMembers tells the query-builder to eager-load the nodes that are connected to the "tagged_members" edge. The optional arguments are used to configure the query builder of the edge.

type HPIgPostSelect

HPIgPostSelect is the builder for selecting fields of HPIgPost entities.

type HPIgPostSelect struct {
    *HPIgPostQuery
    // contains filtered or unexported fields
}

func (*HPIgPostSelect) Aggregate

func (hips *HPIgPostSelect) Aggregate(fns ...AggregateFunc) *HPIgPostSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPIgPostSelect) Bool

func (s *HPIgPostSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) BoolX

func (s *HPIgPostSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPIgPostSelect) Bools

func (s *HPIgPostSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) BoolsX

func (s *HPIgPostSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPIgPostSelect) Float64

func (s *HPIgPostSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) Float64X

func (s *HPIgPostSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPIgPostSelect) Float64s

func (s *HPIgPostSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) Float64sX

func (s *HPIgPostSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPIgPostSelect) Int

func (s *HPIgPostSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) IntX

func (s *HPIgPostSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPIgPostSelect) Ints

func (s *HPIgPostSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) IntsX

func (s *HPIgPostSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPIgPostSelect) Scan

func (hips *HPIgPostSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPIgPostSelect) ScanX

func (s *HPIgPostSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPIgPostSelect) String

func (s *HPIgPostSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) StringX

func (s *HPIgPostSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPIgPostSelect) Strings

func (s *HPIgPostSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPIgPostSelect) StringsX

func (s *HPIgPostSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPIgPostUpdate

HPIgPostUpdate is the builder for updating HPIgPost entities.

type HPIgPostUpdate struct {
    // contains filtered or unexported fields
}

func (*HPIgPostUpdate) AddBlobIDs

func (hipu *HPIgPostUpdate) AddBlobIDs(ids ...int) *HPIgPostUpdate

AddBlobIDs adds the "blobs" edge to the HPBlob entity by IDs.

func (*HPIgPostUpdate) AddBlobs

func (hipu *HPIgPostUpdate) AddBlobs(h ...*HPBlob) *HPIgPostUpdate

AddBlobs adds the "blobs" edges to the HPBlob entity.

func (*HPIgPostUpdate) AddComments

func (hipu *HPIgPostUpdate) AddComments(i int) *HPIgPostUpdate

AddComments adds i to the "comments" field.

func (*HPIgPostUpdate) AddErrorCount

func (hipu *HPIgPostUpdate) AddErrorCount(i int) *HPIgPostUpdate

AddErrorCount adds i to the "error_count" field.

func (*HPIgPostUpdate) AddLikes

func (hipu *HPIgPostUpdate) AddLikes(i int) *HPIgPostUpdate

AddLikes adds i to the "likes" field.

func (*HPIgPostUpdate) AddTaggedArtistIDs

func (hipu *HPIgPostUpdate) AddTaggedArtistIDs(ids ...int) *HPIgPostUpdate

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPIgPostUpdate) AddTaggedArtists

func (hipu *HPIgPostUpdate) AddTaggedArtists(h ...*HPArtist) *HPIgPostUpdate

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPIgPostUpdate) AddTaggedMemberIDs

func (hipu *HPIgPostUpdate) AddTaggedMemberIDs(ids ...int) *HPIgPostUpdate

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPIgPostUpdate) AddTaggedMembers

func (hipu *HPIgPostUpdate) AddTaggedMembers(h ...*HPMember) *HPIgPostUpdate

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPIgPostUpdate) AppendMedia

func (hipu *HPIgPostUpdate) AppendMedia(j []jsonfields.Media) *HPIgPostUpdate

AppendMedia appends j to the "media" field.

func (*HPIgPostUpdate) ClearAsset

func (hipu *HPIgPostUpdate) ClearAsset() *HPIgPostUpdate

ClearAsset clears the "asset" edge to the HPAsset entity.

func (*HPIgPostUpdate) ClearBlobs

func (hipu *HPIgPostUpdate) ClearBlobs() *HPIgPostUpdate

ClearBlobs clears all "blobs" edges to the HPBlob entity.

func (*HPIgPostUpdate) ClearCrawledAt

func (hipu *HPIgPostUpdate) ClearCrawledAt() *HPIgPostUpdate

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPIgPostUpdate) ClearLastErrorMessage

func (hipu *HPIgPostUpdate) ClearLastErrorMessage() *HPIgPostUpdate

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPIgPostUpdate) ClearManuallyModified

func (hipu *HPIgPostUpdate) ClearManuallyModified() *HPIgPostUpdate

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPIgPostUpdate) ClearOwnerArtist

func (hipu *HPIgPostUpdate) ClearOwnerArtist() *HPIgPostUpdate

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPIgPostUpdate) ClearOwnerArtistID

func (hipu *HPIgPostUpdate) ClearOwnerArtistID() *HPIgPostUpdate

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPIgPostUpdate) ClearOwnerMember

func (hipu *HPIgPostUpdate) ClearOwnerMember() *HPIgPostUpdate

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPIgPostUpdate) ClearOwnerMemberID

func (hipu *HPIgPostUpdate) ClearOwnerMemberID() *HPIgPostUpdate

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPIgPostUpdate) ClearRecrawlArgs

func (hipu *HPIgPostUpdate) ClearRecrawlArgs() *HPIgPostUpdate

ClearRecrawlArgs clears the value of the "recrawl_args" field.

func (*HPIgPostUpdate) ClearRecrawlRequired

func (hipu *HPIgPostUpdate) ClearRecrawlRequired() *HPIgPostUpdate

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPIgPostUpdate) ClearTaggedArtists

func (hipu *HPIgPostUpdate) ClearTaggedArtists() *HPIgPostUpdate

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPIgPostUpdate) ClearTaggedMembers

func (hipu *HPIgPostUpdate) ClearTaggedMembers() *HPIgPostUpdate

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPIgPostUpdate) ClearUpdatedAt

func (hipu *HPIgPostUpdate) ClearUpdatedAt() *HPIgPostUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPIgPostUpdate) Exec

func (hipu *HPIgPostUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPIgPostUpdate) ExecX

func (hipu *HPIgPostUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostUpdate) Mutation

func (hipu *HPIgPostUpdate) Mutation() *HPIgPostMutation

Mutation returns the HPIgPostMutation object of the builder.

func (*HPIgPostUpdate) RemoveBlobIDs

func (hipu *HPIgPostUpdate) RemoveBlobIDs(ids ...int) *HPIgPostUpdate

RemoveBlobIDs removes the "blobs" edge to HPBlob entities by IDs.

func (*HPIgPostUpdate) RemoveBlobs

func (hipu *HPIgPostUpdate) RemoveBlobs(h ...*HPBlob) *HPIgPostUpdate

RemoveBlobs removes "blobs" edges to HPBlob entities.

func (*HPIgPostUpdate) RemoveTaggedArtistIDs

func (hipu *HPIgPostUpdate) RemoveTaggedArtistIDs(ids ...int) *HPIgPostUpdate

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPIgPostUpdate) RemoveTaggedArtists

func (hipu *HPIgPostUpdate) RemoveTaggedArtists(h ...*HPArtist) *HPIgPostUpdate

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPIgPostUpdate) RemoveTaggedMemberIDs

func (hipu *HPIgPostUpdate) RemoveTaggedMemberIDs(ids ...int) *HPIgPostUpdate

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPIgPostUpdate) RemoveTaggedMembers

func (hipu *HPIgPostUpdate) RemoveTaggedMembers(h ...*HPMember) *HPIgPostUpdate

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPIgPostUpdate) Save

func (hipu *HPIgPostUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPIgPostUpdate) SaveX

func (hipu *HPIgPostUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPIgPostUpdate) SetAsset

func (hipu *HPIgPostUpdate) SetAsset(h *HPAsset) *HPIgPostUpdate

SetAsset sets the "asset" edge to the HPAsset entity.

func (*HPIgPostUpdate) SetAssetID

func (hipu *HPIgPostUpdate) SetAssetID(id int) *HPIgPostUpdate

SetAssetID sets the "asset" edge to the HPAsset entity by ID.

func (*HPIgPostUpdate) SetComments

func (hipu *HPIgPostUpdate) SetComments(i int) *HPIgPostUpdate

SetComments sets the "comments" field.

func (*HPIgPostUpdate) SetCrawledAt

func (hipu *HPIgPostUpdate) SetCrawledAt(t time.Time) *HPIgPostUpdate

SetCrawledAt sets the "crawled_at" field.

func (*HPIgPostUpdate) SetDescription

func (hipu *HPIgPostUpdate) SetDescription(s string) *HPIgPostUpdate

SetDescription sets the "description" field.

func (*HPIgPostUpdate) SetErrorCount

func (hipu *HPIgPostUpdate) SetErrorCount(i int) *HPIgPostUpdate

SetErrorCount sets the "error_count" field.

func (*HPIgPostUpdate) SetLastErrorMessage

func (hipu *HPIgPostUpdate) SetLastErrorMessage(s string) *HPIgPostUpdate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPIgPostUpdate) SetLikes

func (hipu *HPIgPostUpdate) SetLikes(i int) *HPIgPostUpdate

SetLikes sets the "likes" field.

func (*HPIgPostUpdate) SetManuallyModified

func (hipu *HPIgPostUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPIgPostUpdate

SetManuallyModified sets the "manually_modified" field.

func (*HPIgPostUpdate) SetMedia

func (hipu *HPIgPostUpdate) SetMedia(j []jsonfields.Media) *HPIgPostUpdate

SetMedia sets the "media" field.

func (*HPIgPostUpdate) SetNillableAssetID

func (hipu *HPIgPostUpdate) SetNillableAssetID(id *int) *HPIgPostUpdate

SetNillableAssetID sets the "asset" edge to the HPAsset entity by ID if the given value is not nil.

func (*HPIgPostUpdate) SetNillableCrawledAt

func (hipu *HPIgPostUpdate) SetNillableCrawledAt(t *time.Time) *HPIgPostUpdate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPIgPostUpdate) SetNillableErrorCount

func (hipu *HPIgPostUpdate) SetNillableErrorCount(i *int) *HPIgPostUpdate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPIgPostUpdate) SetNillableLastErrorMessage

func (hipu *HPIgPostUpdate) SetNillableLastErrorMessage(s *string) *HPIgPostUpdate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPIgPostUpdate) SetNillableOwnerArtistID

func (hipu *HPIgPostUpdate) SetNillableOwnerArtistID(i *int) *HPIgPostUpdate

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPIgPostUpdate) SetNillableOwnerMemberID

func (hipu *HPIgPostUpdate) SetNillableOwnerMemberID(i *int) *HPIgPostUpdate

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPIgPostUpdate) SetNillableRecrawlRequired

func (hipu *HPIgPostUpdate) SetNillableRecrawlRequired(b *bool) *HPIgPostUpdate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPIgPostUpdate) SetNillableUpdatedAt

func (hipu *HPIgPostUpdate) SetNillableUpdatedAt(t *time.Time) *HPIgPostUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPIgPostUpdate) SetOwnerArtist

func (hipu *HPIgPostUpdate) SetOwnerArtist(h *HPArtist) *HPIgPostUpdate

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPIgPostUpdate) SetOwnerArtistID

func (hipu *HPIgPostUpdate) SetOwnerArtistID(i int) *HPIgPostUpdate

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPIgPostUpdate) SetOwnerMember

func (hipu *HPIgPostUpdate) SetOwnerMember(h *HPMember) *HPIgPostUpdate

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPIgPostUpdate) SetOwnerMemberID

func (hipu *HPIgPostUpdate) SetOwnerMemberID(i int) *HPIgPostUpdate

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPIgPostUpdate) SetPostAt

func (hipu *HPIgPostUpdate) SetPostAt(t time.Time) *HPIgPostUpdate

SetPostAt sets the "post_at" field.

func (*HPIgPostUpdate) SetRecrawlArgs

func (hipu *HPIgPostUpdate) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs) *HPIgPostUpdate

SetRecrawlArgs sets the "recrawl_args" field.

func (*HPIgPostUpdate) SetRecrawlRequired

func (hipu *HPIgPostUpdate) SetRecrawlRequired(b bool) *HPIgPostUpdate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPIgPostUpdate) SetShortcode

func (hipu *HPIgPostUpdate) SetShortcode(s string) *HPIgPostUpdate

SetShortcode sets the "shortcode" field.

func (*HPIgPostUpdate) SetUpdatedAt

func (hipu *HPIgPostUpdate) SetUpdatedAt(t time.Time) *HPIgPostUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPIgPostUpdate) Where

func (hipu *HPIgPostUpdate) Where(ps ...predicate.HPIgPost) *HPIgPostUpdate

Where appends a list predicates to the HPIgPostUpdate builder.

type HPIgPostUpdateOne

HPIgPostUpdateOne is the builder for updating a single HPIgPost entity.

type HPIgPostUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPIgPostUpdateOne) AddBlobIDs

func (hipuo *HPIgPostUpdateOne) AddBlobIDs(ids ...int) *HPIgPostUpdateOne

AddBlobIDs adds the "blobs" edge to the HPBlob entity by IDs.

func (*HPIgPostUpdateOne) AddBlobs

func (hipuo *HPIgPostUpdateOne) AddBlobs(h ...*HPBlob) *HPIgPostUpdateOne

AddBlobs adds the "blobs" edges to the HPBlob entity.

func (*HPIgPostUpdateOne) AddComments

func (hipuo *HPIgPostUpdateOne) AddComments(i int) *HPIgPostUpdateOne

AddComments adds i to the "comments" field.

func (*HPIgPostUpdateOne) AddErrorCount

func (hipuo *HPIgPostUpdateOne) AddErrorCount(i int) *HPIgPostUpdateOne

AddErrorCount adds i to the "error_count" field.

func (*HPIgPostUpdateOne) AddLikes

func (hipuo *HPIgPostUpdateOne) AddLikes(i int) *HPIgPostUpdateOne

AddLikes adds i to the "likes" field.

func (*HPIgPostUpdateOne) AddTaggedArtistIDs

func (hipuo *HPIgPostUpdateOne) AddTaggedArtistIDs(ids ...int) *HPIgPostUpdateOne

AddTaggedArtistIDs adds the "tagged_artists" edge to the HPArtist entity by IDs.

func (*HPIgPostUpdateOne) AddTaggedArtists

func (hipuo *HPIgPostUpdateOne) AddTaggedArtists(h ...*HPArtist) *HPIgPostUpdateOne

AddTaggedArtists adds the "tagged_artists" edges to the HPArtist entity.

func (*HPIgPostUpdateOne) AddTaggedMemberIDs

func (hipuo *HPIgPostUpdateOne) AddTaggedMemberIDs(ids ...int) *HPIgPostUpdateOne

AddTaggedMemberIDs adds the "tagged_members" edge to the HPMember entity by IDs.

func (*HPIgPostUpdateOne) AddTaggedMembers

func (hipuo *HPIgPostUpdateOne) AddTaggedMembers(h ...*HPMember) *HPIgPostUpdateOne

AddTaggedMembers adds the "tagged_members" edges to the HPMember entity.

func (*HPIgPostUpdateOne) AppendMedia

func (hipuo *HPIgPostUpdateOne) AppendMedia(j []jsonfields.Media) *HPIgPostUpdateOne

AppendMedia appends j to the "media" field.

func (*HPIgPostUpdateOne) ClearAsset

func (hipuo *HPIgPostUpdateOne) ClearAsset() *HPIgPostUpdateOne

ClearAsset clears the "asset" edge to the HPAsset entity.

func (*HPIgPostUpdateOne) ClearBlobs

func (hipuo *HPIgPostUpdateOne) ClearBlobs() *HPIgPostUpdateOne

ClearBlobs clears all "blobs" edges to the HPBlob entity.

func (*HPIgPostUpdateOne) ClearCrawledAt

func (hipuo *HPIgPostUpdateOne) ClearCrawledAt() *HPIgPostUpdateOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPIgPostUpdateOne) ClearLastErrorMessage

func (hipuo *HPIgPostUpdateOne) ClearLastErrorMessage() *HPIgPostUpdateOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPIgPostUpdateOne) ClearManuallyModified

func (hipuo *HPIgPostUpdateOne) ClearManuallyModified() *HPIgPostUpdateOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPIgPostUpdateOne) ClearOwnerArtist

func (hipuo *HPIgPostUpdateOne) ClearOwnerArtist() *HPIgPostUpdateOne

ClearOwnerArtist clears the "owner_artist" edge to the HPArtist entity.

func (*HPIgPostUpdateOne) ClearOwnerArtistID

func (hipuo *HPIgPostUpdateOne) ClearOwnerArtistID() *HPIgPostUpdateOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPIgPostUpdateOne) ClearOwnerMember

func (hipuo *HPIgPostUpdateOne) ClearOwnerMember() *HPIgPostUpdateOne

ClearOwnerMember clears the "owner_member" edge to the HPMember entity.

func (*HPIgPostUpdateOne) ClearOwnerMemberID

func (hipuo *HPIgPostUpdateOne) ClearOwnerMemberID() *HPIgPostUpdateOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPIgPostUpdateOne) ClearRecrawlArgs

func (hipuo *HPIgPostUpdateOne) ClearRecrawlArgs() *HPIgPostUpdateOne

ClearRecrawlArgs clears the value of the "recrawl_args" field.

func (*HPIgPostUpdateOne) ClearRecrawlRequired

func (hipuo *HPIgPostUpdateOne) ClearRecrawlRequired() *HPIgPostUpdateOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPIgPostUpdateOne) ClearTaggedArtists

func (hipuo *HPIgPostUpdateOne) ClearTaggedArtists() *HPIgPostUpdateOne

ClearTaggedArtists clears all "tagged_artists" edges to the HPArtist entity.

func (*HPIgPostUpdateOne) ClearTaggedMembers

func (hipuo *HPIgPostUpdateOne) ClearTaggedMembers() *HPIgPostUpdateOne

ClearTaggedMembers clears all "tagged_members" edges to the HPMember entity.

func (*HPIgPostUpdateOne) ClearUpdatedAt

func (hipuo *HPIgPostUpdateOne) ClearUpdatedAt() *HPIgPostUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPIgPostUpdateOne) Exec

func (hipuo *HPIgPostUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPIgPostUpdateOne) ExecX

func (hipuo *HPIgPostUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostUpdateOne) Mutation

func (hipuo *HPIgPostUpdateOne) Mutation() *HPIgPostMutation

Mutation returns the HPIgPostMutation object of the builder.

func (*HPIgPostUpdateOne) RemoveBlobIDs

func (hipuo *HPIgPostUpdateOne) RemoveBlobIDs(ids ...int) *HPIgPostUpdateOne

RemoveBlobIDs removes the "blobs" edge to HPBlob entities by IDs.

func (*HPIgPostUpdateOne) RemoveBlobs

func (hipuo *HPIgPostUpdateOne) RemoveBlobs(h ...*HPBlob) *HPIgPostUpdateOne

RemoveBlobs removes "blobs" edges to HPBlob entities.

func (*HPIgPostUpdateOne) RemoveTaggedArtistIDs

func (hipuo *HPIgPostUpdateOne) RemoveTaggedArtistIDs(ids ...int) *HPIgPostUpdateOne

RemoveTaggedArtistIDs removes the "tagged_artists" edge to HPArtist entities by IDs.

func (*HPIgPostUpdateOne) RemoveTaggedArtists

func (hipuo *HPIgPostUpdateOne) RemoveTaggedArtists(h ...*HPArtist) *HPIgPostUpdateOne

RemoveTaggedArtists removes "tagged_artists" edges to HPArtist entities.

func (*HPIgPostUpdateOne) RemoveTaggedMemberIDs

func (hipuo *HPIgPostUpdateOne) RemoveTaggedMemberIDs(ids ...int) *HPIgPostUpdateOne

RemoveTaggedMemberIDs removes the "tagged_members" edge to HPMember entities by IDs.

func (*HPIgPostUpdateOne) RemoveTaggedMembers

func (hipuo *HPIgPostUpdateOne) RemoveTaggedMembers(h ...*HPMember) *HPIgPostUpdateOne

RemoveTaggedMembers removes "tagged_members" edges to HPMember entities.

func (*HPIgPostUpdateOne) Save

func (hipuo *HPIgPostUpdateOne) Save(ctx context.Context) (*HPIgPost, error)

Save executes the query and returns the updated HPIgPost entity.

func (*HPIgPostUpdateOne) SaveX

func (hipuo *HPIgPostUpdateOne) SaveX(ctx context.Context) *HPIgPost

SaveX is like Save, but panics if an error occurs.

func (*HPIgPostUpdateOne) Select

func (hipuo *HPIgPostUpdateOne) Select(field string, fields ...string) *HPIgPostUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPIgPostUpdateOne) SetAsset

func (hipuo *HPIgPostUpdateOne) SetAsset(h *HPAsset) *HPIgPostUpdateOne

SetAsset sets the "asset" edge to the HPAsset entity.

func (*HPIgPostUpdateOne) SetAssetID

func (hipuo *HPIgPostUpdateOne) SetAssetID(id int) *HPIgPostUpdateOne

SetAssetID sets the "asset" edge to the HPAsset entity by ID.

func (*HPIgPostUpdateOne) SetComments

func (hipuo *HPIgPostUpdateOne) SetComments(i int) *HPIgPostUpdateOne

SetComments sets the "comments" field.

func (*HPIgPostUpdateOne) SetCrawledAt

func (hipuo *HPIgPostUpdateOne) SetCrawledAt(t time.Time) *HPIgPostUpdateOne

SetCrawledAt sets the "crawled_at" field.

func (*HPIgPostUpdateOne) SetDescription

func (hipuo *HPIgPostUpdateOne) SetDescription(s string) *HPIgPostUpdateOne

SetDescription sets the "description" field.

func (*HPIgPostUpdateOne) SetErrorCount

func (hipuo *HPIgPostUpdateOne) SetErrorCount(i int) *HPIgPostUpdateOne

SetErrorCount sets the "error_count" field.

func (*HPIgPostUpdateOne) SetLastErrorMessage

func (hipuo *HPIgPostUpdateOne) SetLastErrorMessage(s string) *HPIgPostUpdateOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPIgPostUpdateOne) SetLikes

func (hipuo *HPIgPostUpdateOne) SetLikes(i int) *HPIgPostUpdateOne

SetLikes sets the "likes" field.

func (*HPIgPostUpdateOne) SetManuallyModified

func (hipuo *HPIgPostUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPIgPostUpdateOne

SetManuallyModified sets the "manually_modified" field.

func (*HPIgPostUpdateOne) SetMedia

func (hipuo *HPIgPostUpdateOne) SetMedia(j []jsonfields.Media) *HPIgPostUpdateOne

SetMedia sets the "media" field.

func (*HPIgPostUpdateOne) SetNillableAssetID

func (hipuo *HPIgPostUpdateOne) SetNillableAssetID(id *int) *HPIgPostUpdateOne

SetNillableAssetID sets the "asset" edge to the HPAsset entity by ID if the given value is not nil.

func (*HPIgPostUpdateOne) SetNillableCrawledAt

func (hipuo *HPIgPostUpdateOne) SetNillableCrawledAt(t *time.Time) *HPIgPostUpdateOne

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPIgPostUpdateOne) SetNillableErrorCount

func (hipuo *HPIgPostUpdateOne) SetNillableErrorCount(i *int) *HPIgPostUpdateOne

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPIgPostUpdateOne) SetNillableLastErrorMessage

func (hipuo *HPIgPostUpdateOne) SetNillableLastErrorMessage(s *string) *HPIgPostUpdateOne

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPIgPostUpdateOne) SetNillableOwnerArtistID

func (hipuo *HPIgPostUpdateOne) SetNillableOwnerArtistID(i *int) *HPIgPostUpdateOne

SetNillableOwnerArtistID sets the "owner_artist_id" field if the given value is not nil.

func (*HPIgPostUpdateOne) SetNillableOwnerMemberID

func (hipuo *HPIgPostUpdateOne) SetNillableOwnerMemberID(i *int) *HPIgPostUpdateOne

SetNillableOwnerMemberID sets the "owner_member_id" field if the given value is not nil.

func (*HPIgPostUpdateOne) SetNillableRecrawlRequired

func (hipuo *HPIgPostUpdateOne) SetNillableRecrawlRequired(b *bool) *HPIgPostUpdateOne

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPIgPostUpdateOne) SetNillableUpdatedAt

func (hipuo *HPIgPostUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPIgPostUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPIgPostUpdateOne) SetOwnerArtist

func (hipuo *HPIgPostUpdateOne) SetOwnerArtist(h *HPArtist) *HPIgPostUpdateOne

SetOwnerArtist sets the "owner_artist" edge to the HPArtist entity.

func (*HPIgPostUpdateOne) SetOwnerArtistID

func (hipuo *HPIgPostUpdateOne) SetOwnerArtistID(i int) *HPIgPostUpdateOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPIgPostUpdateOne) SetOwnerMember

func (hipuo *HPIgPostUpdateOne) SetOwnerMember(h *HPMember) *HPIgPostUpdateOne

SetOwnerMember sets the "owner_member" edge to the HPMember entity.

func (*HPIgPostUpdateOne) SetOwnerMemberID

func (hipuo *HPIgPostUpdateOne) SetOwnerMemberID(i int) *HPIgPostUpdateOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPIgPostUpdateOne) SetPostAt

func (hipuo *HPIgPostUpdateOne) SetPostAt(t time.Time) *HPIgPostUpdateOne

SetPostAt sets the "post_at" field.

func (*HPIgPostUpdateOne) SetRecrawlArgs

func (hipuo *HPIgPostUpdateOne) SetRecrawlArgs(jica *jsonfields.HPIgCrawlArgs) *HPIgPostUpdateOne

SetRecrawlArgs sets the "recrawl_args" field.

func (*HPIgPostUpdateOne) SetRecrawlRequired

func (hipuo *HPIgPostUpdateOne) SetRecrawlRequired(b bool) *HPIgPostUpdateOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPIgPostUpdateOne) SetShortcode

func (hipuo *HPIgPostUpdateOne) SetShortcode(s string) *HPIgPostUpdateOne

SetShortcode sets the "shortcode" field.

func (*HPIgPostUpdateOne) SetUpdatedAt

func (hipuo *HPIgPostUpdateOne) SetUpdatedAt(t time.Time) *HPIgPostUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPIgPostUpdateOne) Where

func (hipuo *HPIgPostUpdateOne) Where(ps ...predicate.HPIgPost) *HPIgPostUpdateOne

Where appends a list predicates to the HPIgPostUpdate builder.

type HPIgPostUpsert

HPIgPostUpsert is the "OnConflict" setter.

type HPIgPostUpsert struct {
    *sql.UpdateSet
}

func (*HPIgPostUpsert) AddComments

func (u *HPIgPostUpsert) AddComments(v int) *HPIgPostUpsert

AddComments adds v to the "comments" field.

func (*HPIgPostUpsert) AddErrorCount

func (u *HPIgPostUpsert) AddErrorCount(v int) *HPIgPostUpsert

AddErrorCount adds v to the "error_count" field.

func (*HPIgPostUpsert) AddLikes

func (u *HPIgPostUpsert) AddLikes(v int) *HPIgPostUpsert

AddLikes adds v to the "likes" field.

func (*HPIgPostUpsert) ClearCrawledAt

func (u *HPIgPostUpsert) ClearCrawledAt() *HPIgPostUpsert

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPIgPostUpsert) ClearLastErrorMessage

func (u *HPIgPostUpsert) ClearLastErrorMessage() *HPIgPostUpsert

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPIgPostUpsert) ClearManuallyModified

func (u *HPIgPostUpsert) ClearManuallyModified() *HPIgPostUpsert

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPIgPostUpsert) ClearOwnerArtistID

func (u *HPIgPostUpsert) ClearOwnerArtistID() *HPIgPostUpsert

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPIgPostUpsert) ClearOwnerMemberID

func (u *HPIgPostUpsert) ClearOwnerMemberID() *HPIgPostUpsert

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPIgPostUpsert) ClearRecrawlArgs

func (u *HPIgPostUpsert) ClearRecrawlArgs() *HPIgPostUpsert

ClearRecrawlArgs clears the value of the "recrawl_args" field.

func (*HPIgPostUpsert) ClearRecrawlRequired

func (u *HPIgPostUpsert) ClearRecrawlRequired() *HPIgPostUpsert

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPIgPostUpsert) ClearUpdatedAt

func (u *HPIgPostUpsert) ClearUpdatedAt() *HPIgPostUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPIgPostUpsert) SetComments

func (u *HPIgPostUpsert) SetComments(v int) *HPIgPostUpsert

SetComments sets the "comments" field.

func (*HPIgPostUpsert) SetCrawledAt

func (u *HPIgPostUpsert) SetCrawledAt(v time.Time) *HPIgPostUpsert

SetCrawledAt sets the "crawled_at" field.

func (*HPIgPostUpsert) SetDescription

func (u *HPIgPostUpsert) SetDescription(v string) *HPIgPostUpsert

SetDescription sets the "description" field.

func (*HPIgPostUpsert) SetErrorCount

func (u *HPIgPostUpsert) SetErrorCount(v int) *HPIgPostUpsert

SetErrorCount sets the "error_count" field.

func (*HPIgPostUpsert) SetLastErrorMessage

func (u *HPIgPostUpsert) SetLastErrorMessage(v string) *HPIgPostUpsert

SetLastErrorMessage sets the "last_error_message" field.

func (*HPIgPostUpsert) SetLikes

func (u *HPIgPostUpsert) SetLikes(v int) *HPIgPostUpsert

SetLikes sets the "likes" field.

func (*HPIgPostUpsert) SetManuallyModified

func (u *HPIgPostUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPIgPostUpsert

SetManuallyModified sets the "manually_modified" field.

func (*HPIgPostUpsert) SetMedia

func (u *HPIgPostUpsert) SetMedia(v []jsonfields.Media) *HPIgPostUpsert

SetMedia sets the "media" field.

func (*HPIgPostUpsert) SetOwnerArtistID

func (u *HPIgPostUpsert) SetOwnerArtistID(v int) *HPIgPostUpsert

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPIgPostUpsert) SetOwnerMemberID

func (u *HPIgPostUpsert) SetOwnerMemberID(v int) *HPIgPostUpsert

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPIgPostUpsert) SetPostAt

func (u *HPIgPostUpsert) SetPostAt(v time.Time) *HPIgPostUpsert

SetPostAt sets the "post_at" field.

func (*HPIgPostUpsert) SetRecrawlArgs

func (u *HPIgPostUpsert) SetRecrawlArgs(v *jsonfields.HPIgCrawlArgs) *HPIgPostUpsert

SetRecrawlArgs sets the "recrawl_args" field.

func (*HPIgPostUpsert) SetRecrawlRequired

func (u *HPIgPostUpsert) SetRecrawlRequired(v bool) *HPIgPostUpsert

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPIgPostUpsert) SetShortcode

func (u *HPIgPostUpsert) SetShortcode(v string) *HPIgPostUpsert

SetShortcode sets the "shortcode" field.

func (*HPIgPostUpsert) SetUpdatedAt

func (u *HPIgPostUpsert) SetUpdatedAt(v time.Time) *HPIgPostUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPIgPostUpsert) UpdateComments

func (u *HPIgPostUpsert) UpdateComments() *HPIgPostUpsert

UpdateComments sets the "comments" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateCrawledAt

func (u *HPIgPostUpsert) UpdateCrawledAt() *HPIgPostUpsert

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateDescription

func (u *HPIgPostUpsert) UpdateDescription() *HPIgPostUpsert

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateErrorCount

func (u *HPIgPostUpsert) UpdateErrorCount() *HPIgPostUpsert

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateLastErrorMessage

func (u *HPIgPostUpsert) UpdateLastErrorMessage() *HPIgPostUpsert

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateLikes

func (u *HPIgPostUpsert) UpdateLikes() *HPIgPostUpsert

UpdateLikes sets the "likes" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateManuallyModified

func (u *HPIgPostUpsert) UpdateManuallyModified() *HPIgPostUpsert

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateMedia

func (u *HPIgPostUpsert) UpdateMedia() *HPIgPostUpsert

UpdateMedia sets the "media" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateOwnerArtistID

func (u *HPIgPostUpsert) UpdateOwnerArtistID() *HPIgPostUpsert

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateOwnerMemberID

func (u *HPIgPostUpsert) UpdateOwnerMemberID() *HPIgPostUpsert

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdatePostAt

func (u *HPIgPostUpsert) UpdatePostAt() *HPIgPostUpsert

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateRecrawlArgs

func (u *HPIgPostUpsert) UpdateRecrawlArgs() *HPIgPostUpsert

UpdateRecrawlArgs sets the "recrawl_args" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateRecrawlRequired

func (u *HPIgPostUpsert) UpdateRecrawlRequired() *HPIgPostUpsert

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateShortcode

func (u *HPIgPostUpsert) UpdateShortcode() *HPIgPostUpsert

UpdateShortcode sets the "shortcode" field to the value that was provided on create.

func (*HPIgPostUpsert) UpdateUpdatedAt

func (u *HPIgPostUpsert) UpdateUpdatedAt() *HPIgPostUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPIgPostUpsertBulk

HPIgPostUpsertBulk is the builder for "upsert"-ing a bulk of HPIgPost nodes.

type HPIgPostUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPIgPostUpsertBulk) AddComments

func (u *HPIgPostUpsertBulk) AddComments(v int) *HPIgPostUpsertBulk

AddComments adds v to the "comments" field.

func (*HPIgPostUpsertBulk) AddErrorCount

func (u *HPIgPostUpsertBulk) AddErrorCount(v int) *HPIgPostUpsertBulk

AddErrorCount adds v to the "error_count" field.

func (*HPIgPostUpsertBulk) AddLikes

func (u *HPIgPostUpsertBulk) AddLikes(v int) *HPIgPostUpsertBulk

AddLikes adds v to the "likes" field.

func (*HPIgPostUpsertBulk) ClearCrawledAt

func (u *HPIgPostUpsertBulk) ClearCrawledAt() *HPIgPostUpsertBulk

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPIgPostUpsertBulk) ClearLastErrorMessage

func (u *HPIgPostUpsertBulk) ClearLastErrorMessage() *HPIgPostUpsertBulk

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPIgPostUpsertBulk) ClearManuallyModified

func (u *HPIgPostUpsertBulk) ClearManuallyModified() *HPIgPostUpsertBulk

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPIgPostUpsertBulk) ClearOwnerArtistID

func (u *HPIgPostUpsertBulk) ClearOwnerArtistID() *HPIgPostUpsertBulk

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPIgPostUpsertBulk) ClearOwnerMemberID

func (u *HPIgPostUpsertBulk) ClearOwnerMemberID() *HPIgPostUpsertBulk

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPIgPostUpsertBulk) ClearRecrawlArgs

func (u *HPIgPostUpsertBulk) ClearRecrawlArgs() *HPIgPostUpsertBulk

ClearRecrawlArgs clears the value of the "recrawl_args" field.

func (*HPIgPostUpsertBulk) ClearRecrawlRequired

func (u *HPIgPostUpsertBulk) ClearRecrawlRequired() *HPIgPostUpsertBulk

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPIgPostUpsertBulk) ClearUpdatedAt

func (u *HPIgPostUpsertBulk) ClearUpdatedAt() *HPIgPostUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPIgPostUpsertBulk) DoNothing

func (u *HPIgPostUpsertBulk) DoNothing() *HPIgPostUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPIgPostUpsertBulk) Exec

func (u *HPIgPostUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPIgPostUpsertBulk) ExecX

func (u *HPIgPostUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostUpsertBulk) Ignore

func (u *HPIgPostUpsertBulk) Ignore() *HPIgPostUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPIgPost.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPIgPostUpsertBulk) SetComments

func (u *HPIgPostUpsertBulk) SetComments(v int) *HPIgPostUpsertBulk

SetComments sets the "comments" field.

func (*HPIgPostUpsertBulk) SetCrawledAt

func (u *HPIgPostUpsertBulk) SetCrawledAt(v time.Time) *HPIgPostUpsertBulk

SetCrawledAt sets the "crawled_at" field.

func (*HPIgPostUpsertBulk) SetDescription

func (u *HPIgPostUpsertBulk) SetDescription(v string) *HPIgPostUpsertBulk

SetDescription sets the "description" field.

func (*HPIgPostUpsertBulk) SetErrorCount

func (u *HPIgPostUpsertBulk) SetErrorCount(v int) *HPIgPostUpsertBulk

SetErrorCount sets the "error_count" field.

func (*HPIgPostUpsertBulk) SetLastErrorMessage

func (u *HPIgPostUpsertBulk) SetLastErrorMessage(v string) *HPIgPostUpsertBulk

SetLastErrorMessage sets the "last_error_message" field.

func (*HPIgPostUpsertBulk) SetLikes

func (u *HPIgPostUpsertBulk) SetLikes(v int) *HPIgPostUpsertBulk

SetLikes sets the "likes" field.

func (*HPIgPostUpsertBulk) SetManuallyModified

func (u *HPIgPostUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPIgPostUpsertBulk

SetManuallyModified sets the "manually_modified" field.

func (*HPIgPostUpsertBulk) SetMedia

func (u *HPIgPostUpsertBulk) SetMedia(v []jsonfields.Media) *HPIgPostUpsertBulk

SetMedia sets the "media" field.

func (*HPIgPostUpsertBulk) SetOwnerArtistID

func (u *HPIgPostUpsertBulk) SetOwnerArtistID(v int) *HPIgPostUpsertBulk

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPIgPostUpsertBulk) SetOwnerMemberID

func (u *HPIgPostUpsertBulk) SetOwnerMemberID(v int) *HPIgPostUpsertBulk

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPIgPostUpsertBulk) SetPostAt

func (u *HPIgPostUpsertBulk) SetPostAt(v time.Time) *HPIgPostUpsertBulk

SetPostAt sets the "post_at" field.

func (*HPIgPostUpsertBulk) SetRecrawlArgs

func (u *HPIgPostUpsertBulk) SetRecrawlArgs(v *jsonfields.HPIgCrawlArgs) *HPIgPostUpsertBulk

SetRecrawlArgs sets the "recrawl_args" field.

func (*HPIgPostUpsertBulk) SetRecrawlRequired

func (u *HPIgPostUpsertBulk) SetRecrawlRequired(v bool) *HPIgPostUpsertBulk

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPIgPostUpsertBulk) SetShortcode

func (u *HPIgPostUpsertBulk) SetShortcode(v string) *HPIgPostUpsertBulk

SetShortcode sets the "shortcode" field.

func (*HPIgPostUpsertBulk) SetUpdatedAt

func (u *HPIgPostUpsertBulk) SetUpdatedAt(v time.Time) *HPIgPostUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPIgPostUpsertBulk) Update

func (u *HPIgPostUpsertBulk) Update(set func(*HPIgPostUpsert)) *HPIgPostUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPIgPostCreateBulk.OnConflict documentation for more info.

func (*HPIgPostUpsertBulk) UpdateComments

func (u *HPIgPostUpsertBulk) UpdateComments() *HPIgPostUpsertBulk

UpdateComments sets the "comments" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateCrawledAt

func (u *HPIgPostUpsertBulk) UpdateCrawledAt() *HPIgPostUpsertBulk

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateDescription

func (u *HPIgPostUpsertBulk) UpdateDescription() *HPIgPostUpsertBulk

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateErrorCount

func (u *HPIgPostUpsertBulk) UpdateErrorCount() *HPIgPostUpsertBulk

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateLastErrorMessage

func (u *HPIgPostUpsertBulk) UpdateLastErrorMessage() *HPIgPostUpsertBulk

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateLikes

func (u *HPIgPostUpsertBulk) UpdateLikes() *HPIgPostUpsertBulk

UpdateLikes sets the "likes" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateManuallyModified

func (u *HPIgPostUpsertBulk) UpdateManuallyModified() *HPIgPostUpsertBulk

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateMedia

func (u *HPIgPostUpsertBulk) UpdateMedia() *HPIgPostUpsertBulk

UpdateMedia sets the "media" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateNewValues

func (u *HPIgPostUpsertBulk) UpdateNewValues() *HPIgPostUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPIgPost.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPIgPostUpsertBulk) UpdateOwnerArtistID

func (u *HPIgPostUpsertBulk) UpdateOwnerArtistID() *HPIgPostUpsertBulk

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateOwnerMemberID

func (u *HPIgPostUpsertBulk) UpdateOwnerMemberID() *HPIgPostUpsertBulk

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdatePostAt

func (u *HPIgPostUpsertBulk) UpdatePostAt() *HPIgPostUpsertBulk

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateRecrawlArgs

func (u *HPIgPostUpsertBulk) UpdateRecrawlArgs() *HPIgPostUpsertBulk

UpdateRecrawlArgs sets the "recrawl_args" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateRecrawlRequired

func (u *HPIgPostUpsertBulk) UpdateRecrawlRequired() *HPIgPostUpsertBulk

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateShortcode

func (u *HPIgPostUpsertBulk) UpdateShortcode() *HPIgPostUpsertBulk

UpdateShortcode sets the "shortcode" field to the value that was provided on create.

func (*HPIgPostUpsertBulk) UpdateUpdatedAt

func (u *HPIgPostUpsertBulk) UpdateUpdatedAt() *HPIgPostUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPIgPostUpsertOne

HPIgPostUpsertOne is the builder for "upsert"-ing

one HPIgPost node.
type HPIgPostUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPIgPostUpsertOne) AddComments

func (u *HPIgPostUpsertOne) AddComments(v int) *HPIgPostUpsertOne

AddComments adds v to the "comments" field.

func (*HPIgPostUpsertOne) AddErrorCount

func (u *HPIgPostUpsertOne) AddErrorCount(v int) *HPIgPostUpsertOne

AddErrorCount adds v to the "error_count" field.

func (*HPIgPostUpsertOne) AddLikes

func (u *HPIgPostUpsertOne) AddLikes(v int) *HPIgPostUpsertOne

AddLikes adds v to the "likes" field.

func (*HPIgPostUpsertOne) ClearCrawledAt

func (u *HPIgPostUpsertOne) ClearCrawledAt() *HPIgPostUpsertOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPIgPostUpsertOne) ClearLastErrorMessage

func (u *HPIgPostUpsertOne) ClearLastErrorMessage() *HPIgPostUpsertOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPIgPostUpsertOne) ClearManuallyModified

func (u *HPIgPostUpsertOne) ClearManuallyModified() *HPIgPostUpsertOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPIgPostUpsertOne) ClearOwnerArtistID

func (u *HPIgPostUpsertOne) ClearOwnerArtistID() *HPIgPostUpsertOne

ClearOwnerArtistID clears the value of the "owner_artist_id" field.

func (*HPIgPostUpsertOne) ClearOwnerMemberID

func (u *HPIgPostUpsertOne) ClearOwnerMemberID() *HPIgPostUpsertOne

ClearOwnerMemberID clears the value of the "owner_member_id" field.

func (*HPIgPostUpsertOne) ClearRecrawlArgs

func (u *HPIgPostUpsertOne) ClearRecrawlArgs() *HPIgPostUpsertOne

ClearRecrawlArgs clears the value of the "recrawl_args" field.

func (*HPIgPostUpsertOne) ClearRecrawlRequired

func (u *HPIgPostUpsertOne) ClearRecrawlRequired() *HPIgPostUpsertOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPIgPostUpsertOne) ClearUpdatedAt

func (u *HPIgPostUpsertOne) ClearUpdatedAt() *HPIgPostUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPIgPostUpsertOne) DoNothing

func (u *HPIgPostUpsertOne) DoNothing() *HPIgPostUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPIgPostUpsertOne) Exec

func (u *HPIgPostUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPIgPostUpsertOne) ExecX

func (u *HPIgPostUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPIgPostUpsertOne) ID

func (u *HPIgPostUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPIgPostUpsertOne) IDX

func (u *HPIgPostUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPIgPostUpsertOne) Ignore

func (u *HPIgPostUpsertOne) Ignore() *HPIgPostUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPIgPost.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPIgPostUpsertOne) SetComments

func (u *HPIgPostUpsertOne) SetComments(v int) *HPIgPostUpsertOne

SetComments sets the "comments" field.

func (*HPIgPostUpsertOne) SetCrawledAt

func (u *HPIgPostUpsertOne) SetCrawledAt(v time.Time) *HPIgPostUpsertOne

SetCrawledAt sets the "crawled_at" field.

func (*HPIgPostUpsertOne) SetDescription

func (u *HPIgPostUpsertOne) SetDescription(v string) *HPIgPostUpsertOne

SetDescription sets the "description" field.

func (*HPIgPostUpsertOne) SetErrorCount

func (u *HPIgPostUpsertOne) SetErrorCount(v int) *HPIgPostUpsertOne

SetErrorCount sets the "error_count" field.

func (*HPIgPostUpsertOne) SetLastErrorMessage

func (u *HPIgPostUpsertOne) SetLastErrorMessage(v string) *HPIgPostUpsertOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPIgPostUpsertOne) SetLikes

func (u *HPIgPostUpsertOne) SetLikes(v int) *HPIgPostUpsertOne

SetLikes sets the "likes" field.

func (*HPIgPostUpsertOne) SetManuallyModified

func (u *HPIgPostUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPIgPostUpsertOne

SetManuallyModified sets the "manually_modified" field.

func (*HPIgPostUpsertOne) SetMedia

func (u *HPIgPostUpsertOne) SetMedia(v []jsonfields.Media) *HPIgPostUpsertOne

SetMedia sets the "media" field.

func (*HPIgPostUpsertOne) SetOwnerArtistID

func (u *HPIgPostUpsertOne) SetOwnerArtistID(v int) *HPIgPostUpsertOne

SetOwnerArtistID sets the "owner_artist_id" field.

func (*HPIgPostUpsertOne) SetOwnerMemberID

func (u *HPIgPostUpsertOne) SetOwnerMemberID(v int) *HPIgPostUpsertOne

SetOwnerMemberID sets the "owner_member_id" field.

func (*HPIgPostUpsertOne) SetPostAt

func (u *HPIgPostUpsertOne) SetPostAt(v time.Time) *HPIgPostUpsertOne

SetPostAt sets the "post_at" field.

func (*HPIgPostUpsertOne) SetRecrawlArgs

func (u *HPIgPostUpsertOne) SetRecrawlArgs(v *jsonfields.HPIgCrawlArgs) *HPIgPostUpsertOne

SetRecrawlArgs sets the "recrawl_args" field.

func (*HPIgPostUpsertOne) SetRecrawlRequired

func (u *HPIgPostUpsertOne) SetRecrawlRequired(v bool) *HPIgPostUpsertOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPIgPostUpsertOne) SetShortcode

func (u *HPIgPostUpsertOne) SetShortcode(v string) *HPIgPostUpsertOne

SetShortcode sets the "shortcode" field.

func (*HPIgPostUpsertOne) SetUpdatedAt

func (u *HPIgPostUpsertOne) SetUpdatedAt(v time.Time) *HPIgPostUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPIgPostUpsertOne) Update

func (u *HPIgPostUpsertOne) Update(set func(*HPIgPostUpsert)) *HPIgPostUpsertOne

Update allows overriding fields `UPDATE` values. See the HPIgPostCreate.OnConflict documentation for more info.

func (*HPIgPostUpsertOne) UpdateComments

func (u *HPIgPostUpsertOne) UpdateComments() *HPIgPostUpsertOne

UpdateComments sets the "comments" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateCrawledAt

func (u *HPIgPostUpsertOne) UpdateCrawledAt() *HPIgPostUpsertOne

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateDescription

func (u *HPIgPostUpsertOne) UpdateDescription() *HPIgPostUpsertOne

UpdateDescription sets the "description" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateErrorCount

func (u *HPIgPostUpsertOne) UpdateErrorCount() *HPIgPostUpsertOne

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateLastErrorMessage

func (u *HPIgPostUpsertOne) UpdateLastErrorMessage() *HPIgPostUpsertOne

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateLikes

func (u *HPIgPostUpsertOne) UpdateLikes() *HPIgPostUpsertOne

UpdateLikes sets the "likes" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateManuallyModified

func (u *HPIgPostUpsertOne) UpdateManuallyModified() *HPIgPostUpsertOne

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateMedia

func (u *HPIgPostUpsertOne) UpdateMedia() *HPIgPostUpsertOne

UpdateMedia sets the "media" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateNewValues

func (u *HPIgPostUpsertOne) UpdateNewValues() *HPIgPostUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPIgPost.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPIgPostUpsertOne) UpdateOwnerArtistID

func (u *HPIgPostUpsertOne) UpdateOwnerArtistID() *HPIgPostUpsertOne

UpdateOwnerArtistID sets the "owner_artist_id" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateOwnerMemberID

func (u *HPIgPostUpsertOne) UpdateOwnerMemberID() *HPIgPostUpsertOne

UpdateOwnerMemberID sets the "owner_member_id" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdatePostAt

func (u *HPIgPostUpsertOne) UpdatePostAt() *HPIgPostUpsertOne

UpdatePostAt sets the "post_at" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateRecrawlArgs

func (u *HPIgPostUpsertOne) UpdateRecrawlArgs() *HPIgPostUpsertOne

UpdateRecrawlArgs sets the "recrawl_args" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateRecrawlRequired

func (u *HPIgPostUpsertOne) UpdateRecrawlRequired() *HPIgPostUpsertOne

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateShortcode

func (u *HPIgPostUpsertOne) UpdateShortcode() *HPIgPostUpsertOne

UpdateShortcode sets the "shortcode" field to the value that was provided on create.

func (*HPIgPostUpsertOne) UpdateUpdatedAt

func (u *HPIgPostUpsertOne) UpdateUpdatedAt() *HPIgPostUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPIgPosts

HPIgPosts is a parsable slice of HPIgPost.

type HPIgPosts []*HPIgPost

type HPMember

HPMember is the model entity for the HPMember schema.

type HPMember struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CrawledAt holds the value of the "crawled_at" field.
    CrawledAt *time.Time `json:"crawled_at,omitempty"`
    // ErrorCount holds the value of the "error_count" field.
    ErrorCount int `json:"error_count,omitempty"`
    // ManuallyModified holds the value of the "manually_modified" field.
    ManuallyModified *jsonfields.ManuallyModified `json:"manually_modified,omitempty"`
    // LastErrorMessage holds the value of the "last_error_message" field.
    LastErrorMessage *string `json:"last_error_message,omitempty"`
    // RecrawlRequired holds the value of the "recrawl_required" field.
    RecrawlRequired bool `json:"recrawl_required,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // Key holds the value of the "key" field.
    Key string `json:"key,omitempty"`
    // ArtistKey holds the value of the "artist_key" field.
    ArtistKey string `json:"artist_key,omitempty"`
    // Name holds the value of the "name" field.
    Name string `json:"name,omitempty"`
    // NameKana holds the value of the "name_kana" field.
    NameKana string `json:"name_kana,omitempty"`
    // ThumbnailURL holds the value of the "thumbnail_url" field.
    ThumbnailURL string `json:"thumbnail_url,omitempty"`
    // DateOfBirth holds the value of the "date_of_birth" field.
    DateOfBirth time.Time `json:"date_of_birth,omitempty"`
    // BloodType holds the value of the "blood_type" field.
    BloodType string `json:"blood_type,omitempty"`
    // Hometown holds the value of the "hometown" field.
    Hometown string `json:"hometown,omitempty"`
    // JoinAt holds the value of the "join_at" field.
    JoinAt *time.Time `json:"join_at,omitempty"`
    // GraduateAt holds the value of the "graduate_at" field.
    GraduateAt *time.Time `json:"graduate_at,omitempty"`
    // ArtistID holds the value of the "artist_id" field.
    ArtistID *int `json:"artist_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPMemberQuery when eager-loading is set.
    Edges HPMemberEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPMember) Artist

func (hm *HPMember) Artist(ctx context.Context) (*HPArtist, error)

func (*HPMember) IsNode

func (n *HPMember) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPMember) NamedAssets

func (hm *HPMember) NamedAssets(name string) ([]*HPAsset, error)

NamedAssets returns the Assets named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedFollowedBy

func (hm *HPMember) NamedFollowedBy(name string) ([]*HPFollow, error)

NamedFollowedBy returns the FollowedBy named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedOwningAmebloPosts

func (hm *HPMember) NamedOwningAmebloPosts(name string) ([]*HPAmebloPost, error)

NamedOwningAmebloPosts returns the OwningAmebloPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedOwningFeed

func (hm *HPMember) NamedOwningFeed(name string) ([]*HPFeedItem, error)

NamedOwningFeed returns the OwningFeed named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedOwningIgPosts

func (hm *HPMember) NamedOwningIgPosts(name string) ([]*HPIgPost, error)

NamedOwningIgPosts returns the OwningIgPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedTaggedAmebloPosts

func (hm *HPMember) NamedTaggedAmebloPosts(name string) ([]*HPAmebloPost, error)

NamedTaggedAmebloPosts returns the TaggedAmebloPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedTaggedElineupMallItems

func (hm *HPMember) NamedTaggedElineupMallItems(name string) ([]*HPElineupMallItem, error)

NamedTaggedElineupMallItems returns the TaggedElineupMallItems named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedTaggedFeed

func (hm *HPMember) NamedTaggedFeed(name string) ([]*HPFeedItem, error)

NamedTaggedFeed returns the TaggedFeed named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) NamedTaggedIgPosts

func (hm *HPMember) NamedTaggedIgPosts(name string) ([]*HPIgPost, error)

NamedTaggedIgPosts returns the TaggedIgPosts named value or an error if the edge was not loaded in eager-loading with this name.

func (*HPMember) QueryArtist

func (hm *HPMember) QueryArtist() *HPArtistQuery

QueryArtist queries the "artist" edge of the HPMember entity.

func (*HPMember) QueryAssets

func (hm *HPMember) QueryAssets() *HPAssetQuery

QueryAssets queries the "assets" edge of the HPMember entity.

func (*HPMember) QueryFollowedBy

func (hm *HPMember) QueryFollowedBy() *HPFollowQuery

QueryFollowedBy queries the "followed_by" edge of the HPMember entity.

func (*HPMember) QueryOwningAmebloPosts

func (hm *HPMember) QueryOwningAmebloPosts() *HPAmebloPostQuery

QueryOwningAmebloPosts queries the "owning_ameblo_posts" edge of the HPMember entity.

func (*HPMember) QueryOwningFeed

func (hm *HPMember) QueryOwningFeed() *HPFeedItemQuery

QueryOwningFeed queries the "owning_feed" edge of the HPMember entity.

func (*HPMember) QueryOwningIgPosts

func (hm *HPMember) QueryOwningIgPosts() *HPIgPostQuery

QueryOwningIgPosts queries the "owning_ig_posts" edge of the HPMember entity.

func (*HPMember) QueryTaggedAmebloPosts

func (hm *HPMember) QueryTaggedAmebloPosts() *HPAmebloPostQuery

QueryTaggedAmebloPosts queries the "tagged_ameblo_posts" edge of the HPMember entity.

func (*HPMember) QueryTaggedElineupMallItems

func (hm *HPMember) QueryTaggedElineupMallItems() *HPElineupMallItemQuery

QueryTaggedElineupMallItems queries the "tagged_elineup_mall_items" edge of the HPMember entity.

func (*HPMember) QueryTaggedFeed

func (hm *HPMember) QueryTaggedFeed() *HPFeedItemQuery

QueryTaggedFeed queries the "tagged_feed" edge of the HPMember entity.

func (*HPMember) QueryTaggedIgPosts

func (hm *HPMember) QueryTaggedIgPosts() *HPIgPostQuery

QueryTaggedIgPosts queries the "tagged_ig_posts" edge of the HPMember entity.

func (*HPMember) String

func (hm *HPMember) String() string

String implements the fmt.Stringer.

func (*HPMember) ToEdge

func (hm *HPMember) ToEdge(order *HPMemberOrder) *HPMemberEdge

ToEdge converts HPMember into HPMemberEdge.

func (*HPMember) Unwrap

func (hm *HPMember) Unwrap() *HPMember

Unwrap unwraps the HPMember entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPMember) Update

func (hm *HPMember) Update() *HPMemberUpdateOne

Update returns a builder for updating this HPMember. Note that you need to call HPMember.Unwrap() before calling this method if this HPMember was returned from a transaction, and the transaction was committed or rolled back.

func (*HPMember) Value

func (hm *HPMember) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPMember. This includes values selected through modifiers, order, etc.

type HPMemberClient

HPMemberClient is a client for the HPMember schema.

type HPMemberClient struct {
    // contains filtered or unexported fields
}

func NewHPMemberClient

func NewHPMemberClient(c config) *HPMemberClient

NewHPMemberClient returns a client for the HPMember from the given config.

func (*HPMemberClient) Create

func (c *HPMemberClient) Create() *HPMemberCreate

Create returns a builder for creating a HPMember entity.

func (*HPMemberClient) CreateBulk

func (c *HPMemberClient) CreateBulk(builders ...*HPMemberCreate) *HPMemberCreateBulk

CreateBulk returns a builder for creating a bulk of HPMember entities.

func (*HPMemberClient) Delete

func (c *HPMemberClient) Delete() *HPMemberDelete

Delete returns a delete builder for HPMember.

func (*HPMemberClient) DeleteOne

func (c *HPMemberClient) DeleteOne(hm *HPMember) *HPMemberDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPMemberClient) DeleteOneID

func (c *HPMemberClient) DeleteOneID(id int) *HPMemberDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPMemberClient) Get

func (c *HPMemberClient) Get(ctx context.Context, id int) (*HPMember, error)

Get returns a HPMember entity by its id.

func (*HPMemberClient) GetX

func (c *HPMemberClient) GetX(ctx context.Context, id int) *HPMember

GetX is like Get, but panics if an error occurs.

func (*HPMemberClient) Hooks

func (c *HPMemberClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPMemberClient) Intercept

func (c *HPMemberClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpmember.Intercept(f(g(h())))`.

func (*HPMemberClient) Interceptors

func (c *HPMemberClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPMemberClient) Query

func (c *HPMemberClient) Query() *HPMemberQuery

Query returns a query builder for HPMember.

func (*HPMemberClient) QueryArtist

func (c *HPMemberClient) QueryArtist(hm *HPMember) *HPArtistQuery

QueryArtist queries the artist edge of a HPMember.

func (*HPMemberClient) QueryAssets

func (c *HPMemberClient) QueryAssets(hm *HPMember) *HPAssetQuery

QueryAssets queries the assets edge of a HPMember.

func (*HPMemberClient) QueryFollowedBy

func (c *HPMemberClient) QueryFollowedBy(hm *HPMember) *HPFollowQuery

QueryFollowedBy queries the followed_by edge of a HPMember.

func (*HPMemberClient) QueryOwningAmebloPosts

func (c *HPMemberClient) QueryOwningAmebloPosts(hm *HPMember) *HPAmebloPostQuery

QueryOwningAmebloPosts queries the owning_ameblo_posts edge of a HPMember.

func (*HPMemberClient) QueryOwningFeed

func (c *HPMemberClient) QueryOwningFeed(hm *HPMember) *HPFeedItemQuery

QueryOwningFeed queries the owning_feed edge of a HPMember.

func (*HPMemberClient) QueryOwningIgPosts

func (c *HPMemberClient) QueryOwningIgPosts(hm *HPMember) *HPIgPostQuery

QueryOwningIgPosts queries the owning_ig_posts edge of a HPMember.

func (*HPMemberClient) QueryTaggedAmebloPosts

func (c *HPMemberClient) QueryTaggedAmebloPosts(hm *HPMember) *HPAmebloPostQuery

QueryTaggedAmebloPosts queries the tagged_ameblo_posts edge of a HPMember.

func (*HPMemberClient) QueryTaggedElineupMallItems

func (c *HPMemberClient) QueryTaggedElineupMallItems(hm *HPMember) *HPElineupMallItemQuery

QueryTaggedElineupMallItems queries the tagged_elineup_mall_items edge of a HPMember.

func (*HPMemberClient) QueryTaggedFeed

func (c *HPMemberClient) QueryTaggedFeed(hm *HPMember) *HPFeedItemQuery

QueryTaggedFeed queries the tagged_feed edge of a HPMember.

func (*HPMemberClient) QueryTaggedIgPosts

func (c *HPMemberClient) QueryTaggedIgPosts(hm *HPMember) *HPIgPostQuery

QueryTaggedIgPosts queries the tagged_ig_posts edge of a HPMember.

func (*HPMemberClient) Update

func (c *HPMemberClient) Update() *HPMemberUpdate

Update returns an update builder for HPMember.

func (*HPMemberClient) UpdateOne

func (c *HPMemberClient) UpdateOne(hm *HPMember) *HPMemberUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPMemberClient) UpdateOneID

func (c *HPMemberClient) UpdateOneID(id int) *HPMemberUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPMemberClient) Use

func (c *HPMemberClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpmember.Hooks(f(g(h())))`.

type HPMemberConnection

HPMemberConnection is the connection containing edges to HPMember.

type HPMemberConnection struct {
    Edges      []*HPMemberEdge `json:"edges"`
    PageInfo   PageInfo        `json:"pageInfo"`
    TotalCount int             `json:"totalCount"`
}

type HPMemberCreate

HPMemberCreate is the builder for creating a HPMember entity.

type HPMemberCreate struct {
    // contains filtered or unexported fields
}

func (*HPMemberCreate) AddAssetIDs

func (hmc *HPMemberCreate) AddAssetIDs(ids ...int) *HPMemberCreate

AddAssetIDs adds the "assets" edge to the HPAsset entity by IDs.

func (*HPMemberCreate) AddAssets

func (hmc *HPMemberCreate) AddAssets(h ...*HPAsset) *HPMemberCreate

AddAssets adds the "assets" edges to the HPAsset entity.

func (*HPMemberCreate) AddFollowedBy

func (hmc *HPMemberCreate) AddFollowedBy(h ...*HPFollow) *HPMemberCreate

AddFollowedBy adds the "followed_by" edges to the HPFollow entity.

func (*HPMemberCreate) AddFollowedByIDs

func (hmc *HPMemberCreate) AddFollowedByIDs(ids ...int) *HPMemberCreate

AddFollowedByIDs adds the "followed_by" edge to the HPFollow entity by IDs.

func (*HPMemberCreate) AddOwningAmebloPostIDs

func (hmc *HPMemberCreate) AddOwningAmebloPostIDs(ids ...int) *HPMemberCreate

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberCreate) AddOwningAmebloPosts

func (hmc *HPMemberCreate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberCreate

AddOwningAmebloPosts adds the "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberCreate) AddOwningFeed

func (hmc *HPMemberCreate) AddOwningFeed(h ...*HPFeedItem) *HPMemberCreate

AddOwningFeed adds the "owning_feed" edges to the HPFeedItem entity.

func (*HPMemberCreate) AddOwningFeedIDs

func (hmc *HPMemberCreate) AddOwningFeedIDs(ids ...int) *HPMemberCreate

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberCreate) AddOwningIgPostIDs

func (hmc *HPMemberCreate) AddOwningIgPostIDs(ids ...int) *HPMemberCreate

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberCreate) AddOwningIgPosts

func (hmc *HPMemberCreate) AddOwningIgPosts(h ...*HPIgPost) *HPMemberCreate

AddOwningIgPosts adds the "owning_ig_posts" edges to the HPIgPost entity.

func (*HPMemberCreate) AddTaggedAmebloPostIDs

func (hmc *HPMemberCreate) AddTaggedAmebloPostIDs(ids ...int) *HPMemberCreate

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberCreate) AddTaggedAmebloPosts

func (hmc *HPMemberCreate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberCreate

AddTaggedAmebloPosts adds the "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberCreate) AddTaggedElineupMallItemIDs

func (hmc *HPMemberCreate) AddTaggedElineupMallItemIDs(ids ...int) *HPMemberCreate

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPMemberCreate) AddTaggedElineupMallItems

func (hmc *HPMemberCreate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberCreate

AddTaggedElineupMallItems adds the "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPMemberCreate) AddTaggedFeed

func (hmc *HPMemberCreate) AddTaggedFeed(h ...*HPFeedItem) *HPMemberCreate

AddTaggedFeed adds the "tagged_feed" edges to the HPFeedItem entity.

func (*HPMemberCreate) AddTaggedFeedIDs

func (hmc *HPMemberCreate) AddTaggedFeedIDs(ids ...int) *HPMemberCreate

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberCreate) AddTaggedIgPostIDs

func (hmc *HPMemberCreate) AddTaggedIgPostIDs(ids ...int) *HPMemberCreate

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberCreate) AddTaggedIgPosts

func (hmc *HPMemberCreate) AddTaggedIgPosts(h ...*HPIgPost) *HPMemberCreate

AddTaggedIgPosts adds the "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPMemberCreate) Exec

func (hmc *HPMemberCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPMemberCreate) ExecX

func (hmc *HPMemberCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberCreate) Mutation

func (hmc *HPMemberCreate) Mutation() *HPMemberMutation

Mutation returns the HPMemberMutation object of the builder.

func (*HPMemberCreate) OnConflict

func (hmc *HPMemberCreate) OnConflict(opts ...sql.ConflictOption) *HPMemberUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPMember.Create().
	SetCrawledAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPMemberUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPMemberCreate) OnConflictColumns

func (hmc *HPMemberCreate) OnConflictColumns(columns ...string) *HPMemberUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPMember.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPMemberCreate) Save

func (hmc *HPMemberCreate) Save(ctx context.Context) (*HPMember, error)

Save creates the HPMember in the database.

func (*HPMemberCreate) SaveX

func (hmc *HPMemberCreate) SaveX(ctx context.Context) *HPMember

SaveX calls Save and panics if Save returns an error.

func (*HPMemberCreate) SetArtist

func (hmc *HPMemberCreate) SetArtist(h *HPArtist) *HPMemberCreate

SetArtist sets the "artist" edge to the HPArtist entity.

func (*HPMemberCreate) SetArtistID

func (hmc *HPMemberCreate) SetArtistID(i int) *HPMemberCreate

SetArtistID sets the "artist_id" field.

func (*HPMemberCreate) SetArtistKey

func (hmc *HPMemberCreate) SetArtistKey(s string) *HPMemberCreate

SetArtistKey sets the "artist_key" field.

func (*HPMemberCreate) SetBloodType

func (hmc *HPMemberCreate) SetBloodType(s string) *HPMemberCreate

SetBloodType sets the "blood_type" field.

func (*HPMemberCreate) SetCrawledAt

func (hmc *HPMemberCreate) SetCrawledAt(t time.Time) *HPMemberCreate

SetCrawledAt sets the "crawled_at" field.

func (*HPMemberCreate) SetCreatedAt

func (hmc *HPMemberCreate) SetCreatedAt(t time.Time) *HPMemberCreate

SetCreatedAt sets the "created_at" field.

func (*HPMemberCreate) SetDateOfBirth

func (hmc *HPMemberCreate) SetDateOfBirth(t time.Time) *HPMemberCreate

SetDateOfBirth sets the "date_of_birth" field.

func (*HPMemberCreate) SetErrorCount

func (hmc *HPMemberCreate) SetErrorCount(i int) *HPMemberCreate

SetErrorCount sets the "error_count" field.

func (*HPMemberCreate) SetGraduateAt

func (hmc *HPMemberCreate) SetGraduateAt(t time.Time) *HPMemberCreate

SetGraduateAt sets the "graduate_at" field.

func (*HPMemberCreate) SetHometown

func (hmc *HPMemberCreate) SetHometown(s string) *HPMemberCreate

SetHometown sets the "hometown" field.

func (*HPMemberCreate) SetJoinAt

func (hmc *HPMemberCreate) SetJoinAt(t time.Time) *HPMemberCreate

SetJoinAt sets the "join_at" field.

func (*HPMemberCreate) SetKey

func (hmc *HPMemberCreate) SetKey(s string) *HPMemberCreate

SetKey sets the "key" field.

func (*HPMemberCreate) SetLastErrorMessage

func (hmc *HPMemberCreate) SetLastErrorMessage(s string) *HPMemberCreate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPMemberCreate) SetManuallyModified

func (hmc *HPMemberCreate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPMemberCreate

SetManuallyModified sets the "manually_modified" field.

func (*HPMemberCreate) SetName

func (hmc *HPMemberCreate) SetName(s string) *HPMemberCreate

SetName sets the "name" field.

func (*HPMemberCreate) SetNameKana

func (hmc *HPMemberCreate) SetNameKana(s string) *HPMemberCreate

SetNameKana sets the "name_kana" field.

func (*HPMemberCreate) SetNillableArtistID

func (hmc *HPMemberCreate) SetNillableArtistID(i *int) *HPMemberCreate

SetNillableArtistID sets the "artist_id" field if the given value is not nil.

func (*HPMemberCreate) SetNillableCrawledAt

func (hmc *HPMemberCreate) SetNillableCrawledAt(t *time.Time) *HPMemberCreate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPMemberCreate) SetNillableCreatedAt

func (hmc *HPMemberCreate) SetNillableCreatedAt(t *time.Time) *HPMemberCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPMemberCreate) SetNillableErrorCount

func (hmc *HPMemberCreate) SetNillableErrorCount(i *int) *HPMemberCreate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPMemberCreate) SetNillableGraduateAt

func (hmc *HPMemberCreate) SetNillableGraduateAt(t *time.Time) *HPMemberCreate

SetNillableGraduateAt sets the "graduate_at" field if the given value is not nil.

func (*HPMemberCreate) SetNillableJoinAt

func (hmc *HPMemberCreate) SetNillableJoinAt(t *time.Time) *HPMemberCreate

SetNillableJoinAt sets the "join_at" field if the given value is not nil.

func (*HPMemberCreate) SetNillableLastErrorMessage

func (hmc *HPMemberCreate) SetNillableLastErrorMessage(s *string) *HPMemberCreate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPMemberCreate) SetNillableRecrawlRequired

func (hmc *HPMemberCreate) SetNillableRecrawlRequired(b *bool) *HPMemberCreate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPMemberCreate) SetNillableUpdatedAt

func (hmc *HPMemberCreate) SetNillableUpdatedAt(t *time.Time) *HPMemberCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPMemberCreate) SetRecrawlRequired

func (hmc *HPMemberCreate) SetRecrawlRequired(b bool) *HPMemberCreate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPMemberCreate) SetThumbnailURL

func (hmc *HPMemberCreate) SetThumbnailURL(s string) *HPMemberCreate

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPMemberCreate) SetUpdatedAt

func (hmc *HPMemberCreate) SetUpdatedAt(t time.Time) *HPMemberCreate

SetUpdatedAt sets the "updated_at" field.

type HPMemberCreateBulk

HPMemberCreateBulk is the builder for creating many HPMember entities in bulk.

type HPMemberCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPMemberCreateBulk) Exec

func (hmcb *HPMemberCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPMemberCreateBulk) ExecX

func (hmcb *HPMemberCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberCreateBulk) OnConflict

func (hmcb *HPMemberCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPMemberUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPMember.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPMemberUpsert) {
		SetCrawledAt(v+v).
	}).
	Exec(ctx)

func (*HPMemberCreateBulk) OnConflictColumns

func (hmcb *HPMemberCreateBulk) OnConflictColumns(columns ...string) *HPMemberUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPMember.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPMemberCreateBulk) Save

func (hmcb *HPMemberCreateBulk) Save(ctx context.Context) ([]*HPMember, error)

Save creates the HPMember entities in the database.

func (*HPMemberCreateBulk) SaveX

func (hmcb *HPMemberCreateBulk) SaveX(ctx context.Context) []*HPMember

SaveX is like Save, but panics if an error occurs.

type HPMemberDelete

HPMemberDelete is the builder for deleting a HPMember entity.

type HPMemberDelete struct {
    // contains filtered or unexported fields
}

func (*HPMemberDelete) Exec

func (hmd *HPMemberDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPMemberDelete) ExecX

func (hmd *HPMemberDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberDelete) Where

func (hmd *HPMemberDelete) Where(ps ...predicate.HPMember) *HPMemberDelete

Where appends a list predicates to the HPMemberDelete builder.

type HPMemberDeleteOne

HPMemberDeleteOne is the builder for deleting a single HPMember entity.

type HPMemberDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPMemberDeleteOne) Exec

func (hmdo *HPMemberDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPMemberDeleteOne) ExecX

func (hmdo *HPMemberDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberDeleteOne) Where

func (hmdo *HPMemberDeleteOne) Where(ps ...predicate.HPMember) *HPMemberDeleteOne

Where appends a list predicates to the HPMemberDelete builder.

type HPMemberEdge

HPMemberEdge is the edge representation of HPMember.

type HPMemberEdge struct {
    Node   *HPMember `json:"node"`
    Cursor Cursor    `json:"cursor"`
}

type HPMemberEdges

HPMemberEdges holds the relations/edges for other nodes in the graph.

type HPMemberEdges struct {
    // Assets holds the value of the assets edge.
    Assets []*HPAsset `json:"assets,omitempty"`
    // Artist holds the value of the artist edge.
    Artist *HPArtist `json:"artist,omitempty"`
    // OwningFeed holds the value of the owning_feed edge.
    OwningFeed []*HPFeedItem `json:"owning_feed,omitempty"`
    // TaggedFeed holds the value of the tagged_feed edge.
    TaggedFeed []*HPFeedItem `json:"tagged_feed,omitempty"`
    // OwningIgPosts holds the value of the owning_ig_posts edge.
    OwningIgPosts []*HPIgPost `json:"owning_ig_posts,omitempty"`
    // TaggedIgPosts holds the value of the tagged_ig_posts edge.
    TaggedIgPosts []*HPIgPost `json:"tagged_ig_posts,omitempty"`
    // OwningAmebloPosts holds the value of the owning_ameblo_posts edge.
    OwningAmebloPosts []*HPAmebloPost `json:"owning_ameblo_posts,omitempty"`
    // TaggedAmebloPosts holds the value of the tagged_ameblo_posts edge.
    TaggedAmebloPosts []*HPAmebloPost `json:"tagged_ameblo_posts,omitempty"`
    // TaggedElineupMallItems holds the value of the tagged_elineup_mall_items edge.
    TaggedElineupMallItems []*HPElineupMallItem `json:"tagged_elineup_mall_items,omitempty"`
    // FollowedBy holds the value of the followed_by edge.
    FollowedBy []*HPFollow `json:"followed_by,omitempty"`
    // contains filtered or unexported fields
}

func (HPMemberEdges) ArtistOrErr

func (e HPMemberEdges) ArtistOrErr() (*HPArtist, error)

ArtistOrErr returns the Artist value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPMemberEdges) AssetsOrErr

func (e HPMemberEdges) AssetsOrErr() ([]*HPAsset, error)

AssetsOrErr returns the Assets value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) FollowedByOrErr

func (e HPMemberEdges) FollowedByOrErr() ([]*HPFollow, error)

FollowedByOrErr returns the FollowedBy value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) OwningAmebloPostsOrErr

func (e HPMemberEdges) OwningAmebloPostsOrErr() ([]*HPAmebloPost, error)

OwningAmebloPostsOrErr returns the OwningAmebloPosts value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) OwningFeedOrErr

func (e HPMemberEdges) OwningFeedOrErr() ([]*HPFeedItem, error)

OwningFeedOrErr returns the OwningFeed value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) OwningIgPostsOrErr

func (e HPMemberEdges) OwningIgPostsOrErr() ([]*HPIgPost, error)

OwningIgPostsOrErr returns the OwningIgPosts value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) TaggedAmebloPostsOrErr

func (e HPMemberEdges) TaggedAmebloPostsOrErr() ([]*HPAmebloPost, error)

TaggedAmebloPostsOrErr returns the TaggedAmebloPosts value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) TaggedElineupMallItemsOrErr

func (e HPMemberEdges) TaggedElineupMallItemsOrErr() ([]*HPElineupMallItem, error)

TaggedElineupMallItemsOrErr returns the TaggedElineupMallItems value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) TaggedFeedOrErr

func (e HPMemberEdges) TaggedFeedOrErr() ([]*HPFeedItem, error)

TaggedFeedOrErr returns the TaggedFeed value or an error if the edge was not loaded in eager-loading.

func (HPMemberEdges) TaggedIgPostsOrErr

func (e HPMemberEdges) TaggedIgPostsOrErr() ([]*HPIgPost, error)

TaggedIgPostsOrErr returns the TaggedIgPosts value or an error if the edge was not loaded in eager-loading.

type HPMemberFilter

HPMemberFilter provides a generic filtering capability at runtime for HPMemberQuery.

type HPMemberFilter struct {
    // contains filtered or unexported fields
}

func (*HPMemberFilter) Where

func (f *HPMemberFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPMemberFilter) WhereArtistID

func (f *HPMemberFilter) WhereArtistID(p entql.IntP)

WhereArtistID applies the entql int predicate on the artist_id field.

func (*HPMemberFilter) WhereArtistKey

func (f *HPMemberFilter) WhereArtistKey(p entql.StringP)

WhereArtistKey applies the entql string predicate on the artist_key field.

func (*HPMemberFilter) WhereBloodType

func (f *HPMemberFilter) WhereBloodType(p entql.StringP)

WhereBloodType applies the entql string predicate on the blood_type field.

func (*HPMemberFilter) WhereCrawledAt

func (f *HPMemberFilter) WhereCrawledAt(p entql.TimeP)

WhereCrawledAt applies the entql time.Time predicate on the crawled_at field.

func (*HPMemberFilter) WhereCreatedAt

func (f *HPMemberFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPMemberFilter) WhereDateOfBirth

func (f *HPMemberFilter) WhereDateOfBirth(p entql.TimeP)

WhereDateOfBirth applies the entql time.Time predicate on the date_of_birth field.

func (*HPMemberFilter) WhereErrorCount

func (f *HPMemberFilter) WhereErrorCount(p entql.IntP)

WhereErrorCount applies the entql int predicate on the error_count field.

func (*HPMemberFilter) WhereGraduateAt

func (f *HPMemberFilter) WhereGraduateAt(p entql.TimeP)

WhereGraduateAt applies the entql time.Time predicate on the graduate_at field.

func (*HPMemberFilter) WhereHasArtist

func (f *HPMemberFilter) WhereHasArtist()

WhereHasArtist applies a predicate to check if query has an edge artist.

func (*HPMemberFilter) WhereHasArtistWith

func (f *HPMemberFilter) WhereHasArtistWith(preds ...predicate.HPArtist)

WhereHasArtistWith applies a predicate to check if query has an edge artist with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasAssets

func (f *HPMemberFilter) WhereHasAssets()

WhereHasAssets applies a predicate to check if query has an edge assets.

func (*HPMemberFilter) WhereHasAssetsWith

func (f *HPMemberFilter) WhereHasAssetsWith(preds ...predicate.HPAsset)

WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasFollowedBy

func (f *HPMemberFilter) WhereHasFollowedBy()

WhereHasFollowedBy applies a predicate to check if query has an edge followed_by.

func (*HPMemberFilter) WhereHasFollowedByWith

func (f *HPMemberFilter) WhereHasFollowedByWith(preds ...predicate.HPFollow)

WhereHasFollowedByWith applies a predicate to check if query has an edge followed_by with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasOwningAmebloPosts

func (f *HPMemberFilter) WhereHasOwningAmebloPosts()

WhereHasOwningAmebloPosts applies a predicate to check if query has an edge owning_ameblo_posts.

func (*HPMemberFilter) WhereHasOwningAmebloPostsWith

func (f *HPMemberFilter) WhereHasOwningAmebloPostsWith(preds ...predicate.HPAmebloPost)

WhereHasOwningAmebloPostsWith applies a predicate to check if query has an edge owning_ameblo_posts with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasOwningFeed

func (f *HPMemberFilter) WhereHasOwningFeed()

WhereHasOwningFeed applies a predicate to check if query has an edge owning_feed.

func (*HPMemberFilter) WhereHasOwningFeedWith

func (f *HPMemberFilter) WhereHasOwningFeedWith(preds ...predicate.HPFeedItem)

WhereHasOwningFeedWith applies a predicate to check if query has an edge owning_feed with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasOwningIgPosts

func (f *HPMemberFilter) WhereHasOwningIgPosts()

WhereHasOwningIgPosts applies a predicate to check if query has an edge owning_ig_posts.

func (*HPMemberFilter) WhereHasOwningIgPostsWith

func (f *HPMemberFilter) WhereHasOwningIgPostsWith(preds ...predicate.HPIgPost)

WhereHasOwningIgPostsWith applies a predicate to check if query has an edge owning_ig_posts with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasTaggedAmebloPosts

func (f *HPMemberFilter) WhereHasTaggedAmebloPosts()

WhereHasTaggedAmebloPosts applies a predicate to check if query has an edge tagged_ameblo_posts.

func (*HPMemberFilter) WhereHasTaggedAmebloPostsWith

func (f *HPMemberFilter) WhereHasTaggedAmebloPostsWith(preds ...predicate.HPAmebloPost)

WhereHasTaggedAmebloPostsWith applies a predicate to check if query has an edge tagged_ameblo_posts with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasTaggedElineupMallItems

func (f *HPMemberFilter) WhereHasTaggedElineupMallItems()

WhereHasTaggedElineupMallItems applies a predicate to check if query has an edge tagged_elineup_mall_items.

func (*HPMemberFilter) WhereHasTaggedElineupMallItemsWith

func (f *HPMemberFilter) WhereHasTaggedElineupMallItemsWith(preds ...predicate.HPElineupMallItem)

WhereHasTaggedElineupMallItemsWith applies a predicate to check if query has an edge tagged_elineup_mall_items with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasTaggedFeed

func (f *HPMemberFilter) WhereHasTaggedFeed()

WhereHasTaggedFeed applies a predicate to check if query has an edge tagged_feed.

func (*HPMemberFilter) WhereHasTaggedFeedWith

func (f *HPMemberFilter) WhereHasTaggedFeedWith(preds ...predicate.HPFeedItem)

WhereHasTaggedFeedWith applies a predicate to check if query has an edge tagged_feed with a given conditions (other predicates).

func (*HPMemberFilter) WhereHasTaggedIgPosts

func (f *HPMemberFilter) WhereHasTaggedIgPosts()

WhereHasTaggedIgPosts applies a predicate to check if query has an edge tagged_ig_posts.

func (*HPMemberFilter) WhereHasTaggedIgPostsWith

func (f *HPMemberFilter) WhereHasTaggedIgPostsWith(preds ...predicate.HPIgPost)

WhereHasTaggedIgPostsWith applies a predicate to check if query has an edge tagged_ig_posts with a given conditions (other predicates).

func (*HPMemberFilter) WhereHometown

func (f *HPMemberFilter) WhereHometown(p entql.StringP)

WhereHometown applies the entql string predicate on the hometown field.

func (*HPMemberFilter) WhereID

func (f *HPMemberFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPMemberFilter) WhereJoinAt

func (f *HPMemberFilter) WhereJoinAt(p entql.TimeP)

WhereJoinAt applies the entql time.Time predicate on the join_at field.

func (*HPMemberFilter) WhereKey

func (f *HPMemberFilter) WhereKey(p entql.StringP)

WhereKey applies the entql string predicate on the key field.

func (*HPMemberFilter) WhereLastErrorMessage

func (f *HPMemberFilter) WhereLastErrorMessage(p entql.StringP)

WhereLastErrorMessage applies the entql string predicate on the last_error_message field.

func (*HPMemberFilter) WhereManuallyModified

func (f *HPMemberFilter) WhereManuallyModified(p entql.BytesP)

WhereManuallyModified applies the entql json.RawMessage predicate on the manually_modified field.

func (*HPMemberFilter) WhereName

func (f *HPMemberFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*HPMemberFilter) WhereNameKana

func (f *HPMemberFilter) WhereNameKana(p entql.StringP)

WhereNameKana applies the entql string predicate on the name_kana field.

func (*HPMemberFilter) WhereRecrawlRequired

func (f *HPMemberFilter) WhereRecrawlRequired(p entql.BoolP)

WhereRecrawlRequired applies the entql bool predicate on the recrawl_required field.

func (*HPMemberFilter) WhereThumbnailURL

func (f *HPMemberFilter) WhereThumbnailURL(p entql.StringP)

WhereThumbnailURL applies the entql string predicate on the thumbnail_url field.

func (*HPMemberFilter) WhereUpdatedAt

func (f *HPMemberFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPMemberGroupBy

HPMemberGroupBy is the group-by builder for HPMember entities.

type HPMemberGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPMemberGroupBy) Aggregate

func (hmgb *HPMemberGroupBy) Aggregate(fns ...AggregateFunc) *HPMemberGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPMemberGroupBy) Bool

func (s *HPMemberGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) BoolX

func (s *HPMemberGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPMemberGroupBy) Bools

func (s *HPMemberGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) BoolsX

func (s *HPMemberGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPMemberGroupBy) Float64

func (s *HPMemberGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) Float64X

func (s *HPMemberGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPMemberGroupBy) Float64s

func (s *HPMemberGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) Float64sX

func (s *HPMemberGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPMemberGroupBy) Int

func (s *HPMemberGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) IntX

func (s *HPMemberGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPMemberGroupBy) Ints

func (s *HPMemberGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) IntsX

func (s *HPMemberGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPMemberGroupBy) Scan

func (hmgb *HPMemberGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPMemberGroupBy) ScanX

func (s *HPMemberGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPMemberGroupBy) String

func (s *HPMemberGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) StringX

func (s *HPMemberGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPMemberGroupBy) Strings

func (s *HPMemberGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPMemberGroupBy) StringsX

func (s *HPMemberGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPMemberMutation

HPMemberMutation represents an operation that mutates the HPMember nodes in the graph.

type HPMemberMutation struct {
    // contains filtered or unexported fields
}

func (*HPMemberMutation) AddAssetIDs

func (m *HPMemberMutation) AddAssetIDs(ids ...int)

AddAssetIDs adds the "assets" edge to the HPAsset entity by ids.

func (*HPMemberMutation) AddErrorCount

func (m *HPMemberMutation) AddErrorCount(i int)

AddErrorCount adds i to the "error_count" field.

func (*HPMemberMutation) AddField

func (m *HPMemberMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPMemberMutation) AddFollowedByIDs

func (m *HPMemberMutation) AddFollowedByIDs(ids ...int)

AddFollowedByIDs adds the "followed_by" edge to the HPFollow entity by ids.

func (*HPMemberMutation) AddOwningAmebloPostIDs

func (m *HPMemberMutation) AddOwningAmebloPostIDs(ids ...int)

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by ids.

func (*HPMemberMutation) AddOwningFeedIDs

func (m *HPMemberMutation) AddOwningFeedIDs(ids ...int)

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by ids.

func (*HPMemberMutation) AddOwningIgPostIDs

func (m *HPMemberMutation) AddOwningIgPostIDs(ids ...int)

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by ids.

func (*HPMemberMutation) AddTaggedAmebloPostIDs

func (m *HPMemberMutation) AddTaggedAmebloPostIDs(ids ...int)

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by ids.

func (*HPMemberMutation) AddTaggedElineupMallItemIDs

func (m *HPMemberMutation) AddTaggedElineupMallItemIDs(ids ...int)

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by ids.

func (*HPMemberMutation) AddTaggedFeedIDs

func (m *HPMemberMutation) AddTaggedFeedIDs(ids ...int)

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by ids.

func (*HPMemberMutation) AddTaggedIgPostIDs

func (m *HPMemberMutation) AddTaggedIgPostIDs(ids ...int)

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by ids.

func (*HPMemberMutation) AddedEdges

func (m *HPMemberMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPMemberMutation) AddedErrorCount

func (m *HPMemberMutation) AddedErrorCount() (r int, exists bool)

AddedErrorCount returns the value that was added to the "error_count" field in this mutation.

func (*HPMemberMutation) AddedField

func (m *HPMemberMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPMemberMutation) AddedFields

func (m *HPMemberMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPMemberMutation) AddedIDs

func (m *HPMemberMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPMemberMutation) ArtistCleared

func (m *HPMemberMutation) ArtistCleared() bool

ArtistCleared reports if the "artist" edge to the HPArtist entity was cleared.

func (*HPMemberMutation) ArtistID

func (m *HPMemberMutation) ArtistID() (r int, exists bool)

ArtistID returns the value of the "artist_id" field in the mutation.

func (*HPMemberMutation) ArtistIDCleared

func (m *HPMemberMutation) ArtistIDCleared() bool

ArtistIDCleared returns if the "artist_id" field was cleared in this mutation.

func (*HPMemberMutation) ArtistIDs

func (m *HPMemberMutation) ArtistIDs() (ids []int)

ArtistIDs returns the "artist" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ArtistID instead. It exists only for internal usage by the builders.

func (*HPMemberMutation) ArtistKey

func (m *HPMemberMutation) ArtistKey() (r string, exists bool)

ArtistKey returns the value of the "artist_key" field in the mutation.

func (*HPMemberMutation) AssetsCleared

func (m *HPMemberMutation) AssetsCleared() bool

AssetsCleared reports if the "assets" edge to the HPAsset entity was cleared.

func (*HPMemberMutation) AssetsIDs

func (m *HPMemberMutation) AssetsIDs() (ids []int)

AssetsIDs returns the "assets" edge IDs in the mutation.

func (*HPMemberMutation) BloodType

func (m *HPMemberMutation) BloodType() (r string, exists bool)

BloodType returns the value of the "blood_type" field in the mutation.

func (*HPMemberMutation) ClearArtist

func (m *HPMemberMutation) ClearArtist()

ClearArtist clears the "artist" edge to the HPArtist entity.

func (*HPMemberMutation) ClearArtistID

func (m *HPMemberMutation) ClearArtistID()

ClearArtistID clears the value of the "artist_id" field.

func (*HPMemberMutation) ClearAssets

func (m *HPMemberMutation) ClearAssets()

ClearAssets clears the "assets" edge to the HPAsset entity.

func (*HPMemberMutation) ClearCrawledAt

func (m *HPMemberMutation) ClearCrawledAt()

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPMemberMutation) ClearCreatedAt

func (m *HPMemberMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPMemberMutation) ClearEdge

func (m *HPMemberMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPMemberMutation) ClearField

func (m *HPMemberMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPMemberMutation) ClearFollowedBy

func (m *HPMemberMutation) ClearFollowedBy()

ClearFollowedBy clears the "followed_by" edge to the HPFollow entity.

func (*HPMemberMutation) ClearGraduateAt

func (m *HPMemberMutation) ClearGraduateAt()

ClearGraduateAt clears the value of the "graduate_at" field.

func (*HPMemberMutation) ClearJoinAt

func (m *HPMemberMutation) ClearJoinAt()

ClearJoinAt clears the value of the "join_at" field.

func (*HPMemberMutation) ClearLastErrorMessage

func (m *HPMemberMutation) ClearLastErrorMessage()

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPMemberMutation) ClearManuallyModified

func (m *HPMemberMutation) ClearManuallyModified()

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPMemberMutation) ClearOwningAmebloPosts

func (m *HPMemberMutation) ClearOwningAmebloPosts()

ClearOwningAmebloPosts clears the "owning_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPMemberMutation) ClearOwningFeed

func (m *HPMemberMutation) ClearOwningFeed()

ClearOwningFeed clears the "owning_feed" edge to the HPFeedItem entity.

func (*HPMemberMutation) ClearOwningIgPosts

func (m *HPMemberMutation) ClearOwningIgPosts()

ClearOwningIgPosts clears the "owning_ig_posts" edge to the HPIgPost entity.

func (*HPMemberMutation) ClearRecrawlRequired

func (m *HPMemberMutation) ClearRecrawlRequired()

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPMemberMutation) ClearTaggedAmebloPosts

func (m *HPMemberMutation) ClearTaggedAmebloPosts()

ClearTaggedAmebloPosts clears the "tagged_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPMemberMutation) ClearTaggedElineupMallItems

func (m *HPMemberMutation) ClearTaggedElineupMallItems()

ClearTaggedElineupMallItems clears the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity.

func (*HPMemberMutation) ClearTaggedFeed

func (m *HPMemberMutation) ClearTaggedFeed()

ClearTaggedFeed clears the "tagged_feed" edge to the HPFeedItem entity.

func (*HPMemberMutation) ClearTaggedIgPosts

func (m *HPMemberMutation) ClearTaggedIgPosts()

ClearTaggedIgPosts clears the "tagged_ig_posts" edge to the HPIgPost entity.

func (*HPMemberMutation) ClearUpdatedAt

func (m *HPMemberMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPMemberMutation) ClearedEdges

func (m *HPMemberMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPMemberMutation) ClearedFields

func (m *HPMemberMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPMemberMutation) Client

func (m HPMemberMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPMemberMutation) CrawledAt

func (m *HPMemberMutation) CrawledAt() (r time.Time, exists bool)

CrawledAt returns the value of the "crawled_at" field in the mutation.

func (*HPMemberMutation) CrawledAtCleared

func (m *HPMemberMutation) CrawledAtCleared() bool

CrawledAtCleared returns if the "crawled_at" field was cleared in this mutation.

func (*HPMemberMutation) CreatedAt

func (m *HPMemberMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPMemberMutation) CreatedAtCleared

func (m *HPMemberMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPMemberMutation) DateOfBirth

func (m *HPMemberMutation) DateOfBirth() (r time.Time, exists bool)

DateOfBirth returns the value of the "date_of_birth" field in the mutation.

func (*HPMemberMutation) EdgeCleared

func (m *HPMemberMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPMemberMutation) ErrorCount

func (m *HPMemberMutation) ErrorCount() (r int, exists bool)

ErrorCount returns the value of the "error_count" field in the mutation.

func (*HPMemberMutation) Field

func (m *HPMemberMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPMemberMutation) FieldCleared

func (m *HPMemberMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPMemberMutation) Fields

func (m *HPMemberMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPMemberMutation) Filter

func (m *HPMemberMutation) Filter() *HPMemberFilter

Filter returns an entql.Where implementation to apply filters on the HPMemberMutation builder.

func (*HPMemberMutation) FollowedByCleared

func (m *HPMemberMutation) FollowedByCleared() bool

FollowedByCleared reports if the "followed_by" edge to the HPFollow entity was cleared.

func (*HPMemberMutation) FollowedByIDs

func (m *HPMemberMutation) FollowedByIDs() (ids []int)

FollowedByIDs returns the "followed_by" edge IDs in the mutation.

func (*HPMemberMutation) GraduateAt

func (m *HPMemberMutation) GraduateAt() (r time.Time, exists bool)

GraduateAt returns the value of the "graduate_at" field in the mutation.

func (*HPMemberMutation) GraduateAtCleared

func (m *HPMemberMutation) GraduateAtCleared() bool

GraduateAtCleared returns if the "graduate_at" field was cleared in this mutation.

func (*HPMemberMutation) Hometown

func (m *HPMemberMutation) Hometown() (r string, exists bool)

Hometown returns the value of the "hometown" field in the mutation.

func (*HPMemberMutation) ID

func (m *HPMemberMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPMemberMutation) IDs

func (m *HPMemberMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPMemberMutation) JoinAt

func (m *HPMemberMutation) JoinAt() (r time.Time, exists bool)

JoinAt returns the value of the "join_at" field in the mutation.

func (*HPMemberMutation) JoinAtCleared

func (m *HPMemberMutation) JoinAtCleared() bool

JoinAtCleared returns if the "join_at" field was cleared in this mutation.

func (*HPMemberMutation) Key

func (m *HPMemberMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*HPMemberMutation) LastErrorMessage

func (m *HPMemberMutation) LastErrorMessage() (r string, exists bool)

LastErrorMessage returns the value of the "last_error_message" field in the mutation.

func (*HPMemberMutation) LastErrorMessageCleared

func (m *HPMemberMutation) LastErrorMessageCleared() bool

LastErrorMessageCleared returns if the "last_error_message" field was cleared in this mutation.

func (*HPMemberMutation) ManuallyModified

func (m *HPMemberMutation) ManuallyModified() (r *jsonfields.ManuallyModified, exists bool)

ManuallyModified returns the value of the "manually_modified" field in the mutation.

func (*HPMemberMutation) ManuallyModifiedCleared

func (m *HPMemberMutation) ManuallyModifiedCleared() bool

ManuallyModifiedCleared returns if the "manually_modified" field was cleared in this mutation.

func (*HPMemberMutation) Name

func (m *HPMemberMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*HPMemberMutation) NameKana

func (m *HPMemberMutation) NameKana() (r string, exists bool)

NameKana returns the value of the "name_kana" field in the mutation.

func (*HPMemberMutation) OldArtistID

func (m *HPMemberMutation) OldArtistID(ctx context.Context) (v *int, err error)

OldArtistID returns the old "artist_id" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldArtistKey

func (m *HPMemberMutation) OldArtistKey(ctx context.Context) (v string, err error)

OldArtistKey returns the old "artist_key" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldBloodType

func (m *HPMemberMutation) OldBloodType(ctx context.Context) (v string, err error)

OldBloodType returns the old "blood_type" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldCrawledAt

func (m *HPMemberMutation) OldCrawledAt(ctx context.Context) (v *time.Time, err error)

OldCrawledAt returns the old "crawled_at" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldCreatedAt

func (m *HPMemberMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldDateOfBirth

func (m *HPMemberMutation) OldDateOfBirth(ctx context.Context) (v time.Time, err error)

OldDateOfBirth returns the old "date_of_birth" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldErrorCount

func (m *HPMemberMutation) OldErrorCount(ctx context.Context) (v int, err error)

OldErrorCount returns the old "error_count" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldField

func (m *HPMemberMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPMemberMutation) OldGraduateAt

func (m *HPMemberMutation) OldGraduateAt(ctx context.Context) (v *time.Time, err error)

OldGraduateAt returns the old "graduate_at" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldHometown

func (m *HPMemberMutation) OldHometown(ctx context.Context) (v string, err error)

OldHometown returns the old "hometown" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldJoinAt

func (m *HPMemberMutation) OldJoinAt(ctx context.Context) (v *time.Time, err error)

OldJoinAt returns the old "join_at" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldKey

func (m *HPMemberMutation) OldKey(ctx context.Context) (v string, err error)

OldKey returns the old "key" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldLastErrorMessage

func (m *HPMemberMutation) OldLastErrorMessage(ctx context.Context) (v *string, err error)

OldLastErrorMessage returns the old "last_error_message" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldManuallyModified

func (m *HPMemberMutation) OldManuallyModified(ctx context.Context) (v *jsonfields.ManuallyModified, err error)

OldManuallyModified returns the old "manually_modified" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldName

func (m *HPMemberMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldNameKana

func (m *HPMemberMutation) OldNameKana(ctx context.Context) (v string, err error)

OldNameKana returns the old "name_kana" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldRecrawlRequired

func (m *HPMemberMutation) OldRecrawlRequired(ctx context.Context) (v bool, err error)

OldRecrawlRequired returns the old "recrawl_required" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldThumbnailURL

func (m *HPMemberMutation) OldThumbnailURL(ctx context.Context) (v string, err error)

OldThumbnailURL returns the old "thumbnail_url" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) OldUpdatedAt

func (m *HPMemberMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPMember entity. If the HPMember object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPMemberMutation) Op

func (m *HPMemberMutation) Op() Op

Op returns the operation name.

func (*HPMemberMutation) OwningAmebloPostsCleared

func (m *HPMemberMutation) OwningAmebloPostsCleared() bool

OwningAmebloPostsCleared reports if the "owning_ameblo_posts" edge to the HPAmebloPost entity was cleared.

func (*HPMemberMutation) OwningAmebloPostsIDs

func (m *HPMemberMutation) OwningAmebloPostsIDs() (ids []int)

OwningAmebloPostsIDs returns the "owning_ameblo_posts" edge IDs in the mutation.

func (*HPMemberMutation) OwningFeedCleared

func (m *HPMemberMutation) OwningFeedCleared() bool

OwningFeedCleared reports if the "owning_feed" edge to the HPFeedItem entity was cleared.

func (*HPMemberMutation) OwningFeedIDs

func (m *HPMemberMutation) OwningFeedIDs() (ids []int)

OwningFeedIDs returns the "owning_feed" edge IDs in the mutation.

func (*HPMemberMutation) OwningIgPostsCleared

func (m *HPMemberMutation) OwningIgPostsCleared() bool

OwningIgPostsCleared reports if the "owning_ig_posts" edge to the HPIgPost entity was cleared.

func (*HPMemberMutation) OwningIgPostsIDs

func (m *HPMemberMutation) OwningIgPostsIDs() (ids []int)

OwningIgPostsIDs returns the "owning_ig_posts" edge IDs in the mutation.

func (*HPMemberMutation) RecrawlRequired

func (m *HPMemberMutation) RecrawlRequired() (r bool, exists bool)

RecrawlRequired returns the value of the "recrawl_required" field in the mutation.

func (*HPMemberMutation) RecrawlRequiredCleared

func (m *HPMemberMutation) RecrawlRequiredCleared() bool

RecrawlRequiredCleared returns if the "recrawl_required" field was cleared in this mutation.

func (*HPMemberMutation) RemoveAssetIDs

func (m *HPMemberMutation) RemoveAssetIDs(ids ...int)

RemoveAssetIDs removes the "assets" edge to the HPAsset entity by IDs.

func (*HPMemberMutation) RemoveFollowedByIDs

func (m *HPMemberMutation) RemoveFollowedByIDs(ids ...int)

RemoveFollowedByIDs removes the "followed_by" edge to the HPFollow entity by IDs.

func (*HPMemberMutation) RemoveOwningAmebloPostIDs

func (m *HPMemberMutation) RemoveOwningAmebloPostIDs(ids ...int)

RemoveOwningAmebloPostIDs removes the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberMutation) RemoveOwningFeedIDs

func (m *HPMemberMutation) RemoveOwningFeedIDs(ids ...int)

RemoveOwningFeedIDs removes the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberMutation) RemoveOwningIgPostIDs

func (m *HPMemberMutation) RemoveOwningIgPostIDs(ids ...int)

RemoveOwningIgPostIDs removes the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberMutation) RemoveTaggedAmebloPostIDs

func (m *HPMemberMutation) RemoveTaggedAmebloPostIDs(ids ...int)

RemoveTaggedAmebloPostIDs removes the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberMutation) RemoveTaggedElineupMallItemIDs

func (m *HPMemberMutation) RemoveTaggedElineupMallItemIDs(ids ...int)

RemoveTaggedElineupMallItemIDs removes the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPMemberMutation) RemoveTaggedFeedIDs

func (m *HPMemberMutation) RemoveTaggedFeedIDs(ids ...int)

RemoveTaggedFeedIDs removes the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberMutation) RemoveTaggedIgPostIDs

func (m *HPMemberMutation) RemoveTaggedIgPostIDs(ids ...int)

RemoveTaggedIgPostIDs removes the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberMutation) RemovedAssetsIDs

func (m *HPMemberMutation) RemovedAssetsIDs() (ids []int)

RemovedAssets returns the removed IDs of the "assets" edge to the HPAsset entity.

func (*HPMemberMutation) RemovedEdges

func (m *HPMemberMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPMemberMutation) RemovedFollowedByIDs

func (m *HPMemberMutation) RemovedFollowedByIDs() (ids []int)

RemovedFollowedBy returns the removed IDs of the "followed_by" edge to the HPFollow entity.

func (*HPMemberMutation) RemovedIDs

func (m *HPMemberMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPMemberMutation) RemovedOwningAmebloPostsIDs

func (m *HPMemberMutation) RemovedOwningAmebloPostsIDs() (ids []int)

RemovedOwningAmebloPosts returns the removed IDs of the "owning_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPMemberMutation) RemovedOwningFeedIDs

func (m *HPMemberMutation) RemovedOwningFeedIDs() (ids []int)

RemovedOwningFeed returns the removed IDs of the "owning_feed" edge to the HPFeedItem entity.

func (*HPMemberMutation) RemovedOwningIgPostsIDs

func (m *HPMemberMutation) RemovedOwningIgPostsIDs() (ids []int)

RemovedOwningIgPosts returns the removed IDs of the "owning_ig_posts" edge to the HPIgPost entity.

func (*HPMemberMutation) RemovedTaggedAmebloPostsIDs

func (m *HPMemberMutation) RemovedTaggedAmebloPostsIDs() (ids []int)

RemovedTaggedAmebloPosts returns the removed IDs of the "tagged_ameblo_posts" edge to the HPAmebloPost entity.

func (*HPMemberMutation) RemovedTaggedElineupMallItemsIDs

func (m *HPMemberMutation) RemovedTaggedElineupMallItemsIDs() (ids []int)

RemovedTaggedElineupMallItems returns the removed IDs of the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity.

func (*HPMemberMutation) RemovedTaggedFeedIDs

func (m *HPMemberMutation) RemovedTaggedFeedIDs() (ids []int)

RemovedTaggedFeed returns the removed IDs of the "tagged_feed" edge to the HPFeedItem entity.

func (*HPMemberMutation) RemovedTaggedIgPostsIDs

func (m *HPMemberMutation) RemovedTaggedIgPostsIDs() (ids []int)

RemovedTaggedIgPosts returns the removed IDs of the "tagged_ig_posts" edge to the HPIgPost entity.

func (*HPMemberMutation) ResetArtist

func (m *HPMemberMutation) ResetArtist()

ResetArtist resets all changes to the "artist" edge.

func (*HPMemberMutation) ResetArtistID

func (m *HPMemberMutation) ResetArtistID()

ResetArtistID resets all changes to the "artist_id" field.

func (*HPMemberMutation) ResetArtistKey

func (m *HPMemberMutation) ResetArtistKey()

ResetArtistKey resets all changes to the "artist_key" field.

func (*HPMemberMutation) ResetAssets

func (m *HPMemberMutation) ResetAssets()

ResetAssets resets all changes to the "assets" edge.

func (*HPMemberMutation) ResetBloodType

func (m *HPMemberMutation) ResetBloodType()

ResetBloodType resets all changes to the "blood_type" field.

func (*HPMemberMutation) ResetCrawledAt

func (m *HPMemberMutation) ResetCrawledAt()

ResetCrawledAt resets all changes to the "crawled_at" field.

func (*HPMemberMutation) ResetCreatedAt

func (m *HPMemberMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPMemberMutation) ResetDateOfBirth

func (m *HPMemberMutation) ResetDateOfBirth()

ResetDateOfBirth resets all changes to the "date_of_birth" field.

func (*HPMemberMutation) ResetEdge

func (m *HPMemberMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPMemberMutation) ResetErrorCount

func (m *HPMemberMutation) ResetErrorCount()

ResetErrorCount resets all changes to the "error_count" field.

func (*HPMemberMutation) ResetField

func (m *HPMemberMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPMemberMutation) ResetFollowedBy

func (m *HPMemberMutation) ResetFollowedBy()

ResetFollowedBy resets all changes to the "followed_by" edge.

func (*HPMemberMutation) ResetGraduateAt

func (m *HPMemberMutation) ResetGraduateAt()

ResetGraduateAt resets all changes to the "graduate_at" field.

func (*HPMemberMutation) ResetHometown

func (m *HPMemberMutation) ResetHometown()

ResetHometown resets all changes to the "hometown" field.

func (*HPMemberMutation) ResetJoinAt

func (m *HPMemberMutation) ResetJoinAt()

ResetJoinAt resets all changes to the "join_at" field.

func (*HPMemberMutation) ResetKey

func (m *HPMemberMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*HPMemberMutation) ResetLastErrorMessage

func (m *HPMemberMutation) ResetLastErrorMessage()

ResetLastErrorMessage resets all changes to the "last_error_message" field.

func (*HPMemberMutation) ResetManuallyModified

func (m *HPMemberMutation) ResetManuallyModified()

ResetManuallyModified resets all changes to the "manually_modified" field.

func (*HPMemberMutation) ResetName

func (m *HPMemberMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*HPMemberMutation) ResetNameKana

func (m *HPMemberMutation) ResetNameKana()

ResetNameKana resets all changes to the "name_kana" field.

func (*HPMemberMutation) ResetOwningAmebloPosts

func (m *HPMemberMutation) ResetOwningAmebloPosts()

ResetOwningAmebloPosts resets all changes to the "owning_ameblo_posts" edge.

func (*HPMemberMutation) ResetOwningFeed

func (m *HPMemberMutation) ResetOwningFeed()

ResetOwningFeed resets all changes to the "owning_feed" edge.

func (*HPMemberMutation) ResetOwningIgPosts

func (m *HPMemberMutation) ResetOwningIgPosts()

ResetOwningIgPosts resets all changes to the "owning_ig_posts" edge.

func (*HPMemberMutation) ResetRecrawlRequired

func (m *HPMemberMutation) ResetRecrawlRequired()

ResetRecrawlRequired resets all changes to the "recrawl_required" field.

func (*HPMemberMutation) ResetTaggedAmebloPosts

func (m *HPMemberMutation) ResetTaggedAmebloPosts()

ResetTaggedAmebloPosts resets all changes to the "tagged_ameblo_posts" edge.

func (*HPMemberMutation) ResetTaggedElineupMallItems

func (m *HPMemberMutation) ResetTaggedElineupMallItems()

ResetTaggedElineupMallItems resets all changes to the "tagged_elineup_mall_items" edge.

func (*HPMemberMutation) ResetTaggedFeed

func (m *HPMemberMutation) ResetTaggedFeed()

ResetTaggedFeed resets all changes to the "tagged_feed" edge.

func (*HPMemberMutation) ResetTaggedIgPosts

func (m *HPMemberMutation) ResetTaggedIgPosts()

ResetTaggedIgPosts resets all changes to the "tagged_ig_posts" edge.

func (*HPMemberMutation) ResetThumbnailURL

func (m *HPMemberMutation) ResetThumbnailURL()

ResetThumbnailURL resets all changes to the "thumbnail_url" field.

func (*HPMemberMutation) ResetUpdatedAt

func (m *HPMemberMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPMemberMutation) SetArtistID

func (m *HPMemberMutation) SetArtistID(i int)

SetArtistID sets the "artist_id" field.

func (*HPMemberMutation) SetArtistKey

func (m *HPMemberMutation) SetArtistKey(s string)

SetArtistKey sets the "artist_key" field.

func (*HPMemberMutation) SetBloodType

func (m *HPMemberMutation) SetBloodType(s string)

SetBloodType sets the "blood_type" field.

func (*HPMemberMutation) SetCrawledAt

func (m *HPMemberMutation) SetCrawledAt(t time.Time)

SetCrawledAt sets the "crawled_at" field.

func (*HPMemberMutation) SetCreatedAt

func (m *HPMemberMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPMemberMutation) SetDateOfBirth

func (m *HPMemberMutation) SetDateOfBirth(t time.Time)

SetDateOfBirth sets the "date_of_birth" field.

func (*HPMemberMutation) SetErrorCount

func (m *HPMemberMutation) SetErrorCount(i int)

SetErrorCount sets the "error_count" field.

func (*HPMemberMutation) SetField

func (m *HPMemberMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPMemberMutation) SetGraduateAt

func (m *HPMemberMutation) SetGraduateAt(t time.Time)

SetGraduateAt sets the "graduate_at" field.

func (*HPMemberMutation) SetHometown

func (m *HPMemberMutation) SetHometown(s string)

SetHometown sets the "hometown" field.

func (*HPMemberMutation) SetJoinAt

func (m *HPMemberMutation) SetJoinAt(t time.Time)

SetJoinAt sets the "join_at" field.

func (*HPMemberMutation) SetKey

func (m *HPMemberMutation) SetKey(s string)

SetKey sets the "key" field.

func (*HPMemberMutation) SetLastErrorMessage

func (m *HPMemberMutation) SetLastErrorMessage(s string)

SetLastErrorMessage sets the "last_error_message" field.

func (*HPMemberMutation) SetManuallyModified

func (m *HPMemberMutation) SetManuallyModified(jm *jsonfields.ManuallyModified)

SetManuallyModified sets the "manually_modified" field.

func (*HPMemberMutation) SetName

func (m *HPMemberMutation) SetName(s string)

SetName sets the "name" field.

func (*HPMemberMutation) SetNameKana

func (m *HPMemberMutation) SetNameKana(s string)

SetNameKana sets the "name_kana" field.

func (*HPMemberMutation) SetOp

func (m *HPMemberMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPMemberMutation) SetRecrawlRequired

func (m *HPMemberMutation) SetRecrawlRequired(b bool)

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPMemberMutation) SetThumbnailURL

func (m *HPMemberMutation) SetThumbnailURL(s string)

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPMemberMutation) SetUpdatedAt

func (m *HPMemberMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPMemberMutation) TaggedAmebloPostsCleared

func (m *HPMemberMutation) TaggedAmebloPostsCleared() bool

TaggedAmebloPostsCleared reports if the "tagged_ameblo_posts" edge to the HPAmebloPost entity was cleared.

func (*HPMemberMutation) TaggedAmebloPostsIDs

func (m *HPMemberMutation) TaggedAmebloPostsIDs() (ids []int)

TaggedAmebloPostsIDs returns the "tagged_ameblo_posts" edge IDs in the mutation.

func (*HPMemberMutation) TaggedElineupMallItemsCleared

func (m *HPMemberMutation) TaggedElineupMallItemsCleared() bool

TaggedElineupMallItemsCleared reports if the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity was cleared.

func (*HPMemberMutation) TaggedElineupMallItemsIDs

func (m *HPMemberMutation) TaggedElineupMallItemsIDs() (ids []int)

TaggedElineupMallItemsIDs returns the "tagged_elineup_mall_items" edge IDs in the mutation.

func (*HPMemberMutation) TaggedFeedCleared

func (m *HPMemberMutation) TaggedFeedCleared() bool

TaggedFeedCleared reports if the "tagged_feed" edge to the HPFeedItem entity was cleared.

func (*HPMemberMutation) TaggedFeedIDs

func (m *HPMemberMutation) TaggedFeedIDs() (ids []int)

TaggedFeedIDs returns the "tagged_feed" edge IDs in the mutation.

func (*HPMemberMutation) TaggedIgPostsCleared

func (m *HPMemberMutation) TaggedIgPostsCleared() bool

TaggedIgPostsCleared reports if the "tagged_ig_posts" edge to the HPIgPost entity was cleared.

func (*HPMemberMutation) TaggedIgPostsIDs

func (m *HPMemberMutation) TaggedIgPostsIDs() (ids []int)

TaggedIgPostsIDs returns the "tagged_ig_posts" edge IDs in the mutation.

func (*HPMemberMutation) ThumbnailURL

func (m *HPMemberMutation) ThumbnailURL() (r string, exists bool)

ThumbnailURL returns the value of the "thumbnail_url" field in the mutation.

func (HPMemberMutation) Tx

func (m HPMemberMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPMemberMutation) Type

func (m *HPMemberMutation) Type() string

Type returns the node type of this mutation (HPMember).

func (*HPMemberMutation) UpdatedAt

func (m *HPMemberMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPMemberMutation) UpdatedAtCleared

func (m *HPMemberMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPMemberMutation) Where

func (m *HPMemberMutation) Where(ps ...predicate.HPMember)

Where appends a list predicates to the HPMemberMutation builder.

func (*HPMemberMutation) WhereP

func (m *HPMemberMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPMemberMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPMemberOrder

HPMemberOrder defines the ordering of HPMember.

type HPMemberOrder struct {
    Direction OrderDirection      `json:"direction"`
    Field     *HPMemberOrderField `json:"field"`
}

type HPMemberOrderField

HPMemberOrderField defines the ordering field of HPMember.

type HPMemberOrderField struct {
    // contains filtered or unexported fields
}

type HPMemberPaginateOption

HPMemberPaginateOption enables pagination customization.

type HPMemberPaginateOption func(*hpmemberPager) error

func WithHPMemberFilter

func WithHPMemberFilter(filter func(*HPMemberQuery) (*HPMemberQuery, error)) HPMemberPaginateOption

WithHPMemberFilter configures pagination filter.

func WithHPMemberOrder

func WithHPMemberOrder(order *HPMemberOrder) HPMemberPaginateOption

WithHPMemberOrder configures pagination ordering.

type HPMemberQuery

HPMemberQuery is the builder for querying HPMember entities.

type HPMemberQuery struct {
    // contains filtered or unexported fields
}

func (*HPMemberQuery) Aggregate

func (hmq *HPMemberQuery) Aggregate(fns ...AggregateFunc) *HPMemberSelect

Aggregate returns a HPMemberSelect configured with the given aggregations.

func (*HPMemberQuery) All

func (hmq *HPMemberQuery) All(ctx context.Context) ([]*HPMember, error)

All executes the query and returns a list of HPMembers.

func (*HPMemberQuery) AllX

func (hmq *HPMemberQuery) AllX(ctx context.Context) []*HPMember

AllX is like All, but panics if an error occurs.

func (*HPMemberQuery) Clone

func (hmq *HPMemberQuery) Clone() *HPMemberQuery

Clone returns a duplicate of the HPMemberQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPMemberQuery) CollectFields

func (hm *HPMemberQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPMemberQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPMemberQuery) Count

func (hmq *HPMemberQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPMemberQuery) CountX

func (hmq *HPMemberQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPMemberQuery) Exist

func (hmq *HPMemberQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPMemberQuery) ExistX

func (hmq *HPMemberQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPMemberQuery) Filter

func (hmq *HPMemberQuery) Filter() *HPMemberFilter

Filter returns a Filter implementation to apply filters on the HPMemberQuery builder.

func (*HPMemberQuery) First

func (hmq *HPMemberQuery) First(ctx context.Context) (*HPMember, error)

First returns the first HPMember entity from the query. Returns a *NotFoundError when no HPMember was found.

func (*HPMemberQuery) FirstID

func (hmq *HPMemberQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPMember ID from the query. Returns a *NotFoundError when no HPMember ID was found.

func (*HPMemberQuery) FirstIDX

func (hmq *HPMemberQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPMemberQuery) FirstX

func (hmq *HPMemberQuery) FirstX(ctx context.Context) *HPMember

FirstX is like First, but panics if an error occurs.

func (*HPMemberQuery) GroupBy

func (hmq *HPMemberQuery) GroupBy(field string, fields ...string) *HPMemberGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPMember.Query().
	GroupBy(hpmember.FieldCrawledAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPMemberQuery) IDs

func (hmq *HPMemberQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPMember IDs.

func (*HPMemberQuery) IDsX

func (hmq *HPMemberQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPMemberQuery) Limit

func (hmq *HPMemberQuery) Limit(limit int) *HPMemberQuery

Limit the number of records to be returned by this query.

func (*HPMemberQuery) Offset

func (hmq *HPMemberQuery) Offset(offset int) *HPMemberQuery

Offset to start from.

func (*HPMemberQuery) Only

func (hmq *HPMemberQuery) Only(ctx context.Context) (*HPMember, error)

Only returns a single HPMember entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPMember entity is found. Returns a *NotFoundError when no HPMember entities are found.

func (*HPMemberQuery) OnlyID

func (hmq *HPMemberQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPMember ID in the query. Returns a *NotSingularError when more than one HPMember ID is found. Returns a *NotFoundError when no entities are found.

func (*HPMemberQuery) OnlyIDX

func (hmq *HPMemberQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPMemberQuery) OnlyX

func (hmq *HPMemberQuery) OnlyX(ctx context.Context) *HPMember

OnlyX is like Only, but panics if an error occurs.

func (*HPMemberQuery) Order

func (hmq *HPMemberQuery) Order(o ...hpmember.Order) *HPMemberQuery

Order specifies how the records should be ordered.

func (*HPMemberQuery) Paginate

func (hm *HPMemberQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPMemberPaginateOption,
) (*HPMemberConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPMember.

func (*HPMemberQuery) QueryArtist

func (hmq *HPMemberQuery) QueryArtist() *HPArtistQuery

QueryArtist chains the current query on the "artist" edge.

func (*HPMemberQuery) QueryAssets

func (hmq *HPMemberQuery) QueryAssets() *HPAssetQuery

QueryAssets chains the current query on the "assets" edge.

func (*HPMemberQuery) QueryFollowedBy

func (hmq *HPMemberQuery) QueryFollowedBy() *HPFollowQuery

QueryFollowedBy chains the current query on the "followed_by" edge.

func (*HPMemberQuery) QueryOwningAmebloPosts

func (hmq *HPMemberQuery) QueryOwningAmebloPosts() *HPAmebloPostQuery

QueryOwningAmebloPosts chains the current query on the "owning_ameblo_posts" edge.

func (*HPMemberQuery) QueryOwningFeed

func (hmq *HPMemberQuery) QueryOwningFeed() *HPFeedItemQuery

QueryOwningFeed chains the current query on the "owning_feed" edge.

func (*HPMemberQuery) QueryOwningIgPosts

func (hmq *HPMemberQuery) QueryOwningIgPosts() *HPIgPostQuery

QueryOwningIgPosts chains the current query on the "owning_ig_posts" edge.

func (*HPMemberQuery) QueryTaggedAmebloPosts

func (hmq *HPMemberQuery) QueryTaggedAmebloPosts() *HPAmebloPostQuery

QueryTaggedAmebloPosts chains the current query on the "tagged_ameblo_posts" edge.

func (*HPMemberQuery) QueryTaggedElineupMallItems

func (hmq *HPMemberQuery) QueryTaggedElineupMallItems() *HPElineupMallItemQuery

QueryTaggedElineupMallItems chains the current query on the "tagged_elineup_mall_items" edge.

func (*HPMemberQuery) QueryTaggedFeed

func (hmq *HPMemberQuery) QueryTaggedFeed() *HPFeedItemQuery

QueryTaggedFeed chains the current query on the "tagged_feed" edge.

func (*HPMemberQuery) QueryTaggedIgPosts

func (hmq *HPMemberQuery) QueryTaggedIgPosts() *HPIgPostQuery

QueryTaggedIgPosts chains the current query on the "tagged_ig_posts" edge.

func (*HPMemberQuery) Select

func (hmq *HPMemberQuery) Select(fields ...string) *HPMemberSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CrawledAt time.Time `json:"crawled_at,omitempty"`
}

client.HPMember.Query().
	Select(hpmember.FieldCrawledAt).
	Scan(ctx, &v)

func (*HPMemberQuery) Unique

func (hmq *HPMemberQuery) Unique(unique bool) *HPMemberQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPMemberQuery) Where

func (hmq *HPMemberQuery) Where(ps ...predicate.HPMember) *HPMemberQuery

Where adds a new predicate for the HPMemberQuery builder.

func (*HPMemberQuery) WithArtist

func (hmq *HPMemberQuery) WithArtist(opts ...func(*HPArtistQuery)) *HPMemberQuery

WithArtist tells the query-builder to eager-load the nodes that are connected to the "artist" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithAssets

func (hmq *HPMemberQuery) WithAssets(opts ...func(*HPAssetQuery)) *HPMemberQuery

WithAssets tells the query-builder to eager-load the nodes that are connected to the "assets" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithFollowedBy

func (hmq *HPMemberQuery) WithFollowedBy(opts ...func(*HPFollowQuery)) *HPMemberQuery

WithFollowedBy tells the query-builder to eager-load the nodes that are connected to the "followed_by" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedAssets

func (hmq *HPMemberQuery) WithNamedAssets(name string, opts ...func(*HPAssetQuery)) *HPMemberQuery

WithNamedAssets tells the query-builder to eager-load the nodes that are connected to the "assets" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedFollowedBy

func (hmq *HPMemberQuery) WithNamedFollowedBy(name string, opts ...func(*HPFollowQuery)) *HPMemberQuery

WithNamedFollowedBy tells the query-builder to eager-load the nodes that are connected to the "followed_by" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedOwningAmebloPosts

func (hmq *HPMemberQuery) WithNamedOwningAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPMemberQuery

WithNamedOwningAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ameblo_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedOwningFeed

func (hmq *HPMemberQuery) WithNamedOwningFeed(name string, opts ...func(*HPFeedItemQuery)) *HPMemberQuery

WithNamedOwningFeed tells the query-builder to eager-load the nodes that are connected to the "owning_feed" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedOwningIgPosts

func (hmq *HPMemberQuery) WithNamedOwningIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPMemberQuery

WithNamedOwningIgPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ig_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedTaggedAmebloPosts

func (hmq *HPMemberQuery) WithNamedTaggedAmebloPosts(name string, opts ...func(*HPAmebloPostQuery)) *HPMemberQuery

WithNamedTaggedAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ameblo_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedTaggedElineupMallItems

func (hmq *HPMemberQuery) WithNamedTaggedElineupMallItems(name string, opts ...func(*HPElineupMallItemQuery)) *HPMemberQuery

WithNamedTaggedElineupMallItems tells the query-builder to eager-load the nodes that are connected to the "tagged_elineup_mall_items" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedTaggedFeed

func (hmq *HPMemberQuery) WithNamedTaggedFeed(name string, opts ...func(*HPFeedItemQuery)) *HPMemberQuery

WithNamedTaggedFeed tells the query-builder to eager-load the nodes that are connected to the "tagged_feed" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithNamedTaggedIgPosts

func (hmq *HPMemberQuery) WithNamedTaggedIgPosts(name string, opts ...func(*HPIgPostQuery)) *HPMemberQuery

WithNamedTaggedIgPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ig_posts" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithOwningAmebloPosts

func (hmq *HPMemberQuery) WithOwningAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPMemberQuery

WithOwningAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ameblo_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithOwningFeed

func (hmq *HPMemberQuery) WithOwningFeed(opts ...func(*HPFeedItemQuery)) *HPMemberQuery

WithOwningFeed tells the query-builder to eager-load the nodes that are connected to the "owning_feed" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithOwningIgPosts

func (hmq *HPMemberQuery) WithOwningIgPosts(opts ...func(*HPIgPostQuery)) *HPMemberQuery

WithOwningIgPosts tells the query-builder to eager-load the nodes that are connected to the "owning_ig_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithTaggedAmebloPosts

func (hmq *HPMemberQuery) WithTaggedAmebloPosts(opts ...func(*HPAmebloPostQuery)) *HPMemberQuery

WithTaggedAmebloPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ameblo_posts" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithTaggedElineupMallItems

func (hmq *HPMemberQuery) WithTaggedElineupMallItems(opts ...func(*HPElineupMallItemQuery)) *HPMemberQuery

WithTaggedElineupMallItems tells the query-builder to eager-load the nodes that are connected to the "tagged_elineup_mall_items" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithTaggedFeed

func (hmq *HPMemberQuery) WithTaggedFeed(opts ...func(*HPFeedItemQuery)) *HPMemberQuery

WithTaggedFeed tells the query-builder to eager-load the nodes that are connected to the "tagged_feed" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPMemberQuery) WithTaggedIgPosts

func (hmq *HPMemberQuery) WithTaggedIgPosts(opts ...func(*HPIgPostQuery)) *HPMemberQuery

WithTaggedIgPosts tells the query-builder to eager-load the nodes that are connected to the "tagged_ig_posts" edge. The optional arguments are used to configure the query builder of the edge.

type HPMemberSelect

HPMemberSelect is the builder for selecting fields of HPMember entities.

type HPMemberSelect struct {
    *HPMemberQuery
    // contains filtered or unexported fields
}

func (*HPMemberSelect) Aggregate

func (hms *HPMemberSelect) Aggregate(fns ...AggregateFunc) *HPMemberSelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPMemberSelect) Bool

func (s *HPMemberSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) BoolX

func (s *HPMemberSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPMemberSelect) Bools

func (s *HPMemberSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) BoolsX

func (s *HPMemberSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPMemberSelect) Float64

func (s *HPMemberSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) Float64X

func (s *HPMemberSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPMemberSelect) Float64s

func (s *HPMemberSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) Float64sX

func (s *HPMemberSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPMemberSelect) Int

func (s *HPMemberSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) IntX

func (s *HPMemberSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPMemberSelect) Ints

func (s *HPMemberSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) IntsX

func (s *HPMemberSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPMemberSelect) Scan

func (hms *HPMemberSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPMemberSelect) ScanX

func (s *HPMemberSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPMemberSelect) String

func (s *HPMemberSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) StringX

func (s *HPMemberSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPMemberSelect) Strings

func (s *HPMemberSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPMemberSelect) StringsX

func (s *HPMemberSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPMemberUpdate

HPMemberUpdate is the builder for updating HPMember entities.

type HPMemberUpdate struct {
    // contains filtered or unexported fields
}

func (*HPMemberUpdate) AddAssetIDs

func (hmu *HPMemberUpdate) AddAssetIDs(ids ...int) *HPMemberUpdate

AddAssetIDs adds the "assets" edge to the HPAsset entity by IDs.

func (*HPMemberUpdate) AddAssets

func (hmu *HPMemberUpdate) AddAssets(h ...*HPAsset) *HPMemberUpdate

AddAssets adds the "assets" edges to the HPAsset entity.

func (*HPMemberUpdate) AddErrorCount

func (hmu *HPMemberUpdate) AddErrorCount(i int) *HPMemberUpdate

AddErrorCount adds i to the "error_count" field.

func (*HPMemberUpdate) AddFollowedBy

func (hmu *HPMemberUpdate) AddFollowedBy(h ...*HPFollow) *HPMemberUpdate

AddFollowedBy adds the "followed_by" edges to the HPFollow entity.

func (*HPMemberUpdate) AddFollowedByIDs

func (hmu *HPMemberUpdate) AddFollowedByIDs(ids ...int) *HPMemberUpdate

AddFollowedByIDs adds the "followed_by" edge to the HPFollow entity by IDs.

func (*HPMemberUpdate) AddOwningAmebloPostIDs

func (hmu *HPMemberUpdate) AddOwningAmebloPostIDs(ids ...int) *HPMemberUpdate

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberUpdate) AddOwningAmebloPosts

func (hmu *HPMemberUpdate) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate

AddOwningAmebloPosts adds the "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdate) AddOwningFeed

func (hmu *HPMemberUpdate) AddOwningFeed(h ...*HPFeedItem) *HPMemberUpdate

AddOwningFeed adds the "owning_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdate) AddOwningFeedIDs

func (hmu *HPMemberUpdate) AddOwningFeedIDs(ids ...int) *HPMemberUpdate

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberUpdate) AddOwningIgPostIDs

func (hmu *HPMemberUpdate) AddOwningIgPostIDs(ids ...int) *HPMemberUpdate

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberUpdate) AddOwningIgPosts

func (hmu *HPMemberUpdate) AddOwningIgPosts(h ...*HPIgPost) *HPMemberUpdate

AddOwningIgPosts adds the "owning_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdate) AddTaggedAmebloPostIDs

func (hmu *HPMemberUpdate) AddTaggedAmebloPostIDs(ids ...int) *HPMemberUpdate

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberUpdate) AddTaggedAmebloPosts

func (hmu *HPMemberUpdate) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate

AddTaggedAmebloPosts adds the "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdate) AddTaggedElineupMallItemIDs

func (hmu *HPMemberUpdate) AddTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdate

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPMemberUpdate) AddTaggedElineupMallItems

func (hmu *HPMemberUpdate) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdate

AddTaggedElineupMallItems adds the "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPMemberUpdate) AddTaggedFeed

func (hmu *HPMemberUpdate) AddTaggedFeed(h ...*HPFeedItem) *HPMemberUpdate

AddTaggedFeed adds the "tagged_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdate) AddTaggedFeedIDs

func (hmu *HPMemberUpdate) AddTaggedFeedIDs(ids ...int) *HPMemberUpdate

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberUpdate) AddTaggedIgPostIDs

func (hmu *HPMemberUpdate) AddTaggedIgPostIDs(ids ...int) *HPMemberUpdate

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberUpdate) AddTaggedIgPosts

func (hmu *HPMemberUpdate) AddTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdate

AddTaggedIgPosts adds the "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdate) ClearArtist

func (hmu *HPMemberUpdate) ClearArtist() *HPMemberUpdate

ClearArtist clears the "artist" edge to the HPArtist entity.

func (*HPMemberUpdate) ClearArtistID

func (hmu *HPMemberUpdate) ClearArtistID() *HPMemberUpdate

ClearArtistID clears the value of the "artist_id" field.

func (*HPMemberUpdate) ClearAssets

func (hmu *HPMemberUpdate) ClearAssets() *HPMemberUpdate

ClearAssets clears all "assets" edges to the HPAsset entity.

func (*HPMemberUpdate) ClearCrawledAt

func (hmu *HPMemberUpdate) ClearCrawledAt() *HPMemberUpdate

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPMemberUpdate) ClearFollowedBy

func (hmu *HPMemberUpdate) ClearFollowedBy() *HPMemberUpdate

ClearFollowedBy clears all "followed_by" edges to the HPFollow entity.

func (*HPMemberUpdate) ClearGraduateAt

func (hmu *HPMemberUpdate) ClearGraduateAt() *HPMemberUpdate

ClearGraduateAt clears the value of the "graduate_at" field.

func (*HPMemberUpdate) ClearJoinAt

func (hmu *HPMemberUpdate) ClearJoinAt() *HPMemberUpdate

ClearJoinAt clears the value of the "join_at" field.

func (*HPMemberUpdate) ClearLastErrorMessage

func (hmu *HPMemberUpdate) ClearLastErrorMessage() *HPMemberUpdate

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPMemberUpdate) ClearManuallyModified

func (hmu *HPMemberUpdate) ClearManuallyModified() *HPMemberUpdate

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPMemberUpdate) ClearOwningAmebloPosts

func (hmu *HPMemberUpdate) ClearOwningAmebloPosts() *HPMemberUpdate

ClearOwningAmebloPosts clears all "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdate) ClearOwningFeed

func (hmu *HPMemberUpdate) ClearOwningFeed() *HPMemberUpdate

ClearOwningFeed clears all "owning_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdate) ClearOwningIgPosts

func (hmu *HPMemberUpdate) ClearOwningIgPosts() *HPMemberUpdate

ClearOwningIgPosts clears all "owning_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdate) ClearRecrawlRequired

func (hmu *HPMemberUpdate) ClearRecrawlRequired() *HPMemberUpdate

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPMemberUpdate) ClearTaggedAmebloPosts

func (hmu *HPMemberUpdate) ClearTaggedAmebloPosts() *HPMemberUpdate

ClearTaggedAmebloPosts clears all "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdate) ClearTaggedElineupMallItems

func (hmu *HPMemberUpdate) ClearTaggedElineupMallItems() *HPMemberUpdate

ClearTaggedElineupMallItems clears all "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPMemberUpdate) ClearTaggedFeed

func (hmu *HPMemberUpdate) ClearTaggedFeed() *HPMemberUpdate

ClearTaggedFeed clears all "tagged_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdate) ClearTaggedIgPosts

func (hmu *HPMemberUpdate) ClearTaggedIgPosts() *HPMemberUpdate

ClearTaggedIgPosts clears all "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdate) ClearUpdatedAt

func (hmu *HPMemberUpdate) ClearUpdatedAt() *HPMemberUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPMemberUpdate) Exec

func (hmu *HPMemberUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPMemberUpdate) ExecX

func (hmu *HPMemberUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberUpdate) Mutation

func (hmu *HPMemberUpdate) Mutation() *HPMemberMutation

Mutation returns the HPMemberMutation object of the builder.

func (*HPMemberUpdate) RemoveAssetIDs

func (hmu *HPMemberUpdate) RemoveAssetIDs(ids ...int) *HPMemberUpdate

RemoveAssetIDs removes the "assets" edge to HPAsset entities by IDs.

func (*HPMemberUpdate) RemoveAssets

func (hmu *HPMemberUpdate) RemoveAssets(h ...*HPAsset) *HPMemberUpdate

RemoveAssets removes "assets" edges to HPAsset entities.

func (*HPMemberUpdate) RemoveFollowedBy

func (hmu *HPMemberUpdate) RemoveFollowedBy(h ...*HPFollow) *HPMemberUpdate

RemoveFollowedBy removes "followed_by" edges to HPFollow entities.

func (*HPMemberUpdate) RemoveFollowedByIDs

func (hmu *HPMemberUpdate) RemoveFollowedByIDs(ids ...int) *HPMemberUpdate

RemoveFollowedByIDs removes the "followed_by" edge to HPFollow entities by IDs.

func (*HPMemberUpdate) RemoveOwningAmebloPostIDs

func (hmu *HPMemberUpdate) RemoveOwningAmebloPostIDs(ids ...int) *HPMemberUpdate

RemoveOwningAmebloPostIDs removes the "owning_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPMemberUpdate) RemoveOwningAmebloPosts

func (hmu *HPMemberUpdate) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate

RemoveOwningAmebloPosts removes "owning_ameblo_posts" edges to HPAmebloPost entities.

func (*HPMemberUpdate) RemoveOwningFeed

func (hmu *HPMemberUpdate) RemoveOwningFeed(h ...*HPFeedItem) *HPMemberUpdate

RemoveOwningFeed removes "owning_feed" edges to HPFeedItem entities.

func (*HPMemberUpdate) RemoveOwningFeedIDs

func (hmu *HPMemberUpdate) RemoveOwningFeedIDs(ids ...int) *HPMemberUpdate

RemoveOwningFeedIDs removes the "owning_feed" edge to HPFeedItem entities by IDs.

func (*HPMemberUpdate) RemoveOwningIgPostIDs

func (hmu *HPMemberUpdate) RemoveOwningIgPostIDs(ids ...int) *HPMemberUpdate

RemoveOwningIgPostIDs removes the "owning_ig_posts" edge to HPIgPost entities by IDs.

func (*HPMemberUpdate) RemoveOwningIgPosts

func (hmu *HPMemberUpdate) RemoveOwningIgPosts(h ...*HPIgPost) *HPMemberUpdate

RemoveOwningIgPosts removes "owning_ig_posts" edges to HPIgPost entities.

func (*HPMemberUpdate) RemoveTaggedAmebloPostIDs

func (hmu *HPMemberUpdate) RemoveTaggedAmebloPostIDs(ids ...int) *HPMemberUpdate

RemoveTaggedAmebloPostIDs removes the "tagged_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPMemberUpdate) RemoveTaggedAmebloPosts

func (hmu *HPMemberUpdate) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdate

RemoveTaggedAmebloPosts removes "tagged_ameblo_posts" edges to HPAmebloPost entities.

func (*HPMemberUpdate) RemoveTaggedElineupMallItemIDs

func (hmu *HPMemberUpdate) RemoveTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdate

RemoveTaggedElineupMallItemIDs removes the "tagged_elineup_mall_items" edge to HPElineupMallItem entities by IDs.

func (*HPMemberUpdate) RemoveTaggedElineupMallItems

func (hmu *HPMemberUpdate) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdate

RemoveTaggedElineupMallItems removes "tagged_elineup_mall_items" edges to HPElineupMallItem entities.

func (*HPMemberUpdate) RemoveTaggedFeed

func (hmu *HPMemberUpdate) RemoveTaggedFeed(h ...*HPFeedItem) *HPMemberUpdate

RemoveTaggedFeed removes "tagged_feed" edges to HPFeedItem entities.

func (*HPMemberUpdate) RemoveTaggedFeedIDs

func (hmu *HPMemberUpdate) RemoveTaggedFeedIDs(ids ...int) *HPMemberUpdate

RemoveTaggedFeedIDs removes the "tagged_feed" edge to HPFeedItem entities by IDs.

func (*HPMemberUpdate) RemoveTaggedIgPostIDs

func (hmu *HPMemberUpdate) RemoveTaggedIgPostIDs(ids ...int) *HPMemberUpdate

RemoveTaggedIgPostIDs removes the "tagged_ig_posts" edge to HPIgPost entities by IDs.

func (*HPMemberUpdate) RemoveTaggedIgPosts

func (hmu *HPMemberUpdate) RemoveTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdate

RemoveTaggedIgPosts removes "tagged_ig_posts" edges to HPIgPost entities.

func (*HPMemberUpdate) Save

func (hmu *HPMemberUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPMemberUpdate) SaveX

func (hmu *HPMemberUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPMemberUpdate) SetArtist

func (hmu *HPMemberUpdate) SetArtist(h *HPArtist) *HPMemberUpdate

SetArtist sets the "artist" edge to the HPArtist entity.

func (*HPMemberUpdate) SetArtistID

func (hmu *HPMemberUpdate) SetArtistID(i int) *HPMemberUpdate

SetArtistID sets the "artist_id" field.

func (*HPMemberUpdate) SetArtistKey

func (hmu *HPMemberUpdate) SetArtistKey(s string) *HPMemberUpdate

SetArtistKey sets the "artist_key" field.

func (*HPMemberUpdate) SetBloodType

func (hmu *HPMemberUpdate) SetBloodType(s string) *HPMemberUpdate

SetBloodType sets the "blood_type" field.

func (*HPMemberUpdate) SetCrawledAt

func (hmu *HPMemberUpdate) SetCrawledAt(t time.Time) *HPMemberUpdate

SetCrawledAt sets the "crawled_at" field.

func (*HPMemberUpdate) SetDateOfBirth

func (hmu *HPMemberUpdate) SetDateOfBirth(t time.Time) *HPMemberUpdate

SetDateOfBirth sets the "date_of_birth" field.

func (*HPMemberUpdate) SetErrorCount

func (hmu *HPMemberUpdate) SetErrorCount(i int) *HPMemberUpdate

SetErrorCount sets the "error_count" field.

func (*HPMemberUpdate) SetGraduateAt

func (hmu *HPMemberUpdate) SetGraduateAt(t time.Time) *HPMemberUpdate

SetGraduateAt sets the "graduate_at" field.

func (*HPMemberUpdate) SetHometown

func (hmu *HPMemberUpdate) SetHometown(s string) *HPMemberUpdate

SetHometown sets the "hometown" field.

func (*HPMemberUpdate) SetJoinAt

func (hmu *HPMemberUpdate) SetJoinAt(t time.Time) *HPMemberUpdate

SetJoinAt sets the "join_at" field.

func (*HPMemberUpdate) SetKey

func (hmu *HPMemberUpdate) SetKey(s string) *HPMemberUpdate

SetKey sets the "key" field.

func (*HPMemberUpdate) SetLastErrorMessage

func (hmu *HPMemberUpdate) SetLastErrorMessage(s string) *HPMemberUpdate

SetLastErrorMessage sets the "last_error_message" field.

func (*HPMemberUpdate) SetManuallyModified

func (hmu *HPMemberUpdate) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPMemberUpdate

SetManuallyModified sets the "manually_modified" field.

func (*HPMemberUpdate) SetName

func (hmu *HPMemberUpdate) SetName(s string) *HPMemberUpdate

SetName sets the "name" field.

func (*HPMemberUpdate) SetNameKana

func (hmu *HPMemberUpdate) SetNameKana(s string) *HPMemberUpdate

SetNameKana sets the "name_kana" field.

func (*HPMemberUpdate) SetNillableArtistID

func (hmu *HPMemberUpdate) SetNillableArtistID(i *int) *HPMemberUpdate

SetNillableArtistID sets the "artist_id" field if the given value is not nil.

func (*HPMemberUpdate) SetNillableCrawledAt

func (hmu *HPMemberUpdate) SetNillableCrawledAt(t *time.Time) *HPMemberUpdate

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPMemberUpdate) SetNillableErrorCount

func (hmu *HPMemberUpdate) SetNillableErrorCount(i *int) *HPMemberUpdate

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPMemberUpdate) SetNillableGraduateAt

func (hmu *HPMemberUpdate) SetNillableGraduateAt(t *time.Time) *HPMemberUpdate

SetNillableGraduateAt sets the "graduate_at" field if the given value is not nil.

func (*HPMemberUpdate) SetNillableJoinAt

func (hmu *HPMemberUpdate) SetNillableJoinAt(t *time.Time) *HPMemberUpdate

SetNillableJoinAt sets the "join_at" field if the given value is not nil.

func (*HPMemberUpdate) SetNillableLastErrorMessage

func (hmu *HPMemberUpdate) SetNillableLastErrorMessage(s *string) *HPMemberUpdate

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPMemberUpdate) SetNillableRecrawlRequired

func (hmu *HPMemberUpdate) SetNillableRecrawlRequired(b *bool) *HPMemberUpdate

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPMemberUpdate) SetNillableUpdatedAt

func (hmu *HPMemberUpdate) SetNillableUpdatedAt(t *time.Time) *HPMemberUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPMemberUpdate) SetRecrawlRequired

func (hmu *HPMemberUpdate) SetRecrawlRequired(b bool) *HPMemberUpdate

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPMemberUpdate) SetThumbnailURL

func (hmu *HPMemberUpdate) SetThumbnailURL(s string) *HPMemberUpdate

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPMemberUpdate) SetUpdatedAt

func (hmu *HPMemberUpdate) SetUpdatedAt(t time.Time) *HPMemberUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPMemberUpdate) Where

func (hmu *HPMemberUpdate) Where(ps ...predicate.HPMember) *HPMemberUpdate

Where appends a list predicates to the HPMemberUpdate builder.

type HPMemberUpdateOne

HPMemberUpdateOne is the builder for updating a single HPMember entity.

type HPMemberUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPMemberUpdateOne) AddAssetIDs

func (hmuo *HPMemberUpdateOne) AddAssetIDs(ids ...int) *HPMemberUpdateOne

AddAssetIDs adds the "assets" edge to the HPAsset entity by IDs.

func (*HPMemberUpdateOne) AddAssets

func (hmuo *HPMemberUpdateOne) AddAssets(h ...*HPAsset) *HPMemberUpdateOne

AddAssets adds the "assets" edges to the HPAsset entity.

func (*HPMemberUpdateOne) AddErrorCount

func (hmuo *HPMemberUpdateOne) AddErrorCount(i int) *HPMemberUpdateOne

AddErrorCount adds i to the "error_count" field.

func (*HPMemberUpdateOne) AddFollowedBy

func (hmuo *HPMemberUpdateOne) AddFollowedBy(h ...*HPFollow) *HPMemberUpdateOne

AddFollowedBy adds the "followed_by" edges to the HPFollow entity.

func (*HPMemberUpdateOne) AddFollowedByIDs

func (hmuo *HPMemberUpdateOne) AddFollowedByIDs(ids ...int) *HPMemberUpdateOne

AddFollowedByIDs adds the "followed_by" edge to the HPFollow entity by IDs.

func (*HPMemberUpdateOne) AddOwningAmebloPostIDs

func (hmuo *HPMemberUpdateOne) AddOwningAmebloPostIDs(ids ...int) *HPMemberUpdateOne

AddOwningAmebloPostIDs adds the "owning_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberUpdateOne) AddOwningAmebloPosts

func (hmuo *HPMemberUpdateOne) AddOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne

AddOwningAmebloPosts adds the "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdateOne) AddOwningFeed

func (hmuo *HPMemberUpdateOne) AddOwningFeed(h ...*HPFeedItem) *HPMemberUpdateOne

AddOwningFeed adds the "owning_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdateOne) AddOwningFeedIDs

func (hmuo *HPMemberUpdateOne) AddOwningFeedIDs(ids ...int) *HPMemberUpdateOne

AddOwningFeedIDs adds the "owning_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberUpdateOne) AddOwningIgPostIDs

func (hmuo *HPMemberUpdateOne) AddOwningIgPostIDs(ids ...int) *HPMemberUpdateOne

AddOwningIgPostIDs adds the "owning_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberUpdateOne) AddOwningIgPosts

func (hmuo *HPMemberUpdateOne) AddOwningIgPosts(h ...*HPIgPost) *HPMemberUpdateOne

AddOwningIgPosts adds the "owning_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdateOne) AddTaggedAmebloPostIDs

func (hmuo *HPMemberUpdateOne) AddTaggedAmebloPostIDs(ids ...int) *HPMemberUpdateOne

AddTaggedAmebloPostIDs adds the "tagged_ameblo_posts" edge to the HPAmebloPost entity by IDs.

func (*HPMemberUpdateOne) AddTaggedAmebloPosts

func (hmuo *HPMemberUpdateOne) AddTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne

AddTaggedAmebloPosts adds the "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdateOne) AddTaggedElineupMallItemIDs

func (hmuo *HPMemberUpdateOne) AddTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdateOne

AddTaggedElineupMallItemIDs adds the "tagged_elineup_mall_items" edge to the HPElineupMallItem entity by IDs.

func (*HPMemberUpdateOne) AddTaggedElineupMallItems

func (hmuo *HPMemberUpdateOne) AddTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdateOne

AddTaggedElineupMallItems adds the "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPMemberUpdateOne) AddTaggedFeed

func (hmuo *HPMemberUpdateOne) AddTaggedFeed(h ...*HPFeedItem) *HPMemberUpdateOne

AddTaggedFeed adds the "tagged_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdateOne) AddTaggedFeedIDs

func (hmuo *HPMemberUpdateOne) AddTaggedFeedIDs(ids ...int) *HPMemberUpdateOne

AddTaggedFeedIDs adds the "tagged_feed" edge to the HPFeedItem entity by IDs.

func (*HPMemberUpdateOne) AddTaggedIgPostIDs

func (hmuo *HPMemberUpdateOne) AddTaggedIgPostIDs(ids ...int) *HPMemberUpdateOne

AddTaggedIgPostIDs adds the "tagged_ig_posts" edge to the HPIgPost entity by IDs.

func (*HPMemberUpdateOne) AddTaggedIgPosts

func (hmuo *HPMemberUpdateOne) AddTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdateOne

AddTaggedIgPosts adds the "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdateOne) ClearArtist

func (hmuo *HPMemberUpdateOne) ClearArtist() *HPMemberUpdateOne

ClearArtist clears the "artist" edge to the HPArtist entity.

func (*HPMemberUpdateOne) ClearArtistID

func (hmuo *HPMemberUpdateOne) ClearArtistID() *HPMemberUpdateOne

ClearArtistID clears the value of the "artist_id" field.

func (*HPMemberUpdateOne) ClearAssets

func (hmuo *HPMemberUpdateOne) ClearAssets() *HPMemberUpdateOne

ClearAssets clears all "assets" edges to the HPAsset entity.

func (*HPMemberUpdateOne) ClearCrawledAt

func (hmuo *HPMemberUpdateOne) ClearCrawledAt() *HPMemberUpdateOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPMemberUpdateOne) ClearFollowedBy

func (hmuo *HPMemberUpdateOne) ClearFollowedBy() *HPMemberUpdateOne

ClearFollowedBy clears all "followed_by" edges to the HPFollow entity.

func (*HPMemberUpdateOne) ClearGraduateAt

func (hmuo *HPMemberUpdateOne) ClearGraduateAt() *HPMemberUpdateOne

ClearGraduateAt clears the value of the "graduate_at" field.

func (*HPMemberUpdateOne) ClearJoinAt

func (hmuo *HPMemberUpdateOne) ClearJoinAt() *HPMemberUpdateOne

ClearJoinAt clears the value of the "join_at" field.

func (*HPMemberUpdateOne) ClearLastErrorMessage

func (hmuo *HPMemberUpdateOne) ClearLastErrorMessage() *HPMemberUpdateOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPMemberUpdateOne) ClearManuallyModified

func (hmuo *HPMemberUpdateOne) ClearManuallyModified() *HPMemberUpdateOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPMemberUpdateOne) ClearOwningAmebloPosts

func (hmuo *HPMemberUpdateOne) ClearOwningAmebloPosts() *HPMemberUpdateOne

ClearOwningAmebloPosts clears all "owning_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdateOne) ClearOwningFeed

func (hmuo *HPMemberUpdateOne) ClearOwningFeed() *HPMemberUpdateOne

ClearOwningFeed clears all "owning_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdateOne) ClearOwningIgPosts

func (hmuo *HPMemberUpdateOne) ClearOwningIgPosts() *HPMemberUpdateOne

ClearOwningIgPosts clears all "owning_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdateOne) ClearRecrawlRequired

func (hmuo *HPMemberUpdateOne) ClearRecrawlRequired() *HPMemberUpdateOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPMemberUpdateOne) ClearTaggedAmebloPosts

func (hmuo *HPMemberUpdateOne) ClearTaggedAmebloPosts() *HPMemberUpdateOne

ClearTaggedAmebloPosts clears all "tagged_ameblo_posts" edges to the HPAmebloPost entity.

func (*HPMemberUpdateOne) ClearTaggedElineupMallItems

func (hmuo *HPMemberUpdateOne) ClearTaggedElineupMallItems() *HPMemberUpdateOne

ClearTaggedElineupMallItems clears all "tagged_elineup_mall_items" edges to the HPElineupMallItem entity.

func (*HPMemberUpdateOne) ClearTaggedFeed

func (hmuo *HPMemberUpdateOne) ClearTaggedFeed() *HPMemberUpdateOne

ClearTaggedFeed clears all "tagged_feed" edges to the HPFeedItem entity.

func (*HPMemberUpdateOne) ClearTaggedIgPosts

func (hmuo *HPMemberUpdateOne) ClearTaggedIgPosts() *HPMemberUpdateOne

ClearTaggedIgPosts clears all "tagged_ig_posts" edges to the HPIgPost entity.

func (*HPMemberUpdateOne) ClearUpdatedAt

func (hmuo *HPMemberUpdateOne) ClearUpdatedAt() *HPMemberUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPMemberUpdateOne) Exec

func (hmuo *HPMemberUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPMemberUpdateOne) ExecX

func (hmuo *HPMemberUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberUpdateOne) Mutation

func (hmuo *HPMemberUpdateOne) Mutation() *HPMemberMutation

Mutation returns the HPMemberMutation object of the builder.

func (*HPMemberUpdateOne) RemoveAssetIDs

func (hmuo *HPMemberUpdateOne) RemoveAssetIDs(ids ...int) *HPMemberUpdateOne

RemoveAssetIDs removes the "assets" edge to HPAsset entities by IDs.

func (*HPMemberUpdateOne) RemoveAssets

func (hmuo *HPMemberUpdateOne) RemoveAssets(h ...*HPAsset) *HPMemberUpdateOne

RemoveAssets removes "assets" edges to HPAsset entities.

func (*HPMemberUpdateOne) RemoveFollowedBy

func (hmuo *HPMemberUpdateOne) RemoveFollowedBy(h ...*HPFollow) *HPMemberUpdateOne

RemoveFollowedBy removes "followed_by" edges to HPFollow entities.

func (*HPMemberUpdateOne) RemoveFollowedByIDs

func (hmuo *HPMemberUpdateOne) RemoveFollowedByIDs(ids ...int) *HPMemberUpdateOne

RemoveFollowedByIDs removes the "followed_by" edge to HPFollow entities by IDs.

func (*HPMemberUpdateOne) RemoveOwningAmebloPostIDs

func (hmuo *HPMemberUpdateOne) RemoveOwningAmebloPostIDs(ids ...int) *HPMemberUpdateOne

RemoveOwningAmebloPostIDs removes the "owning_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPMemberUpdateOne) RemoveOwningAmebloPosts

func (hmuo *HPMemberUpdateOne) RemoveOwningAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne

RemoveOwningAmebloPosts removes "owning_ameblo_posts" edges to HPAmebloPost entities.

func (*HPMemberUpdateOne) RemoveOwningFeed

func (hmuo *HPMemberUpdateOne) RemoveOwningFeed(h ...*HPFeedItem) *HPMemberUpdateOne

RemoveOwningFeed removes "owning_feed" edges to HPFeedItem entities.

func (*HPMemberUpdateOne) RemoveOwningFeedIDs

func (hmuo *HPMemberUpdateOne) RemoveOwningFeedIDs(ids ...int) *HPMemberUpdateOne

RemoveOwningFeedIDs removes the "owning_feed" edge to HPFeedItem entities by IDs.

func (*HPMemberUpdateOne) RemoveOwningIgPostIDs

func (hmuo *HPMemberUpdateOne) RemoveOwningIgPostIDs(ids ...int) *HPMemberUpdateOne

RemoveOwningIgPostIDs removes the "owning_ig_posts" edge to HPIgPost entities by IDs.

func (*HPMemberUpdateOne) RemoveOwningIgPosts

func (hmuo *HPMemberUpdateOne) RemoveOwningIgPosts(h ...*HPIgPost) *HPMemberUpdateOne

RemoveOwningIgPosts removes "owning_ig_posts" edges to HPIgPost entities.

func (*HPMemberUpdateOne) RemoveTaggedAmebloPostIDs

func (hmuo *HPMemberUpdateOne) RemoveTaggedAmebloPostIDs(ids ...int) *HPMemberUpdateOne

RemoveTaggedAmebloPostIDs removes the "tagged_ameblo_posts" edge to HPAmebloPost entities by IDs.

func (*HPMemberUpdateOne) RemoveTaggedAmebloPosts

func (hmuo *HPMemberUpdateOne) RemoveTaggedAmebloPosts(h ...*HPAmebloPost) *HPMemberUpdateOne

RemoveTaggedAmebloPosts removes "tagged_ameblo_posts" edges to HPAmebloPost entities.

func (*HPMemberUpdateOne) RemoveTaggedElineupMallItemIDs

func (hmuo *HPMemberUpdateOne) RemoveTaggedElineupMallItemIDs(ids ...int) *HPMemberUpdateOne

RemoveTaggedElineupMallItemIDs removes the "tagged_elineup_mall_items" edge to HPElineupMallItem entities by IDs.

func (*HPMemberUpdateOne) RemoveTaggedElineupMallItems

func (hmuo *HPMemberUpdateOne) RemoveTaggedElineupMallItems(h ...*HPElineupMallItem) *HPMemberUpdateOne

RemoveTaggedElineupMallItems removes "tagged_elineup_mall_items" edges to HPElineupMallItem entities.

func (*HPMemberUpdateOne) RemoveTaggedFeed

func (hmuo *HPMemberUpdateOne) RemoveTaggedFeed(h ...*HPFeedItem) *HPMemberUpdateOne

RemoveTaggedFeed removes "tagged_feed" edges to HPFeedItem entities.

func (*HPMemberUpdateOne) RemoveTaggedFeedIDs

func (hmuo *HPMemberUpdateOne) RemoveTaggedFeedIDs(ids ...int) *HPMemberUpdateOne

RemoveTaggedFeedIDs removes the "tagged_feed" edge to HPFeedItem entities by IDs.

func (*HPMemberUpdateOne) RemoveTaggedIgPostIDs

func (hmuo *HPMemberUpdateOne) RemoveTaggedIgPostIDs(ids ...int) *HPMemberUpdateOne

RemoveTaggedIgPostIDs removes the "tagged_ig_posts" edge to HPIgPost entities by IDs.

func (*HPMemberUpdateOne) RemoveTaggedIgPosts

func (hmuo *HPMemberUpdateOne) RemoveTaggedIgPosts(h ...*HPIgPost) *HPMemberUpdateOne

RemoveTaggedIgPosts removes "tagged_ig_posts" edges to HPIgPost entities.

func (*HPMemberUpdateOne) Save

func (hmuo *HPMemberUpdateOne) Save(ctx context.Context) (*HPMember, error)

Save executes the query and returns the updated HPMember entity.

func (*HPMemberUpdateOne) SaveX

func (hmuo *HPMemberUpdateOne) SaveX(ctx context.Context) *HPMember

SaveX is like Save, but panics if an error occurs.

func (*HPMemberUpdateOne) Select

func (hmuo *HPMemberUpdateOne) Select(field string, fields ...string) *HPMemberUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPMemberUpdateOne) SetArtist

func (hmuo *HPMemberUpdateOne) SetArtist(h *HPArtist) *HPMemberUpdateOne

SetArtist sets the "artist" edge to the HPArtist entity.

func (*HPMemberUpdateOne) SetArtistID

func (hmuo *HPMemberUpdateOne) SetArtistID(i int) *HPMemberUpdateOne

SetArtistID sets the "artist_id" field.

func (*HPMemberUpdateOne) SetArtistKey

func (hmuo *HPMemberUpdateOne) SetArtistKey(s string) *HPMemberUpdateOne

SetArtistKey sets the "artist_key" field.

func (*HPMemberUpdateOne) SetBloodType

func (hmuo *HPMemberUpdateOne) SetBloodType(s string) *HPMemberUpdateOne

SetBloodType sets the "blood_type" field.

func (*HPMemberUpdateOne) SetCrawledAt

func (hmuo *HPMemberUpdateOne) SetCrawledAt(t time.Time) *HPMemberUpdateOne

SetCrawledAt sets the "crawled_at" field.

func (*HPMemberUpdateOne) SetDateOfBirth

func (hmuo *HPMemberUpdateOne) SetDateOfBirth(t time.Time) *HPMemberUpdateOne

SetDateOfBirth sets the "date_of_birth" field.

func (*HPMemberUpdateOne) SetErrorCount

func (hmuo *HPMemberUpdateOne) SetErrorCount(i int) *HPMemberUpdateOne

SetErrorCount sets the "error_count" field.

func (*HPMemberUpdateOne) SetGraduateAt

func (hmuo *HPMemberUpdateOne) SetGraduateAt(t time.Time) *HPMemberUpdateOne

SetGraduateAt sets the "graduate_at" field.

func (*HPMemberUpdateOne) SetHometown

func (hmuo *HPMemberUpdateOne) SetHometown(s string) *HPMemberUpdateOne

SetHometown sets the "hometown" field.

func (*HPMemberUpdateOne) SetJoinAt

func (hmuo *HPMemberUpdateOne) SetJoinAt(t time.Time) *HPMemberUpdateOne

SetJoinAt sets the "join_at" field.

func (*HPMemberUpdateOne) SetKey

func (hmuo *HPMemberUpdateOne) SetKey(s string) *HPMemberUpdateOne

SetKey sets the "key" field.

func (*HPMemberUpdateOne) SetLastErrorMessage

func (hmuo *HPMemberUpdateOne) SetLastErrorMessage(s string) *HPMemberUpdateOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPMemberUpdateOne) SetManuallyModified

func (hmuo *HPMemberUpdateOne) SetManuallyModified(jm *jsonfields.ManuallyModified) *HPMemberUpdateOne

SetManuallyModified sets the "manually_modified" field.

func (*HPMemberUpdateOne) SetName

func (hmuo *HPMemberUpdateOne) SetName(s string) *HPMemberUpdateOne

SetName sets the "name" field.

func (*HPMemberUpdateOne) SetNameKana

func (hmuo *HPMemberUpdateOne) SetNameKana(s string) *HPMemberUpdateOne

SetNameKana sets the "name_kana" field.

func (*HPMemberUpdateOne) SetNillableArtistID

func (hmuo *HPMemberUpdateOne) SetNillableArtistID(i *int) *HPMemberUpdateOne

SetNillableArtistID sets the "artist_id" field if the given value is not nil.

func (*HPMemberUpdateOne) SetNillableCrawledAt

func (hmuo *HPMemberUpdateOne) SetNillableCrawledAt(t *time.Time) *HPMemberUpdateOne

SetNillableCrawledAt sets the "crawled_at" field if the given value is not nil.

func (*HPMemberUpdateOne) SetNillableErrorCount

func (hmuo *HPMemberUpdateOne) SetNillableErrorCount(i *int) *HPMemberUpdateOne

SetNillableErrorCount sets the "error_count" field if the given value is not nil.

func (*HPMemberUpdateOne) SetNillableGraduateAt

func (hmuo *HPMemberUpdateOne) SetNillableGraduateAt(t *time.Time) *HPMemberUpdateOne

SetNillableGraduateAt sets the "graduate_at" field if the given value is not nil.

func (*HPMemberUpdateOne) SetNillableJoinAt

func (hmuo *HPMemberUpdateOne) SetNillableJoinAt(t *time.Time) *HPMemberUpdateOne

SetNillableJoinAt sets the "join_at" field if the given value is not nil.

func (*HPMemberUpdateOne) SetNillableLastErrorMessage

func (hmuo *HPMemberUpdateOne) SetNillableLastErrorMessage(s *string) *HPMemberUpdateOne

SetNillableLastErrorMessage sets the "last_error_message" field if the given value is not nil.

func (*HPMemberUpdateOne) SetNillableRecrawlRequired

func (hmuo *HPMemberUpdateOne) SetNillableRecrawlRequired(b *bool) *HPMemberUpdateOne

SetNillableRecrawlRequired sets the "recrawl_required" field if the given value is not nil.

func (*HPMemberUpdateOne) SetNillableUpdatedAt

func (hmuo *HPMemberUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPMemberUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPMemberUpdateOne) SetRecrawlRequired

func (hmuo *HPMemberUpdateOne) SetRecrawlRequired(b bool) *HPMemberUpdateOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPMemberUpdateOne) SetThumbnailURL

func (hmuo *HPMemberUpdateOne) SetThumbnailURL(s string) *HPMemberUpdateOne

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPMemberUpdateOne) SetUpdatedAt

func (hmuo *HPMemberUpdateOne) SetUpdatedAt(t time.Time) *HPMemberUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPMemberUpdateOne) Where

func (hmuo *HPMemberUpdateOne) Where(ps ...predicate.HPMember) *HPMemberUpdateOne

Where appends a list predicates to the HPMemberUpdate builder.

type HPMemberUpsert

HPMemberUpsert is the "OnConflict" setter.

type HPMemberUpsert struct {
    *sql.UpdateSet
}

func (*HPMemberUpsert) AddErrorCount

func (u *HPMemberUpsert) AddErrorCount(v int) *HPMemberUpsert

AddErrorCount adds v to the "error_count" field.

func (*HPMemberUpsert) ClearArtistID

func (u *HPMemberUpsert) ClearArtistID() *HPMemberUpsert

ClearArtistID clears the value of the "artist_id" field.

func (*HPMemberUpsert) ClearCrawledAt

func (u *HPMemberUpsert) ClearCrawledAt() *HPMemberUpsert

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPMemberUpsert) ClearGraduateAt

func (u *HPMemberUpsert) ClearGraduateAt() *HPMemberUpsert

ClearGraduateAt clears the value of the "graduate_at" field.

func (*HPMemberUpsert) ClearJoinAt

func (u *HPMemberUpsert) ClearJoinAt() *HPMemberUpsert

ClearJoinAt clears the value of the "join_at" field.

func (*HPMemberUpsert) ClearLastErrorMessage

func (u *HPMemberUpsert) ClearLastErrorMessage() *HPMemberUpsert

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPMemberUpsert) ClearManuallyModified

func (u *HPMemberUpsert) ClearManuallyModified() *HPMemberUpsert

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPMemberUpsert) ClearRecrawlRequired

func (u *HPMemberUpsert) ClearRecrawlRequired() *HPMemberUpsert

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPMemberUpsert) ClearUpdatedAt

func (u *HPMemberUpsert) ClearUpdatedAt() *HPMemberUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPMemberUpsert) SetArtistID

func (u *HPMemberUpsert) SetArtistID(v int) *HPMemberUpsert

SetArtistID sets the "artist_id" field.

func (*HPMemberUpsert) SetArtistKey

func (u *HPMemberUpsert) SetArtistKey(v string) *HPMemberUpsert

SetArtistKey sets the "artist_key" field.

func (*HPMemberUpsert) SetBloodType

func (u *HPMemberUpsert) SetBloodType(v string) *HPMemberUpsert

SetBloodType sets the "blood_type" field.

func (*HPMemberUpsert) SetCrawledAt

func (u *HPMemberUpsert) SetCrawledAt(v time.Time) *HPMemberUpsert

SetCrawledAt sets the "crawled_at" field.

func (*HPMemberUpsert) SetDateOfBirth

func (u *HPMemberUpsert) SetDateOfBirth(v time.Time) *HPMemberUpsert

SetDateOfBirth sets the "date_of_birth" field.

func (*HPMemberUpsert) SetErrorCount

func (u *HPMemberUpsert) SetErrorCount(v int) *HPMemberUpsert

SetErrorCount sets the "error_count" field.

func (*HPMemberUpsert) SetGraduateAt

func (u *HPMemberUpsert) SetGraduateAt(v time.Time) *HPMemberUpsert

SetGraduateAt sets the "graduate_at" field.

func (*HPMemberUpsert) SetHometown

func (u *HPMemberUpsert) SetHometown(v string) *HPMemberUpsert

SetHometown sets the "hometown" field.

func (*HPMemberUpsert) SetJoinAt

func (u *HPMemberUpsert) SetJoinAt(v time.Time) *HPMemberUpsert

SetJoinAt sets the "join_at" field.

func (*HPMemberUpsert) SetKey

func (u *HPMemberUpsert) SetKey(v string) *HPMemberUpsert

SetKey sets the "key" field.

func (*HPMemberUpsert) SetLastErrorMessage

func (u *HPMemberUpsert) SetLastErrorMessage(v string) *HPMemberUpsert

SetLastErrorMessage sets the "last_error_message" field.

func (*HPMemberUpsert) SetManuallyModified

func (u *HPMemberUpsert) SetManuallyModified(v *jsonfields.ManuallyModified) *HPMemberUpsert

SetManuallyModified sets the "manually_modified" field.

func (*HPMemberUpsert) SetName

func (u *HPMemberUpsert) SetName(v string) *HPMemberUpsert

SetName sets the "name" field.

func (*HPMemberUpsert) SetNameKana

func (u *HPMemberUpsert) SetNameKana(v string) *HPMemberUpsert

SetNameKana sets the "name_kana" field.

func (*HPMemberUpsert) SetRecrawlRequired

func (u *HPMemberUpsert) SetRecrawlRequired(v bool) *HPMemberUpsert

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPMemberUpsert) SetThumbnailURL

func (u *HPMemberUpsert) SetThumbnailURL(v string) *HPMemberUpsert

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPMemberUpsert) SetUpdatedAt

func (u *HPMemberUpsert) SetUpdatedAt(v time.Time) *HPMemberUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPMemberUpsert) UpdateArtistID

func (u *HPMemberUpsert) UpdateArtistID() *HPMemberUpsert

UpdateArtistID sets the "artist_id" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateArtistKey

func (u *HPMemberUpsert) UpdateArtistKey() *HPMemberUpsert

UpdateArtistKey sets the "artist_key" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateBloodType

func (u *HPMemberUpsert) UpdateBloodType() *HPMemberUpsert

UpdateBloodType sets the "blood_type" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateCrawledAt

func (u *HPMemberUpsert) UpdateCrawledAt() *HPMemberUpsert

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateDateOfBirth

func (u *HPMemberUpsert) UpdateDateOfBirth() *HPMemberUpsert

UpdateDateOfBirth sets the "date_of_birth" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateErrorCount

func (u *HPMemberUpsert) UpdateErrorCount() *HPMemberUpsert

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateGraduateAt

func (u *HPMemberUpsert) UpdateGraduateAt() *HPMemberUpsert

UpdateGraduateAt sets the "graduate_at" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateHometown

func (u *HPMemberUpsert) UpdateHometown() *HPMemberUpsert

UpdateHometown sets the "hometown" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateJoinAt

func (u *HPMemberUpsert) UpdateJoinAt() *HPMemberUpsert

UpdateJoinAt sets the "join_at" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateKey

func (u *HPMemberUpsert) UpdateKey() *HPMemberUpsert

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateLastErrorMessage

func (u *HPMemberUpsert) UpdateLastErrorMessage() *HPMemberUpsert

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateManuallyModified

func (u *HPMemberUpsert) UpdateManuallyModified() *HPMemberUpsert

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateName

func (u *HPMemberUpsert) UpdateName() *HPMemberUpsert

UpdateName sets the "name" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateNameKana

func (u *HPMemberUpsert) UpdateNameKana() *HPMemberUpsert

UpdateNameKana sets the "name_kana" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateRecrawlRequired

func (u *HPMemberUpsert) UpdateRecrawlRequired() *HPMemberUpsert

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateThumbnailURL

func (u *HPMemberUpsert) UpdateThumbnailURL() *HPMemberUpsert

UpdateThumbnailURL sets the "thumbnail_url" field to the value that was provided on create.

func (*HPMemberUpsert) UpdateUpdatedAt

func (u *HPMemberUpsert) UpdateUpdatedAt() *HPMemberUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPMemberUpsertBulk

HPMemberUpsertBulk is the builder for "upsert"-ing a bulk of HPMember nodes.

type HPMemberUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPMemberUpsertBulk) AddErrorCount

func (u *HPMemberUpsertBulk) AddErrorCount(v int) *HPMemberUpsertBulk

AddErrorCount adds v to the "error_count" field.

func (*HPMemberUpsertBulk) ClearArtistID

func (u *HPMemberUpsertBulk) ClearArtistID() *HPMemberUpsertBulk

ClearArtistID clears the value of the "artist_id" field.

func (*HPMemberUpsertBulk) ClearCrawledAt

func (u *HPMemberUpsertBulk) ClearCrawledAt() *HPMemberUpsertBulk

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPMemberUpsertBulk) ClearGraduateAt

func (u *HPMemberUpsertBulk) ClearGraduateAt() *HPMemberUpsertBulk

ClearGraduateAt clears the value of the "graduate_at" field.

func (*HPMemberUpsertBulk) ClearJoinAt

func (u *HPMemberUpsertBulk) ClearJoinAt() *HPMemberUpsertBulk

ClearJoinAt clears the value of the "join_at" field.

func (*HPMemberUpsertBulk) ClearLastErrorMessage

func (u *HPMemberUpsertBulk) ClearLastErrorMessage() *HPMemberUpsertBulk

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPMemberUpsertBulk) ClearManuallyModified

func (u *HPMemberUpsertBulk) ClearManuallyModified() *HPMemberUpsertBulk

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPMemberUpsertBulk) ClearRecrawlRequired

func (u *HPMemberUpsertBulk) ClearRecrawlRequired() *HPMemberUpsertBulk

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPMemberUpsertBulk) ClearUpdatedAt

func (u *HPMemberUpsertBulk) ClearUpdatedAt() *HPMemberUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPMemberUpsertBulk) DoNothing

func (u *HPMemberUpsertBulk) DoNothing() *HPMemberUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPMemberUpsertBulk) Exec

func (u *HPMemberUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPMemberUpsertBulk) ExecX

func (u *HPMemberUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberUpsertBulk) Ignore

func (u *HPMemberUpsertBulk) Ignore() *HPMemberUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPMember.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPMemberUpsertBulk) SetArtistID

func (u *HPMemberUpsertBulk) SetArtistID(v int) *HPMemberUpsertBulk

SetArtistID sets the "artist_id" field.

func (*HPMemberUpsertBulk) SetArtistKey

func (u *HPMemberUpsertBulk) SetArtistKey(v string) *HPMemberUpsertBulk

SetArtistKey sets the "artist_key" field.

func (*HPMemberUpsertBulk) SetBloodType

func (u *HPMemberUpsertBulk) SetBloodType(v string) *HPMemberUpsertBulk

SetBloodType sets the "blood_type" field.

func (*HPMemberUpsertBulk) SetCrawledAt

func (u *HPMemberUpsertBulk) SetCrawledAt(v time.Time) *HPMemberUpsertBulk

SetCrawledAt sets the "crawled_at" field.

func (*HPMemberUpsertBulk) SetDateOfBirth

func (u *HPMemberUpsertBulk) SetDateOfBirth(v time.Time) *HPMemberUpsertBulk

SetDateOfBirth sets the "date_of_birth" field.

func (*HPMemberUpsertBulk) SetErrorCount

func (u *HPMemberUpsertBulk) SetErrorCount(v int) *HPMemberUpsertBulk

SetErrorCount sets the "error_count" field.

func (*HPMemberUpsertBulk) SetGraduateAt

func (u *HPMemberUpsertBulk) SetGraduateAt(v time.Time) *HPMemberUpsertBulk

SetGraduateAt sets the "graduate_at" field.

func (*HPMemberUpsertBulk) SetHometown

func (u *HPMemberUpsertBulk) SetHometown(v string) *HPMemberUpsertBulk

SetHometown sets the "hometown" field.

func (*HPMemberUpsertBulk) SetJoinAt

func (u *HPMemberUpsertBulk) SetJoinAt(v time.Time) *HPMemberUpsertBulk

SetJoinAt sets the "join_at" field.

func (*HPMemberUpsertBulk) SetKey

func (u *HPMemberUpsertBulk) SetKey(v string) *HPMemberUpsertBulk

SetKey sets the "key" field.

func (*HPMemberUpsertBulk) SetLastErrorMessage

func (u *HPMemberUpsertBulk) SetLastErrorMessage(v string) *HPMemberUpsertBulk

SetLastErrorMessage sets the "last_error_message" field.

func (*HPMemberUpsertBulk) SetManuallyModified

func (u *HPMemberUpsertBulk) SetManuallyModified(v *jsonfields.ManuallyModified) *HPMemberUpsertBulk

SetManuallyModified sets the "manually_modified" field.

func (*HPMemberUpsertBulk) SetName

func (u *HPMemberUpsertBulk) SetName(v string) *HPMemberUpsertBulk

SetName sets the "name" field.

func (*HPMemberUpsertBulk) SetNameKana

func (u *HPMemberUpsertBulk) SetNameKana(v string) *HPMemberUpsertBulk

SetNameKana sets the "name_kana" field.

func (*HPMemberUpsertBulk) SetRecrawlRequired

func (u *HPMemberUpsertBulk) SetRecrawlRequired(v bool) *HPMemberUpsertBulk

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPMemberUpsertBulk) SetThumbnailURL

func (u *HPMemberUpsertBulk) SetThumbnailURL(v string) *HPMemberUpsertBulk

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPMemberUpsertBulk) SetUpdatedAt

func (u *HPMemberUpsertBulk) SetUpdatedAt(v time.Time) *HPMemberUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPMemberUpsertBulk) Update

func (u *HPMemberUpsertBulk) Update(set func(*HPMemberUpsert)) *HPMemberUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPMemberCreateBulk.OnConflict documentation for more info.

func (*HPMemberUpsertBulk) UpdateArtistID

func (u *HPMemberUpsertBulk) UpdateArtistID() *HPMemberUpsertBulk

UpdateArtistID sets the "artist_id" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateArtistKey

func (u *HPMemberUpsertBulk) UpdateArtistKey() *HPMemberUpsertBulk

UpdateArtistKey sets the "artist_key" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateBloodType

func (u *HPMemberUpsertBulk) UpdateBloodType() *HPMemberUpsertBulk

UpdateBloodType sets the "blood_type" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateCrawledAt

func (u *HPMemberUpsertBulk) UpdateCrawledAt() *HPMemberUpsertBulk

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateDateOfBirth

func (u *HPMemberUpsertBulk) UpdateDateOfBirth() *HPMemberUpsertBulk

UpdateDateOfBirth sets the "date_of_birth" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateErrorCount

func (u *HPMemberUpsertBulk) UpdateErrorCount() *HPMemberUpsertBulk

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateGraduateAt

func (u *HPMemberUpsertBulk) UpdateGraduateAt() *HPMemberUpsertBulk

UpdateGraduateAt sets the "graduate_at" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateHometown

func (u *HPMemberUpsertBulk) UpdateHometown() *HPMemberUpsertBulk

UpdateHometown sets the "hometown" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateJoinAt

func (u *HPMemberUpsertBulk) UpdateJoinAt() *HPMemberUpsertBulk

UpdateJoinAt sets the "join_at" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateKey

func (u *HPMemberUpsertBulk) UpdateKey() *HPMemberUpsertBulk

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateLastErrorMessage

func (u *HPMemberUpsertBulk) UpdateLastErrorMessage() *HPMemberUpsertBulk

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateManuallyModified

func (u *HPMemberUpsertBulk) UpdateManuallyModified() *HPMemberUpsertBulk

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateName

func (u *HPMemberUpsertBulk) UpdateName() *HPMemberUpsertBulk

UpdateName sets the "name" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateNameKana

func (u *HPMemberUpsertBulk) UpdateNameKana() *HPMemberUpsertBulk

UpdateNameKana sets the "name_kana" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateNewValues

func (u *HPMemberUpsertBulk) UpdateNewValues() *HPMemberUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPMember.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPMemberUpsertBulk) UpdateRecrawlRequired

func (u *HPMemberUpsertBulk) UpdateRecrawlRequired() *HPMemberUpsertBulk

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateThumbnailURL

func (u *HPMemberUpsertBulk) UpdateThumbnailURL() *HPMemberUpsertBulk

UpdateThumbnailURL sets the "thumbnail_url" field to the value that was provided on create.

func (*HPMemberUpsertBulk) UpdateUpdatedAt

func (u *HPMemberUpsertBulk) UpdateUpdatedAt() *HPMemberUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPMemberUpsertOne

HPMemberUpsertOne is the builder for "upsert"-ing

one HPMember node.
type HPMemberUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPMemberUpsertOne) AddErrorCount

func (u *HPMemberUpsertOne) AddErrorCount(v int) *HPMemberUpsertOne

AddErrorCount adds v to the "error_count" field.

func (*HPMemberUpsertOne) ClearArtistID

func (u *HPMemberUpsertOne) ClearArtistID() *HPMemberUpsertOne

ClearArtistID clears the value of the "artist_id" field.

func (*HPMemberUpsertOne) ClearCrawledAt

func (u *HPMemberUpsertOne) ClearCrawledAt() *HPMemberUpsertOne

ClearCrawledAt clears the value of the "crawled_at" field.

func (*HPMemberUpsertOne) ClearGraduateAt

func (u *HPMemberUpsertOne) ClearGraduateAt() *HPMemberUpsertOne

ClearGraduateAt clears the value of the "graduate_at" field.

func (*HPMemberUpsertOne) ClearJoinAt

func (u *HPMemberUpsertOne) ClearJoinAt() *HPMemberUpsertOne

ClearJoinAt clears the value of the "join_at" field.

func (*HPMemberUpsertOne) ClearLastErrorMessage

func (u *HPMemberUpsertOne) ClearLastErrorMessage() *HPMemberUpsertOne

ClearLastErrorMessage clears the value of the "last_error_message" field.

func (*HPMemberUpsertOne) ClearManuallyModified

func (u *HPMemberUpsertOne) ClearManuallyModified() *HPMemberUpsertOne

ClearManuallyModified clears the value of the "manually_modified" field.

func (*HPMemberUpsertOne) ClearRecrawlRequired

func (u *HPMemberUpsertOne) ClearRecrawlRequired() *HPMemberUpsertOne

ClearRecrawlRequired clears the value of the "recrawl_required" field.

func (*HPMemberUpsertOne) ClearUpdatedAt

func (u *HPMemberUpsertOne) ClearUpdatedAt() *HPMemberUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPMemberUpsertOne) DoNothing

func (u *HPMemberUpsertOne) DoNothing() *HPMemberUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPMemberUpsertOne) Exec

func (u *HPMemberUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPMemberUpsertOne) ExecX

func (u *HPMemberUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPMemberUpsertOne) ID

func (u *HPMemberUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPMemberUpsertOne) IDX

func (u *HPMemberUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPMemberUpsertOne) Ignore

func (u *HPMemberUpsertOne) Ignore() *HPMemberUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPMember.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPMemberUpsertOne) SetArtistID

func (u *HPMemberUpsertOne) SetArtistID(v int) *HPMemberUpsertOne

SetArtistID sets the "artist_id" field.

func (*HPMemberUpsertOne) SetArtistKey

func (u *HPMemberUpsertOne) SetArtistKey(v string) *HPMemberUpsertOne

SetArtistKey sets the "artist_key" field.

func (*HPMemberUpsertOne) SetBloodType

func (u *HPMemberUpsertOne) SetBloodType(v string) *HPMemberUpsertOne

SetBloodType sets the "blood_type" field.

func (*HPMemberUpsertOne) SetCrawledAt

func (u *HPMemberUpsertOne) SetCrawledAt(v time.Time) *HPMemberUpsertOne

SetCrawledAt sets the "crawled_at" field.

func (*HPMemberUpsertOne) SetDateOfBirth

func (u *HPMemberUpsertOne) SetDateOfBirth(v time.Time) *HPMemberUpsertOne

SetDateOfBirth sets the "date_of_birth" field.

func (*HPMemberUpsertOne) SetErrorCount

func (u *HPMemberUpsertOne) SetErrorCount(v int) *HPMemberUpsertOne

SetErrorCount sets the "error_count" field.

func (*HPMemberUpsertOne) SetGraduateAt

func (u *HPMemberUpsertOne) SetGraduateAt(v time.Time) *HPMemberUpsertOne

SetGraduateAt sets the "graduate_at" field.

func (*HPMemberUpsertOne) SetHometown

func (u *HPMemberUpsertOne) SetHometown(v string) *HPMemberUpsertOne

SetHometown sets the "hometown" field.

func (*HPMemberUpsertOne) SetJoinAt

func (u *HPMemberUpsertOne) SetJoinAt(v time.Time) *HPMemberUpsertOne

SetJoinAt sets the "join_at" field.

func (*HPMemberUpsertOne) SetKey

func (u *HPMemberUpsertOne) SetKey(v string) *HPMemberUpsertOne

SetKey sets the "key" field.

func (*HPMemberUpsertOne) SetLastErrorMessage

func (u *HPMemberUpsertOne) SetLastErrorMessage(v string) *HPMemberUpsertOne

SetLastErrorMessage sets the "last_error_message" field.

func (*HPMemberUpsertOne) SetManuallyModified

func (u *HPMemberUpsertOne) SetManuallyModified(v *jsonfields.ManuallyModified) *HPMemberUpsertOne

SetManuallyModified sets the "manually_modified" field.

func (*HPMemberUpsertOne) SetName

func (u *HPMemberUpsertOne) SetName(v string) *HPMemberUpsertOne

SetName sets the "name" field.

func (*HPMemberUpsertOne) SetNameKana

func (u *HPMemberUpsertOne) SetNameKana(v string) *HPMemberUpsertOne

SetNameKana sets the "name_kana" field.

func (*HPMemberUpsertOne) SetRecrawlRequired

func (u *HPMemberUpsertOne) SetRecrawlRequired(v bool) *HPMemberUpsertOne

SetRecrawlRequired sets the "recrawl_required" field.

func (*HPMemberUpsertOne) SetThumbnailURL

func (u *HPMemberUpsertOne) SetThumbnailURL(v string) *HPMemberUpsertOne

SetThumbnailURL sets the "thumbnail_url" field.

func (*HPMemberUpsertOne) SetUpdatedAt

func (u *HPMemberUpsertOne) SetUpdatedAt(v time.Time) *HPMemberUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPMemberUpsertOne) Update

func (u *HPMemberUpsertOne) Update(set func(*HPMemberUpsert)) *HPMemberUpsertOne

Update allows overriding fields `UPDATE` values. See the HPMemberCreate.OnConflict documentation for more info.

func (*HPMemberUpsertOne) UpdateArtistID

func (u *HPMemberUpsertOne) UpdateArtistID() *HPMemberUpsertOne

UpdateArtistID sets the "artist_id" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateArtistKey

func (u *HPMemberUpsertOne) UpdateArtistKey() *HPMemberUpsertOne

UpdateArtistKey sets the "artist_key" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateBloodType

func (u *HPMemberUpsertOne) UpdateBloodType() *HPMemberUpsertOne

UpdateBloodType sets the "blood_type" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateCrawledAt

func (u *HPMemberUpsertOne) UpdateCrawledAt() *HPMemberUpsertOne

UpdateCrawledAt sets the "crawled_at" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateDateOfBirth

func (u *HPMemberUpsertOne) UpdateDateOfBirth() *HPMemberUpsertOne

UpdateDateOfBirth sets the "date_of_birth" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateErrorCount

func (u *HPMemberUpsertOne) UpdateErrorCount() *HPMemberUpsertOne

UpdateErrorCount sets the "error_count" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateGraduateAt

func (u *HPMemberUpsertOne) UpdateGraduateAt() *HPMemberUpsertOne

UpdateGraduateAt sets the "graduate_at" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateHometown

func (u *HPMemberUpsertOne) UpdateHometown() *HPMemberUpsertOne

UpdateHometown sets the "hometown" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateJoinAt

func (u *HPMemberUpsertOne) UpdateJoinAt() *HPMemberUpsertOne

UpdateJoinAt sets the "join_at" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateKey

func (u *HPMemberUpsertOne) UpdateKey() *HPMemberUpsertOne

UpdateKey sets the "key" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateLastErrorMessage

func (u *HPMemberUpsertOne) UpdateLastErrorMessage() *HPMemberUpsertOne

UpdateLastErrorMessage sets the "last_error_message" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateManuallyModified

func (u *HPMemberUpsertOne) UpdateManuallyModified() *HPMemberUpsertOne

UpdateManuallyModified sets the "manually_modified" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateName

func (u *HPMemberUpsertOne) UpdateName() *HPMemberUpsertOne

UpdateName sets the "name" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateNameKana

func (u *HPMemberUpsertOne) UpdateNameKana() *HPMemberUpsertOne

UpdateNameKana sets the "name_kana" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateNewValues

func (u *HPMemberUpsertOne) UpdateNewValues() *HPMemberUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPMember.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPMemberUpsertOne) UpdateRecrawlRequired

func (u *HPMemberUpsertOne) UpdateRecrawlRequired() *HPMemberUpsertOne

UpdateRecrawlRequired sets the "recrawl_required" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateThumbnailURL

func (u *HPMemberUpsertOne) UpdateThumbnailURL() *HPMemberUpsertOne

UpdateThumbnailURL sets the "thumbnail_url" field to the value that was provided on create.

func (*HPMemberUpsertOne) UpdateUpdatedAt

func (u *HPMemberUpsertOne) UpdateUpdatedAt() *HPMemberUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPMembers

HPMembers is a parsable slice of HPMember.

type HPMembers []*HPMember

type HPSortHistories

HPSortHistories is a parsable slice of HPSortHistory.

type HPSortHistories []*HPSortHistory

type HPSortHistory

HPSortHistory is the model entity for the HPSortHistory schema.

type HPSortHistory struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // SortResult holds the value of the "sort_result" field.
    SortResult jsonfields.HPSortResult `json:"sort_result,omitempty"`
    // OwnerUserID holds the value of the "owner_user_id" field.
    OwnerUserID *int `json:"owner_user_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPSortHistoryQuery when eager-loading is set.
    Edges HPSortHistoryEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPSortHistory) IsNode

func (n *HPSortHistory) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPSortHistory) Owner

func (hsh *HPSortHistory) Owner(ctx context.Context) (*User, error)

func (*HPSortHistory) QueryOwner

func (hsh *HPSortHistory) QueryOwner() *UserQuery

QueryOwner queries the "owner" edge of the HPSortHistory entity.

func (*HPSortHistory) String

func (hsh *HPSortHistory) String() string

String implements the fmt.Stringer.

func (*HPSortHistory) ToEdge

func (hsh *HPSortHistory) ToEdge(order *HPSortHistoryOrder) *HPSortHistoryEdge

ToEdge converts HPSortHistory into HPSortHistoryEdge.

func (*HPSortHistory) Unwrap

func (hsh *HPSortHistory) Unwrap() *HPSortHistory

Unwrap unwraps the HPSortHistory entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPSortHistory) Update

func (hsh *HPSortHistory) Update() *HPSortHistoryUpdateOne

Update returns a builder for updating this HPSortHistory. Note that you need to call HPSortHistory.Unwrap() before calling this method if this HPSortHistory was returned from a transaction, and the transaction was committed or rolled back.

func (*HPSortHistory) Value

func (hsh *HPSortHistory) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPSortHistory. This includes values selected through modifiers, order, etc.

type HPSortHistoryClient

HPSortHistoryClient is a client for the HPSortHistory schema.

type HPSortHistoryClient struct {
    // contains filtered or unexported fields
}

func NewHPSortHistoryClient

func NewHPSortHistoryClient(c config) *HPSortHistoryClient

NewHPSortHistoryClient returns a client for the HPSortHistory from the given config.

func (*HPSortHistoryClient) Create

func (c *HPSortHistoryClient) Create() *HPSortHistoryCreate

Create returns a builder for creating a HPSortHistory entity.

func (*HPSortHistoryClient) CreateBulk

func (c *HPSortHistoryClient) CreateBulk(builders ...*HPSortHistoryCreate) *HPSortHistoryCreateBulk

CreateBulk returns a builder for creating a bulk of HPSortHistory entities.

func (*HPSortHistoryClient) Delete

func (c *HPSortHistoryClient) Delete() *HPSortHistoryDelete

Delete returns a delete builder for HPSortHistory.

func (*HPSortHistoryClient) DeleteOne

func (c *HPSortHistoryClient) DeleteOne(hsh *HPSortHistory) *HPSortHistoryDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPSortHistoryClient) DeleteOneID

func (c *HPSortHistoryClient) DeleteOneID(id int) *HPSortHistoryDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPSortHistoryClient) Get

func (c *HPSortHistoryClient) Get(ctx context.Context, id int) (*HPSortHistory, error)

Get returns a HPSortHistory entity by its id.

func (*HPSortHistoryClient) GetX

func (c *HPSortHistoryClient) GetX(ctx context.Context, id int) *HPSortHistory

GetX is like Get, but panics if an error occurs.

func (*HPSortHistoryClient) Hooks

func (c *HPSortHistoryClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPSortHistoryClient) Intercept

func (c *HPSortHistoryClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpsorthistory.Intercept(f(g(h())))`.

func (*HPSortHistoryClient) Interceptors

func (c *HPSortHistoryClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPSortHistoryClient) Query

func (c *HPSortHistoryClient) Query() *HPSortHistoryQuery

Query returns a query builder for HPSortHistory.

func (*HPSortHistoryClient) QueryOwner

func (c *HPSortHistoryClient) QueryOwner(hsh *HPSortHistory) *UserQuery

QueryOwner queries the owner edge of a HPSortHistory.

func (*HPSortHistoryClient) Update

func (c *HPSortHistoryClient) Update() *HPSortHistoryUpdate

Update returns an update builder for HPSortHistory.

func (*HPSortHistoryClient) UpdateOne

func (c *HPSortHistoryClient) UpdateOne(hsh *HPSortHistory) *HPSortHistoryUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPSortHistoryClient) UpdateOneID

func (c *HPSortHistoryClient) UpdateOneID(id int) *HPSortHistoryUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPSortHistoryClient) Use

func (c *HPSortHistoryClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpsorthistory.Hooks(f(g(h())))`.

type HPSortHistoryConnection

HPSortHistoryConnection is the connection containing edges to HPSortHistory.

type HPSortHistoryConnection struct {
    Edges      []*HPSortHistoryEdge `json:"edges"`
    PageInfo   PageInfo             `json:"pageInfo"`
    TotalCount int                  `json:"totalCount"`
}

type HPSortHistoryCreate

HPSortHistoryCreate is the builder for creating a HPSortHistory entity.

type HPSortHistoryCreate struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryCreate) Exec

func (hshc *HPSortHistoryCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPSortHistoryCreate) ExecX

func (hshc *HPSortHistoryCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryCreate) Mutation

func (hshc *HPSortHistoryCreate) Mutation() *HPSortHistoryMutation

Mutation returns the HPSortHistoryMutation object of the builder.

func (*HPSortHistoryCreate) OnConflict

func (hshc *HPSortHistoryCreate) OnConflict(opts ...sql.ConflictOption) *HPSortHistoryUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPSortHistory.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPSortHistoryUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPSortHistoryCreate) OnConflictColumns

func (hshc *HPSortHistoryCreate) OnConflictColumns(columns ...string) *HPSortHistoryUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPSortHistory.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPSortHistoryCreate) Save

func (hshc *HPSortHistoryCreate) Save(ctx context.Context) (*HPSortHistory, error)

Save creates the HPSortHistory in the database.

func (*HPSortHistoryCreate) SaveX

func (hshc *HPSortHistoryCreate) SaveX(ctx context.Context) *HPSortHistory

SaveX calls Save and panics if Save returns an error.

func (*HPSortHistoryCreate) SetCreatedAt

func (hshc *HPSortHistoryCreate) SetCreatedAt(t time.Time) *HPSortHistoryCreate

SetCreatedAt sets the "created_at" field.

func (*HPSortHistoryCreate) SetNillableCreatedAt

func (hshc *HPSortHistoryCreate) SetNillableCreatedAt(t *time.Time) *HPSortHistoryCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPSortHistoryCreate) SetNillableOwnerID

func (hshc *HPSortHistoryCreate) SetNillableOwnerID(id *int) *HPSortHistoryCreate

SetNillableOwnerID sets the "owner" edge to the User entity by ID if the given value is not nil.

func (*HPSortHistoryCreate) SetNillableOwnerUserID

func (hshc *HPSortHistoryCreate) SetNillableOwnerUserID(i *int) *HPSortHistoryCreate

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*HPSortHistoryCreate) SetNillableUpdatedAt

func (hshc *HPSortHistoryCreate) SetNillableUpdatedAt(t *time.Time) *HPSortHistoryCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPSortHistoryCreate) SetOwner

func (hshc *HPSortHistoryCreate) SetOwner(u *User) *HPSortHistoryCreate

SetOwner sets the "owner" edge to the User entity.

func (*HPSortHistoryCreate) SetOwnerID

func (hshc *HPSortHistoryCreate) SetOwnerID(id int) *HPSortHistoryCreate

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*HPSortHistoryCreate) SetOwnerUserID

func (hshc *HPSortHistoryCreate) SetOwnerUserID(i int) *HPSortHistoryCreate

SetOwnerUserID sets the "owner_user_id" field.

func (*HPSortHistoryCreate) SetSortResult

func (hshc *HPSortHistoryCreate) SetSortResult(jsr jsonfields.HPSortResult) *HPSortHistoryCreate

SetSortResult sets the "sort_result" field.

func (*HPSortHistoryCreate) SetUpdatedAt

func (hshc *HPSortHistoryCreate) SetUpdatedAt(t time.Time) *HPSortHistoryCreate

SetUpdatedAt sets the "updated_at" field.

type HPSortHistoryCreateBulk

HPSortHistoryCreateBulk is the builder for creating many HPSortHistory entities in bulk.

type HPSortHistoryCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryCreateBulk) Exec

func (hshcb *HPSortHistoryCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPSortHistoryCreateBulk) ExecX

func (hshcb *HPSortHistoryCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryCreateBulk) OnConflict

func (hshcb *HPSortHistoryCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPSortHistoryUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPSortHistory.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPSortHistoryUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPSortHistoryCreateBulk) OnConflictColumns

func (hshcb *HPSortHistoryCreateBulk) OnConflictColumns(columns ...string) *HPSortHistoryUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPSortHistory.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPSortHistoryCreateBulk) Save

func (hshcb *HPSortHistoryCreateBulk) Save(ctx context.Context) ([]*HPSortHistory, error)

Save creates the HPSortHistory entities in the database.

func (*HPSortHistoryCreateBulk) SaveX

func (hshcb *HPSortHistoryCreateBulk) SaveX(ctx context.Context) []*HPSortHistory

SaveX is like Save, but panics if an error occurs.

type HPSortHistoryDelete

HPSortHistoryDelete is the builder for deleting a HPSortHistory entity.

type HPSortHistoryDelete struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryDelete) Exec

func (hshd *HPSortHistoryDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPSortHistoryDelete) ExecX

func (hshd *HPSortHistoryDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryDelete) Where

func (hshd *HPSortHistoryDelete) Where(ps ...predicate.HPSortHistory) *HPSortHistoryDelete

Where appends a list predicates to the HPSortHistoryDelete builder.

type HPSortHistoryDeleteOne

HPSortHistoryDeleteOne is the builder for deleting a single HPSortHistory entity.

type HPSortHistoryDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryDeleteOne) Exec

func (hshdo *HPSortHistoryDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPSortHistoryDeleteOne) ExecX

func (hshdo *HPSortHistoryDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryDeleteOne) Where

func (hshdo *HPSortHistoryDeleteOne) Where(ps ...predicate.HPSortHistory) *HPSortHistoryDeleteOne

Where appends a list predicates to the HPSortHistoryDelete builder.

type HPSortHistoryEdge

HPSortHistoryEdge is the edge representation of HPSortHistory.

type HPSortHistoryEdge struct {
    Node   *HPSortHistory `json:"node"`
    Cursor Cursor         `json:"cursor"`
}

type HPSortHistoryEdges

HPSortHistoryEdges holds the relations/edges for other nodes in the graph.

type HPSortHistoryEdges struct {
    // Owner holds the value of the owner edge.
    Owner *User `json:"owner,omitempty"`
    // contains filtered or unexported fields
}

func (HPSortHistoryEdges) OwnerOrErr

func (e HPSortHistoryEdges) OwnerOrErr() (*User, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type HPSortHistoryFilter

HPSortHistoryFilter provides a generic filtering capability at runtime for HPSortHistoryQuery.

type HPSortHistoryFilter struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryFilter) Where

func (f *HPSortHistoryFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPSortHistoryFilter) WhereCreatedAt

func (f *HPSortHistoryFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPSortHistoryFilter) WhereHasOwner

func (f *HPSortHistoryFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*HPSortHistoryFilter) WhereHasOwnerWith

func (f *HPSortHistoryFilter) WhereHasOwnerWith(preds ...predicate.User)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*HPSortHistoryFilter) WhereID

func (f *HPSortHistoryFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPSortHistoryFilter) WhereOwnerUserID

func (f *HPSortHistoryFilter) WhereOwnerUserID(p entql.IntP)

WhereOwnerUserID applies the entql int predicate on the owner_user_id field.

func (*HPSortHistoryFilter) WhereSortResult

func (f *HPSortHistoryFilter) WhereSortResult(p entql.BytesP)

WhereSortResult applies the entql json.RawMessage predicate on the sort_result field.

func (*HPSortHistoryFilter) WhereUpdatedAt

func (f *HPSortHistoryFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPSortHistoryGroupBy

HPSortHistoryGroupBy is the group-by builder for HPSortHistory entities.

type HPSortHistoryGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryGroupBy) Aggregate

func (hshgb *HPSortHistoryGroupBy) Aggregate(fns ...AggregateFunc) *HPSortHistoryGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPSortHistoryGroupBy) Bool

func (s *HPSortHistoryGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) BoolX

func (s *HPSortHistoryGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPSortHistoryGroupBy) Bools

func (s *HPSortHistoryGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) BoolsX

func (s *HPSortHistoryGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPSortHistoryGroupBy) Float64

func (s *HPSortHistoryGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) Float64X

func (s *HPSortHistoryGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPSortHistoryGroupBy) Float64s

func (s *HPSortHistoryGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) Float64sX

func (s *HPSortHistoryGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPSortHistoryGroupBy) Int

func (s *HPSortHistoryGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) IntX

func (s *HPSortHistoryGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPSortHistoryGroupBy) Ints

func (s *HPSortHistoryGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) IntsX

func (s *HPSortHistoryGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPSortHistoryGroupBy) Scan

func (hshgb *HPSortHistoryGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPSortHistoryGroupBy) ScanX

func (s *HPSortHistoryGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPSortHistoryGroupBy) String

func (s *HPSortHistoryGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) StringX

func (s *HPSortHistoryGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPSortHistoryGroupBy) Strings

func (s *HPSortHistoryGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPSortHistoryGroupBy) StringsX

func (s *HPSortHistoryGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPSortHistoryMutation

HPSortHistoryMutation represents an operation that mutates the HPSortHistory nodes in the graph.

type HPSortHistoryMutation struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryMutation) AddField

func (m *HPSortHistoryMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPSortHistoryMutation) AddedEdges

func (m *HPSortHistoryMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPSortHistoryMutation) AddedField

func (m *HPSortHistoryMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPSortHistoryMutation) AddedFields

func (m *HPSortHistoryMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPSortHistoryMutation) AddedIDs

func (m *HPSortHistoryMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPSortHistoryMutation) ClearCreatedAt

func (m *HPSortHistoryMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPSortHistoryMutation) ClearEdge

func (m *HPSortHistoryMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPSortHistoryMutation) ClearField

func (m *HPSortHistoryMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPSortHistoryMutation) ClearOwner

func (m *HPSortHistoryMutation) ClearOwner()

ClearOwner clears the "owner" edge to the User entity.

func (*HPSortHistoryMutation) ClearOwnerUserID

func (m *HPSortHistoryMutation) ClearOwnerUserID()

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*HPSortHistoryMutation) ClearUpdatedAt

func (m *HPSortHistoryMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPSortHistoryMutation) ClearedEdges

func (m *HPSortHistoryMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPSortHistoryMutation) ClearedFields

func (m *HPSortHistoryMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPSortHistoryMutation) Client

func (m HPSortHistoryMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPSortHistoryMutation) CreatedAt

func (m *HPSortHistoryMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPSortHistoryMutation) CreatedAtCleared

func (m *HPSortHistoryMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPSortHistoryMutation) EdgeCleared

func (m *HPSortHistoryMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPSortHistoryMutation) Field

func (m *HPSortHistoryMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPSortHistoryMutation) FieldCleared

func (m *HPSortHistoryMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPSortHistoryMutation) Fields

func (m *HPSortHistoryMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPSortHistoryMutation) Filter

func (m *HPSortHistoryMutation) Filter() *HPSortHistoryFilter

Filter returns an entql.Where implementation to apply filters on the HPSortHistoryMutation builder.

func (*HPSortHistoryMutation) ID

func (m *HPSortHistoryMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPSortHistoryMutation) IDs

func (m *HPSortHistoryMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPSortHistoryMutation) OldCreatedAt

func (m *HPSortHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPSortHistory entity. If the HPSortHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPSortHistoryMutation) OldField

func (m *HPSortHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPSortHistoryMutation) OldOwnerUserID

func (m *HPSortHistoryMutation) OldOwnerUserID(ctx context.Context) (v *int, err error)

OldOwnerUserID returns the old "owner_user_id" field's value of the HPSortHistory entity. If the HPSortHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPSortHistoryMutation) OldSortResult

func (m *HPSortHistoryMutation) OldSortResult(ctx context.Context) (v jsonfields.HPSortResult, err error)

OldSortResult returns the old "sort_result" field's value of the HPSortHistory entity. If the HPSortHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPSortHistoryMutation) OldUpdatedAt

func (m *HPSortHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPSortHistory entity. If the HPSortHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPSortHistoryMutation) Op

func (m *HPSortHistoryMutation) Op() Op

Op returns the operation name.

func (*HPSortHistoryMutation) OwnerCleared

func (m *HPSortHistoryMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the User entity was cleared.

func (*HPSortHistoryMutation) OwnerID

func (m *HPSortHistoryMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*HPSortHistoryMutation) OwnerIDs

func (m *HPSortHistoryMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*HPSortHistoryMutation) OwnerUserID

func (m *HPSortHistoryMutation) OwnerUserID() (r int, exists bool)

OwnerUserID returns the value of the "owner_user_id" field in the mutation.

func (*HPSortHistoryMutation) OwnerUserIDCleared

func (m *HPSortHistoryMutation) OwnerUserIDCleared() bool

OwnerUserIDCleared returns if the "owner_user_id" field was cleared in this mutation.

func (*HPSortHistoryMutation) RemovedEdges

func (m *HPSortHistoryMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPSortHistoryMutation) RemovedIDs

func (m *HPSortHistoryMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPSortHistoryMutation) ResetCreatedAt

func (m *HPSortHistoryMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPSortHistoryMutation) ResetEdge

func (m *HPSortHistoryMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPSortHistoryMutation) ResetField

func (m *HPSortHistoryMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPSortHistoryMutation) ResetOwner

func (m *HPSortHistoryMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*HPSortHistoryMutation) ResetOwnerUserID

func (m *HPSortHistoryMutation) ResetOwnerUserID()

ResetOwnerUserID resets all changes to the "owner_user_id" field.

func (*HPSortHistoryMutation) ResetSortResult

func (m *HPSortHistoryMutation) ResetSortResult()

ResetSortResult resets all changes to the "sort_result" field.

func (*HPSortHistoryMutation) ResetUpdatedAt

func (m *HPSortHistoryMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPSortHistoryMutation) SetCreatedAt

func (m *HPSortHistoryMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPSortHistoryMutation) SetField

func (m *HPSortHistoryMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPSortHistoryMutation) SetOp

func (m *HPSortHistoryMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPSortHistoryMutation) SetOwnerID

func (m *HPSortHistoryMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the User entity by id.

func (*HPSortHistoryMutation) SetOwnerUserID

func (m *HPSortHistoryMutation) SetOwnerUserID(i int)

SetOwnerUserID sets the "owner_user_id" field.

func (*HPSortHistoryMutation) SetSortResult

func (m *HPSortHistoryMutation) SetSortResult(jsr jsonfields.HPSortResult)

SetSortResult sets the "sort_result" field.

func (*HPSortHistoryMutation) SetUpdatedAt

func (m *HPSortHistoryMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPSortHistoryMutation) SortResult

func (m *HPSortHistoryMutation) SortResult() (r jsonfields.HPSortResult, exists bool)

SortResult returns the value of the "sort_result" field in the mutation.

func (HPSortHistoryMutation) Tx

func (m HPSortHistoryMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPSortHistoryMutation) Type

func (m *HPSortHistoryMutation) Type() string

Type returns the node type of this mutation (HPSortHistory).

func (*HPSortHistoryMutation) UpdatedAt

func (m *HPSortHistoryMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPSortHistoryMutation) UpdatedAtCleared

func (m *HPSortHistoryMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPSortHistoryMutation) Where

func (m *HPSortHistoryMutation) Where(ps ...predicate.HPSortHistory)

Where appends a list predicates to the HPSortHistoryMutation builder.

func (*HPSortHistoryMutation) WhereP

func (m *HPSortHistoryMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPSortHistoryMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPSortHistoryOrder

HPSortHistoryOrder defines the ordering of HPSortHistory.

type HPSortHistoryOrder struct {
    Direction OrderDirection           `json:"direction"`
    Field     *HPSortHistoryOrderField `json:"field"`
}

type HPSortHistoryOrderField

HPSortHistoryOrderField defines the ordering field of HPSortHistory.

type HPSortHistoryOrderField struct {
    // contains filtered or unexported fields
}

type HPSortHistoryPaginateOption

HPSortHistoryPaginateOption enables pagination customization.

type HPSortHistoryPaginateOption func(*hpsorthistoryPager) error

func WithHPSortHistoryFilter

func WithHPSortHistoryFilter(filter func(*HPSortHistoryQuery) (*HPSortHistoryQuery, error)) HPSortHistoryPaginateOption

WithHPSortHistoryFilter configures pagination filter.

func WithHPSortHistoryOrder

func WithHPSortHistoryOrder(order *HPSortHistoryOrder) HPSortHistoryPaginateOption

WithHPSortHistoryOrder configures pagination ordering.

type HPSortHistoryQuery

HPSortHistoryQuery is the builder for querying HPSortHistory entities.

type HPSortHistoryQuery struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryQuery) Aggregate

func (hshq *HPSortHistoryQuery) Aggregate(fns ...AggregateFunc) *HPSortHistorySelect

Aggregate returns a HPSortHistorySelect configured with the given aggregations.

func (*HPSortHistoryQuery) All

func (hshq *HPSortHistoryQuery) All(ctx context.Context) ([]*HPSortHistory, error)

All executes the query and returns a list of HPSortHistories.

func (*HPSortHistoryQuery) AllX

func (hshq *HPSortHistoryQuery) AllX(ctx context.Context) []*HPSortHistory

AllX is like All, but panics if an error occurs.

func (*HPSortHistoryQuery) Clone

func (hshq *HPSortHistoryQuery) Clone() *HPSortHistoryQuery

Clone returns a duplicate of the HPSortHistoryQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPSortHistoryQuery) CollectFields

func (hsh *HPSortHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPSortHistoryQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPSortHistoryQuery) Count

func (hshq *HPSortHistoryQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPSortHistoryQuery) CountX

func (hshq *HPSortHistoryQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPSortHistoryQuery) Exist

func (hshq *HPSortHistoryQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPSortHistoryQuery) ExistX

func (hshq *HPSortHistoryQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPSortHistoryQuery) Filter

func (hshq *HPSortHistoryQuery) Filter() *HPSortHistoryFilter

Filter returns a Filter implementation to apply filters on the HPSortHistoryQuery builder.

func (*HPSortHistoryQuery) First

func (hshq *HPSortHistoryQuery) First(ctx context.Context) (*HPSortHistory, error)

First returns the first HPSortHistory entity from the query. Returns a *NotFoundError when no HPSortHistory was found.

func (*HPSortHistoryQuery) FirstID

func (hshq *HPSortHistoryQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPSortHistory ID from the query. Returns a *NotFoundError when no HPSortHistory ID was found.

func (*HPSortHistoryQuery) FirstIDX

func (hshq *HPSortHistoryQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPSortHistoryQuery) FirstX

func (hshq *HPSortHistoryQuery) FirstX(ctx context.Context) *HPSortHistory

FirstX is like First, but panics if an error occurs.

func (*HPSortHistoryQuery) GroupBy

func (hshq *HPSortHistoryQuery) GroupBy(field string, fields ...string) *HPSortHistoryGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPSortHistory.Query().
	GroupBy(hpsorthistory.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPSortHistoryQuery) IDs

func (hshq *HPSortHistoryQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPSortHistory IDs.

func (*HPSortHistoryQuery) IDsX

func (hshq *HPSortHistoryQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPSortHistoryQuery) Limit

func (hshq *HPSortHistoryQuery) Limit(limit int) *HPSortHistoryQuery

Limit the number of records to be returned by this query.

func (*HPSortHistoryQuery) Offset

func (hshq *HPSortHistoryQuery) Offset(offset int) *HPSortHistoryQuery

Offset to start from.

func (*HPSortHistoryQuery) Only

func (hshq *HPSortHistoryQuery) Only(ctx context.Context) (*HPSortHistory, error)

Only returns a single HPSortHistory entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPSortHistory entity is found. Returns a *NotFoundError when no HPSortHistory entities are found.

func (*HPSortHistoryQuery) OnlyID

func (hshq *HPSortHistoryQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPSortHistory ID in the query. Returns a *NotSingularError when more than one HPSortHistory ID is found. Returns a *NotFoundError when no entities are found.

func (*HPSortHistoryQuery) OnlyIDX

func (hshq *HPSortHistoryQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPSortHistoryQuery) OnlyX

func (hshq *HPSortHistoryQuery) OnlyX(ctx context.Context) *HPSortHistory

OnlyX is like Only, but panics if an error occurs.

func (*HPSortHistoryQuery) Order

func (hshq *HPSortHistoryQuery) Order(o ...hpsorthistory.Order) *HPSortHistoryQuery

Order specifies how the records should be ordered.

func (*HPSortHistoryQuery) Paginate

func (hsh *HPSortHistoryQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPSortHistoryPaginateOption,
) (*HPSortHistoryConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPSortHistory.

func (*HPSortHistoryQuery) QueryOwner

func (hshq *HPSortHistoryQuery) QueryOwner() *UserQuery

QueryOwner chains the current query on the "owner" edge.

func (*HPSortHistoryQuery) Select

func (hshq *HPSortHistoryQuery) Select(fields ...string) *HPSortHistorySelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.HPSortHistory.Query().
	Select(hpsorthistory.FieldCreatedAt).
	Scan(ctx, &v)

func (*HPSortHistoryQuery) Unique

func (hshq *HPSortHistoryQuery) Unique(unique bool) *HPSortHistoryQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPSortHistoryQuery) Where

func (hshq *HPSortHistoryQuery) Where(ps ...predicate.HPSortHistory) *HPSortHistoryQuery

Where adds a new predicate for the HPSortHistoryQuery builder.

func (*HPSortHistoryQuery) WithOwner

func (hshq *HPSortHistoryQuery) WithOwner(opts ...func(*UserQuery)) *HPSortHistoryQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type HPSortHistorySelect

HPSortHistorySelect is the builder for selecting fields of HPSortHistory entities.

type HPSortHistorySelect struct {
    *HPSortHistoryQuery
    // contains filtered or unexported fields
}

func (*HPSortHistorySelect) Aggregate

func (hshs *HPSortHistorySelect) Aggregate(fns ...AggregateFunc) *HPSortHistorySelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPSortHistorySelect) Bool

func (s *HPSortHistorySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) BoolX

func (s *HPSortHistorySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPSortHistorySelect) Bools

func (s *HPSortHistorySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) BoolsX

func (s *HPSortHistorySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPSortHistorySelect) Float64

func (s *HPSortHistorySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) Float64X

func (s *HPSortHistorySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPSortHistorySelect) Float64s

func (s *HPSortHistorySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) Float64sX

func (s *HPSortHistorySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPSortHistorySelect) Int

func (s *HPSortHistorySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) IntX

func (s *HPSortHistorySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPSortHistorySelect) Ints

func (s *HPSortHistorySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) IntsX

func (s *HPSortHistorySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPSortHistorySelect) Scan

func (hshs *HPSortHistorySelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPSortHistorySelect) ScanX

func (s *HPSortHistorySelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPSortHistorySelect) String

func (s *HPSortHistorySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) StringX

func (s *HPSortHistorySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPSortHistorySelect) Strings

func (s *HPSortHistorySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPSortHistorySelect) StringsX

func (s *HPSortHistorySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPSortHistoryUpdate

HPSortHistoryUpdate is the builder for updating HPSortHistory entities.

type HPSortHistoryUpdate struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryUpdate) ClearOwner

func (hshu *HPSortHistoryUpdate) ClearOwner() *HPSortHistoryUpdate

ClearOwner clears the "owner" edge to the User entity.

func (*HPSortHistoryUpdate) ClearOwnerUserID

func (hshu *HPSortHistoryUpdate) ClearOwnerUserID() *HPSortHistoryUpdate

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*HPSortHistoryUpdate) ClearUpdatedAt

func (hshu *HPSortHistoryUpdate) ClearUpdatedAt() *HPSortHistoryUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPSortHistoryUpdate) Exec

func (hshu *HPSortHistoryUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPSortHistoryUpdate) ExecX

func (hshu *HPSortHistoryUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryUpdate) Mutation

func (hshu *HPSortHistoryUpdate) Mutation() *HPSortHistoryMutation

Mutation returns the HPSortHistoryMutation object of the builder.

func (*HPSortHistoryUpdate) Save

func (hshu *HPSortHistoryUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPSortHistoryUpdate) SaveX

func (hshu *HPSortHistoryUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPSortHistoryUpdate) SetNillableOwnerID

func (hshu *HPSortHistoryUpdate) SetNillableOwnerID(id *int) *HPSortHistoryUpdate

SetNillableOwnerID sets the "owner" edge to the User entity by ID if the given value is not nil.

func (*HPSortHistoryUpdate) SetNillableOwnerUserID

func (hshu *HPSortHistoryUpdate) SetNillableOwnerUserID(i *int) *HPSortHistoryUpdate

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*HPSortHistoryUpdate) SetNillableUpdatedAt

func (hshu *HPSortHistoryUpdate) SetNillableUpdatedAt(t *time.Time) *HPSortHistoryUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPSortHistoryUpdate) SetOwner

func (hshu *HPSortHistoryUpdate) SetOwner(u *User) *HPSortHistoryUpdate

SetOwner sets the "owner" edge to the User entity.

func (*HPSortHistoryUpdate) SetOwnerID

func (hshu *HPSortHistoryUpdate) SetOwnerID(id int) *HPSortHistoryUpdate

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*HPSortHistoryUpdate) SetOwnerUserID

func (hshu *HPSortHistoryUpdate) SetOwnerUserID(i int) *HPSortHistoryUpdate

SetOwnerUserID sets the "owner_user_id" field.

func (*HPSortHistoryUpdate) SetUpdatedAt

func (hshu *HPSortHistoryUpdate) SetUpdatedAt(t time.Time) *HPSortHistoryUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPSortHistoryUpdate) Where

func (hshu *HPSortHistoryUpdate) Where(ps ...predicate.HPSortHistory) *HPSortHistoryUpdate

Where appends a list predicates to the HPSortHistoryUpdate builder.

type HPSortHistoryUpdateOne

HPSortHistoryUpdateOne is the builder for updating a single HPSortHistory entity.

type HPSortHistoryUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryUpdateOne) ClearOwner

func (hshuo *HPSortHistoryUpdateOne) ClearOwner() *HPSortHistoryUpdateOne

ClearOwner clears the "owner" edge to the User entity.

func (*HPSortHistoryUpdateOne) ClearOwnerUserID

func (hshuo *HPSortHistoryUpdateOne) ClearOwnerUserID() *HPSortHistoryUpdateOne

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*HPSortHistoryUpdateOne) ClearUpdatedAt

func (hshuo *HPSortHistoryUpdateOne) ClearUpdatedAt() *HPSortHistoryUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPSortHistoryUpdateOne) Exec

func (hshuo *HPSortHistoryUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPSortHistoryUpdateOne) ExecX

func (hshuo *HPSortHistoryUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryUpdateOne) Mutation

func (hshuo *HPSortHistoryUpdateOne) Mutation() *HPSortHistoryMutation

Mutation returns the HPSortHistoryMutation object of the builder.

func (*HPSortHistoryUpdateOne) Save

func (hshuo *HPSortHistoryUpdateOne) Save(ctx context.Context) (*HPSortHistory, error)

Save executes the query and returns the updated HPSortHistory entity.

func (*HPSortHistoryUpdateOne) SaveX

func (hshuo *HPSortHistoryUpdateOne) SaveX(ctx context.Context) *HPSortHistory

SaveX is like Save, but panics if an error occurs.

func (*HPSortHistoryUpdateOne) Select

func (hshuo *HPSortHistoryUpdateOne) Select(field string, fields ...string) *HPSortHistoryUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPSortHistoryUpdateOne) SetNillableOwnerID

func (hshuo *HPSortHistoryUpdateOne) SetNillableOwnerID(id *int) *HPSortHistoryUpdateOne

SetNillableOwnerID sets the "owner" edge to the User entity by ID if the given value is not nil.

func (*HPSortHistoryUpdateOne) SetNillableOwnerUserID

func (hshuo *HPSortHistoryUpdateOne) SetNillableOwnerUserID(i *int) *HPSortHistoryUpdateOne

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*HPSortHistoryUpdateOne) SetNillableUpdatedAt

func (hshuo *HPSortHistoryUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPSortHistoryUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPSortHistoryUpdateOne) SetOwner

func (hshuo *HPSortHistoryUpdateOne) SetOwner(u *User) *HPSortHistoryUpdateOne

SetOwner sets the "owner" edge to the User entity.

func (*HPSortHistoryUpdateOne) SetOwnerID

func (hshuo *HPSortHistoryUpdateOne) SetOwnerID(id int) *HPSortHistoryUpdateOne

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*HPSortHistoryUpdateOne) SetOwnerUserID

func (hshuo *HPSortHistoryUpdateOne) SetOwnerUserID(i int) *HPSortHistoryUpdateOne

SetOwnerUserID sets the "owner_user_id" field.

func (*HPSortHistoryUpdateOne) SetUpdatedAt

func (hshuo *HPSortHistoryUpdateOne) SetUpdatedAt(t time.Time) *HPSortHistoryUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPSortHistoryUpdateOne) Where

func (hshuo *HPSortHistoryUpdateOne) Where(ps ...predicate.HPSortHistory) *HPSortHistoryUpdateOne

Where appends a list predicates to the HPSortHistoryUpdate builder.

type HPSortHistoryUpsert

HPSortHistoryUpsert is the "OnConflict" setter.

type HPSortHistoryUpsert struct {
    *sql.UpdateSet
}

func (*HPSortHistoryUpsert) ClearOwnerUserID

func (u *HPSortHistoryUpsert) ClearOwnerUserID() *HPSortHistoryUpsert

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*HPSortHistoryUpsert) ClearUpdatedAt

func (u *HPSortHistoryUpsert) ClearUpdatedAt() *HPSortHistoryUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPSortHistoryUpsert) SetOwnerUserID

func (u *HPSortHistoryUpsert) SetOwnerUserID(v int) *HPSortHistoryUpsert

SetOwnerUserID sets the "owner_user_id" field.

func (*HPSortHistoryUpsert) SetUpdatedAt

func (u *HPSortHistoryUpsert) SetUpdatedAt(v time.Time) *HPSortHistoryUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPSortHistoryUpsert) UpdateOwnerUserID

func (u *HPSortHistoryUpsert) UpdateOwnerUserID() *HPSortHistoryUpsert

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPSortHistoryUpsert) UpdateUpdatedAt

func (u *HPSortHistoryUpsert) UpdateUpdatedAt() *HPSortHistoryUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPSortHistoryUpsertBulk

HPSortHistoryUpsertBulk is the builder for "upsert"-ing a bulk of HPSortHistory nodes.

type HPSortHistoryUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryUpsertBulk) ClearOwnerUserID

func (u *HPSortHistoryUpsertBulk) ClearOwnerUserID() *HPSortHistoryUpsertBulk

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*HPSortHistoryUpsertBulk) ClearUpdatedAt

func (u *HPSortHistoryUpsertBulk) ClearUpdatedAt() *HPSortHistoryUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPSortHistoryUpsertBulk) DoNothing

func (u *HPSortHistoryUpsertBulk) DoNothing() *HPSortHistoryUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPSortHistoryUpsertBulk) Exec

func (u *HPSortHistoryUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPSortHistoryUpsertBulk) ExecX

func (u *HPSortHistoryUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryUpsertBulk) Ignore

func (u *HPSortHistoryUpsertBulk) Ignore() *HPSortHistoryUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPSortHistory.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPSortHistoryUpsertBulk) SetOwnerUserID

func (u *HPSortHistoryUpsertBulk) SetOwnerUserID(v int) *HPSortHistoryUpsertBulk

SetOwnerUserID sets the "owner_user_id" field.

func (*HPSortHistoryUpsertBulk) SetUpdatedAt

func (u *HPSortHistoryUpsertBulk) SetUpdatedAt(v time.Time) *HPSortHistoryUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPSortHistoryUpsertBulk) Update

func (u *HPSortHistoryUpsertBulk) Update(set func(*HPSortHistoryUpsert)) *HPSortHistoryUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPSortHistoryCreateBulk.OnConflict documentation for more info.

func (*HPSortHistoryUpsertBulk) UpdateNewValues

func (u *HPSortHistoryUpsertBulk) UpdateNewValues() *HPSortHistoryUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPSortHistory.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPSortHistoryUpsertBulk) UpdateOwnerUserID

func (u *HPSortHistoryUpsertBulk) UpdateOwnerUserID() *HPSortHistoryUpsertBulk

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPSortHistoryUpsertBulk) UpdateUpdatedAt

func (u *HPSortHistoryUpsertBulk) UpdateUpdatedAt() *HPSortHistoryUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPSortHistoryUpsertOne

HPSortHistoryUpsertOne is the builder for "upsert"-ing

one HPSortHistory node.
type HPSortHistoryUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPSortHistoryUpsertOne) ClearOwnerUserID

func (u *HPSortHistoryUpsertOne) ClearOwnerUserID() *HPSortHistoryUpsertOne

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*HPSortHistoryUpsertOne) ClearUpdatedAt

func (u *HPSortHistoryUpsertOne) ClearUpdatedAt() *HPSortHistoryUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPSortHistoryUpsertOne) DoNothing

func (u *HPSortHistoryUpsertOne) DoNothing() *HPSortHistoryUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPSortHistoryUpsertOne) Exec

func (u *HPSortHistoryUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPSortHistoryUpsertOne) ExecX

func (u *HPSortHistoryUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPSortHistoryUpsertOne) ID

func (u *HPSortHistoryUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPSortHistoryUpsertOne) IDX

func (u *HPSortHistoryUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPSortHistoryUpsertOne) Ignore

func (u *HPSortHistoryUpsertOne) Ignore() *HPSortHistoryUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPSortHistory.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPSortHistoryUpsertOne) SetOwnerUserID

func (u *HPSortHistoryUpsertOne) SetOwnerUserID(v int) *HPSortHistoryUpsertOne

SetOwnerUserID sets the "owner_user_id" field.

func (*HPSortHistoryUpsertOne) SetUpdatedAt

func (u *HPSortHistoryUpsertOne) SetUpdatedAt(v time.Time) *HPSortHistoryUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPSortHistoryUpsertOne) Update

func (u *HPSortHistoryUpsertOne) Update(set func(*HPSortHistoryUpsert)) *HPSortHistoryUpsertOne

Update allows overriding fields `UPDATE` values. See the HPSortHistoryCreate.OnConflict documentation for more info.

func (*HPSortHistoryUpsertOne) UpdateNewValues

func (u *HPSortHistoryUpsertOne) UpdateNewValues() *HPSortHistoryUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPSortHistory.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPSortHistoryUpsertOne) UpdateOwnerUserID

func (u *HPSortHistoryUpsertOne) UpdateOwnerUserID() *HPSortHistoryUpsertOne

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPSortHistoryUpsertOne) UpdateUpdatedAt

func (u *HPSortHistoryUpsertOne) UpdateUpdatedAt() *HPSortHistoryUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPViewHistories

HPViewHistories is a parsable slice of HPViewHistory.

type HPViewHistories []*HPViewHistory

type HPViewHistory

HPViewHistory is the model entity for the HPViewHistory schema.

type HPViewHistory struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // ContentID holds the value of the "content_id" field.
    ContentID int `json:"content_id,omitempty"`
    // post_at field value on content to query histories by post_at range
    ContentPostAt time.Time `json:"content_post_at,omitempty"`
    // AssetType holds the value of the "asset_type" field.
    AssetType enums.HPAssetType `json:"asset_type,omitempty"`
    // IsFavorite holds the value of the "is_favorite" field.
    IsFavorite bool `json:"is_favorite,omitempty"`
    // OwnerUserID holds the value of the "owner_user_id" field.
    OwnerUserID int `json:"owner_user_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the HPViewHistoryQuery when eager-loading is set.
    Edges HPViewHistoryEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*HPViewHistory) Feed

func (hvh *HPViewHistory) Feed(ctx context.Context) (*HPFeedItem, error)

func (*HPViewHistory) IsNode

func (n *HPViewHistory) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*HPViewHistory) QueryFeed

func (hvh *HPViewHistory) QueryFeed() *HPFeedItemQuery

QueryFeed queries the "feed" edge of the HPViewHistory entity.

func (*HPViewHistory) QueryUser

func (hvh *HPViewHistory) QueryUser() *UserQuery

QueryUser queries the "user" edge of the HPViewHistory entity.

func (*HPViewHistory) String

func (hvh *HPViewHistory) String() string

String implements the fmt.Stringer.

func (*HPViewHistory) ToEdge

func (hvh *HPViewHistory) ToEdge(order *HPViewHistoryOrder) *HPViewHistoryEdge

ToEdge converts HPViewHistory into HPViewHistoryEdge.

func (*HPViewHistory) Unwrap

func (hvh *HPViewHistory) Unwrap() *HPViewHistory

Unwrap unwraps the HPViewHistory entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*HPViewHistory) Update

func (hvh *HPViewHistory) Update() *HPViewHistoryUpdateOne

Update returns a builder for updating this HPViewHistory. Note that you need to call HPViewHistory.Unwrap() before calling this method if this HPViewHistory was returned from a transaction, and the transaction was committed or rolled back.

func (*HPViewHistory) Value

func (hvh *HPViewHistory) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the HPViewHistory. This includes values selected through modifiers, order, etc.

type HPViewHistoryClient

HPViewHistoryClient is a client for the HPViewHistory schema.

type HPViewHistoryClient struct {
    // contains filtered or unexported fields
}

func NewHPViewHistoryClient

func NewHPViewHistoryClient(c config) *HPViewHistoryClient

NewHPViewHistoryClient returns a client for the HPViewHistory from the given config.

func (*HPViewHistoryClient) Create

func (c *HPViewHistoryClient) Create() *HPViewHistoryCreate

Create returns a builder for creating a HPViewHistory entity.

func (*HPViewHistoryClient) CreateBulk

func (c *HPViewHistoryClient) CreateBulk(builders ...*HPViewHistoryCreate) *HPViewHistoryCreateBulk

CreateBulk returns a builder for creating a bulk of HPViewHistory entities.

func (*HPViewHistoryClient) Delete

func (c *HPViewHistoryClient) Delete() *HPViewHistoryDelete

Delete returns a delete builder for HPViewHistory.

func (*HPViewHistoryClient) DeleteOne

func (c *HPViewHistoryClient) DeleteOne(hvh *HPViewHistory) *HPViewHistoryDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*HPViewHistoryClient) DeleteOneID

func (c *HPViewHistoryClient) DeleteOneID(id int) *HPViewHistoryDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*HPViewHistoryClient) Get

func (c *HPViewHistoryClient) Get(ctx context.Context, id int) (*HPViewHistory, error)

Get returns a HPViewHistory entity by its id.

func (*HPViewHistoryClient) GetX

func (c *HPViewHistoryClient) GetX(ctx context.Context, id int) *HPViewHistory

GetX is like Get, but panics if an error occurs.

func (*HPViewHistoryClient) Hooks

func (c *HPViewHistoryClient) Hooks() []Hook

Hooks returns the client hooks.

func (*HPViewHistoryClient) Intercept

func (c *HPViewHistoryClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `hpviewhistory.Intercept(f(g(h())))`.

func (*HPViewHistoryClient) Interceptors

func (c *HPViewHistoryClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*HPViewHistoryClient) Query

func (c *HPViewHistoryClient) Query() *HPViewHistoryQuery

Query returns a query builder for HPViewHistory.

func (*HPViewHistoryClient) QueryFeed

func (c *HPViewHistoryClient) QueryFeed(hvh *HPViewHistory) *HPFeedItemQuery

QueryFeed queries the feed edge of a HPViewHistory.

func (*HPViewHistoryClient) QueryUser

func (c *HPViewHistoryClient) QueryUser(hvh *HPViewHistory) *UserQuery

QueryUser queries the user edge of a HPViewHistory.

func (*HPViewHistoryClient) Update

func (c *HPViewHistoryClient) Update() *HPViewHistoryUpdate

Update returns an update builder for HPViewHistory.

func (*HPViewHistoryClient) UpdateOne

func (c *HPViewHistoryClient) UpdateOne(hvh *HPViewHistory) *HPViewHistoryUpdateOne

UpdateOne returns an update builder for the given entity.

func (*HPViewHistoryClient) UpdateOneID

func (c *HPViewHistoryClient) UpdateOneID(id int) *HPViewHistoryUpdateOne

UpdateOneID returns an update builder for the given id.

func (*HPViewHistoryClient) Use

func (c *HPViewHistoryClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `hpviewhistory.Hooks(f(g(h())))`.

type HPViewHistoryConnection

HPViewHistoryConnection is the connection containing edges to HPViewHistory.

type HPViewHistoryConnection struct {
    Edges      []*HPViewHistoryEdge `json:"edges"`
    PageInfo   PageInfo             `json:"pageInfo"`
    TotalCount int                  `json:"totalCount"`
}

type HPViewHistoryCreate

HPViewHistoryCreate is the builder for creating a HPViewHistory entity.

type HPViewHistoryCreate struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryCreate) Exec

func (hvhc *HPViewHistoryCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPViewHistoryCreate) ExecX

func (hvhc *HPViewHistoryCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryCreate) Mutation

func (hvhc *HPViewHistoryCreate) Mutation() *HPViewHistoryMutation

Mutation returns the HPViewHistoryMutation object of the builder.

func (*HPViewHistoryCreate) OnConflict

func (hvhc *HPViewHistoryCreate) OnConflict(opts ...sql.ConflictOption) *HPViewHistoryUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPViewHistory.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPViewHistoryUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPViewHistoryCreate) OnConflictColumns

func (hvhc *HPViewHistoryCreate) OnConflictColumns(columns ...string) *HPViewHistoryUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPViewHistory.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPViewHistoryCreate) Save

func (hvhc *HPViewHistoryCreate) Save(ctx context.Context) (*HPViewHistory, error)

Save creates the HPViewHistory in the database.

func (*HPViewHistoryCreate) SaveX

func (hvhc *HPViewHistoryCreate) SaveX(ctx context.Context) *HPViewHistory

SaveX calls Save and panics if Save returns an error.

func (*HPViewHistoryCreate) SetAssetType

func (hvhc *HPViewHistoryCreate) SetAssetType(eat enums.HPAssetType) *HPViewHistoryCreate

SetAssetType sets the "asset_type" field.

func (*HPViewHistoryCreate) SetContentID

func (hvhc *HPViewHistoryCreate) SetContentID(i int) *HPViewHistoryCreate

SetContentID sets the "content_id" field.

func (*HPViewHistoryCreate) SetContentPostAt

func (hvhc *HPViewHistoryCreate) SetContentPostAt(t time.Time) *HPViewHistoryCreate

SetContentPostAt sets the "content_post_at" field.

func (*HPViewHistoryCreate) SetCreatedAt

func (hvhc *HPViewHistoryCreate) SetCreatedAt(t time.Time) *HPViewHistoryCreate

SetCreatedAt sets the "created_at" field.

func (*HPViewHistoryCreate) SetFeed

func (hvhc *HPViewHistoryCreate) SetFeed(h *HPFeedItem) *HPViewHistoryCreate

SetFeed sets the "feed" edge to the HPFeedItem entity.

func (*HPViewHistoryCreate) SetFeedID

func (hvhc *HPViewHistoryCreate) SetFeedID(id int) *HPViewHistoryCreate

SetFeedID sets the "feed" edge to the HPFeedItem entity by ID.

func (*HPViewHistoryCreate) SetIsFavorite

func (hvhc *HPViewHistoryCreate) SetIsFavorite(b bool) *HPViewHistoryCreate

SetIsFavorite sets the "is_favorite" field.

func (*HPViewHistoryCreate) SetNillableCreatedAt

func (hvhc *HPViewHistoryCreate) SetNillableCreatedAt(t *time.Time) *HPViewHistoryCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*HPViewHistoryCreate) SetNillableFeedID

func (hvhc *HPViewHistoryCreate) SetNillableFeedID(id *int) *HPViewHistoryCreate

SetNillableFeedID sets the "feed" edge to the HPFeedItem entity by ID if the given value is not nil.

func (*HPViewHistoryCreate) SetNillableIsFavorite

func (hvhc *HPViewHistoryCreate) SetNillableIsFavorite(b *bool) *HPViewHistoryCreate

SetNillableIsFavorite sets the "is_favorite" field if the given value is not nil.

func (*HPViewHistoryCreate) SetNillableUpdatedAt

func (hvhc *HPViewHistoryCreate) SetNillableUpdatedAt(t *time.Time) *HPViewHistoryCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPViewHistoryCreate) SetOwnerUserID

func (hvhc *HPViewHistoryCreate) SetOwnerUserID(i int) *HPViewHistoryCreate

SetOwnerUserID sets the "owner_user_id" field.

func (*HPViewHistoryCreate) SetUpdatedAt

func (hvhc *HPViewHistoryCreate) SetUpdatedAt(t time.Time) *HPViewHistoryCreate

SetUpdatedAt sets the "updated_at" field.

func (*HPViewHistoryCreate) SetUser

func (hvhc *HPViewHistoryCreate) SetUser(u *User) *HPViewHistoryCreate

SetUser sets the "user" edge to the User entity.

func (*HPViewHistoryCreate) SetUserID

func (hvhc *HPViewHistoryCreate) SetUserID(id int) *HPViewHistoryCreate

SetUserID sets the "user" edge to the User entity by ID.

type HPViewHistoryCreateBulk

HPViewHistoryCreateBulk is the builder for creating many HPViewHistory entities in bulk.

type HPViewHistoryCreateBulk struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryCreateBulk) Exec

func (hvhcb *HPViewHistoryCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPViewHistoryCreateBulk) ExecX

func (hvhcb *HPViewHistoryCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryCreateBulk) OnConflict

func (hvhcb *HPViewHistoryCreateBulk) OnConflict(opts ...sql.ConflictOption) *HPViewHistoryUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.HPViewHistory.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.HPViewHistoryUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*HPViewHistoryCreateBulk) OnConflictColumns

func (hvhcb *HPViewHistoryCreateBulk) OnConflictColumns(columns ...string) *HPViewHistoryUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.HPViewHistory.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*HPViewHistoryCreateBulk) Save

func (hvhcb *HPViewHistoryCreateBulk) Save(ctx context.Context) ([]*HPViewHistory, error)

Save creates the HPViewHistory entities in the database.

func (*HPViewHistoryCreateBulk) SaveX

func (hvhcb *HPViewHistoryCreateBulk) SaveX(ctx context.Context) []*HPViewHistory

SaveX is like Save, but panics if an error occurs.

type HPViewHistoryDelete

HPViewHistoryDelete is the builder for deleting a HPViewHistory entity.

type HPViewHistoryDelete struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryDelete) Exec

func (hvhd *HPViewHistoryDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*HPViewHistoryDelete) ExecX

func (hvhd *HPViewHistoryDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryDelete) Where

func (hvhd *HPViewHistoryDelete) Where(ps ...predicate.HPViewHistory) *HPViewHistoryDelete

Where appends a list predicates to the HPViewHistoryDelete builder.

type HPViewHistoryDeleteOne

HPViewHistoryDeleteOne is the builder for deleting a single HPViewHistory entity.

type HPViewHistoryDeleteOne struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryDeleteOne) Exec

func (hvhdo *HPViewHistoryDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*HPViewHistoryDeleteOne) ExecX

func (hvhdo *HPViewHistoryDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryDeleteOne) Where

func (hvhdo *HPViewHistoryDeleteOne) Where(ps ...predicate.HPViewHistory) *HPViewHistoryDeleteOne

Where appends a list predicates to the HPViewHistoryDelete builder.

type HPViewHistoryEdge

HPViewHistoryEdge is the edge representation of HPViewHistory.

type HPViewHistoryEdge struct {
    Node   *HPViewHistory `json:"node"`
    Cursor Cursor         `json:"cursor"`
}

type HPViewHistoryEdges

HPViewHistoryEdges holds the relations/edges for other nodes in the graph.

type HPViewHistoryEdges struct {
    // Feed holds the value of the feed edge.
    Feed *HPFeedItem `json:"feed,omitempty"`
    // User holds the value of the user edge.
    User *User `json:"user,omitempty"`
    // contains filtered or unexported fields
}

func (HPViewHistoryEdges) FeedOrErr

func (e HPViewHistoryEdges) FeedOrErr() (*HPFeedItem, error)

FeedOrErr returns the Feed value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (HPViewHistoryEdges) UserOrErr

func (e HPViewHistoryEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type HPViewHistoryFilter

HPViewHistoryFilter provides a generic filtering capability at runtime for HPViewHistoryQuery.

type HPViewHistoryFilter struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryFilter) Where

func (f *HPViewHistoryFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*HPViewHistoryFilter) WhereAssetType

func (f *HPViewHistoryFilter) WhereAssetType(p entql.StringP)

WhereAssetType applies the entql string predicate on the asset_type field.

func (*HPViewHistoryFilter) WhereContentID

func (f *HPViewHistoryFilter) WhereContentID(p entql.IntP)

WhereContentID applies the entql int predicate on the content_id field.

func (*HPViewHistoryFilter) WhereContentPostAt

func (f *HPViewHistoryFilter) WhereContentPostAt(p entql.TimeP)

WhereContentPostAt applies the entql time.Time predicate on the content_post_at field.

func (*HPViewHistoryFilter) WhereCreatedAt

func (f *HPViewHistoryFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*HPViewHistoryFilter) WhereHasFeed

func (f *HPViewHistoryFilter) WhereHasFeed()

WhereHasFeed applies a predicate to check if query has an edge feed.

func (*HPViewHistoryFilter) WhereHasFeedWith

func (f *HPViewHistoryFilter) WhereHasFeedWith(preds ...predicate.HPFeedItem)

WhereHasFeedWith applies a predicate to check if query has an edge feed with a given conditions (other predicates).

func (*HPViewHistoryFilter) WhereHasUser

func (f *HPViewHistoryFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*HPViewHistoryFilter) WhereHasUserWith

func (f *HPViewHistoryFilter) WhereHasUserWith(preds ...predicate.User)

WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates).

func (*HPViewHistoryFilter) WhereID

func (f *HPViewHistoryFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*HPViewHistoryFilter) WhereIsFavorite

func (f *HPViewHistoryFilter) WhereIsFavorite(p entql.BoolP)

WhereIsFavorite applies the entql bool predicate on the is_favorite field.

func (*HPViewHistoryFilter) WhereOwnerUserID

func (f *HPViewHistoryFilter) WhereOwnerUserID(p entql.IntP)

WhereOwnerUserID applies the entql int predicate on the owner_user_id field.

func (*HPViewHistoryFilter) WhereUpdatedAt

func (f *HPViewHistoryFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type HPViewHistoryGroupBy

HPViewHistoryGroupBy is the group-by builder for HPViewHistory entities.

type HPViewHistoryGroupBy struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryGroupBy) Aggregate

func (hvhgb *HPViewHistoryGroupBy) Aggregate(fns ...AggregateFunc) *HPViewHistoryGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*HPViewHistoryGroupBy) Bool

func (s *HPViewHistoryGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) BoolX

func (s *HPViewHistoryGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPViewHistoryGroupBy) Bools

func (s *HPViewHistoryGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) BoolsX

func (s *HPViewHistoryGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPViewHistoryGroupBy) Float64

func (s *HPViewHistoryGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) Float64X

func (s *HPViewHistoryGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPViewHistoryGroupBy) Float64s

func (s *HPViewHistoryGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) Float64sX

func (s *HPViewHistoryGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPViewHistoryGroupBy) Int

func (s *HPViewHistoryGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) IntX

func (s *HPViewHistoryGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPViewHistoryGroupBy) Ints

func (s *HPViewHistoryGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) IntsX

func (s *HPViewHistoryGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPViewHistoryGroupBy) Scan

func (hvhgb *HPViewHistoryGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPViewHistoryGroupBy) ScanX

func (s *HPViewHistoryGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPViewHistoryGroupBy) String

func (s *HPViewHistoryGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) StringX

func (s *HPViewHistoryGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPViewHistoryGroupBy) Strings

func (s *HPViewHistoryGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPViewHistoryGroupBy) StringsX

func (s *HPViewHistoryGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPViewHistoryMutation

HPViewHistoryMutation represents an operation that mutates the HPViewHistory nodes in the graph.

type HPViewHistoryMutation struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryMutation) AddContentID

func (m *HPViewHistoryMutation) AddContentID(i int)

AddContentID adds i to the "content_id" field.

func (*HPViewHistoryMutation) AddField

func (m *HPViewHistoryMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPViewHistoryMutation) AddedContentID

func (m *HPViewHistoryMutation) AddedContentID() (r int, exists bool)

AddedContentID returns the value that was added to the "content_id" field in this mutation.

func (*HPViewHistoryMutation) AddedEdges

func (m *HPViewHistoryMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*HPViewHistoryMutation) AddedField

func (m *HPViewHistoryMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPViewHistoryMutation) AddedFields

func (m *HPViewHistoryMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*HPViewHistoryMutation) AddedIDs

func (m *HPViewHistoryMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*HPViewHistoryMutation) AssetType

func (m *HPViewHistoryMutation) AssetType() (r enums.HPAssetType, exists bool)

AssetType returns the value of the "asset_type" field in the mutation.

func (*HPViewHistoryMutation) ClearCreatedAt

func (m *HPViewHistoryMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*HPViewHistoryMutation) ClearEdge

func (m *HPViewHistoryMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*HPViewHistoryMutation) ClearFeed

func (m *HPViewHistoryMutation) ClearFeed()

ClearFeed clears the "feed" edge to the HPFeedItem entity.

func (*HPViewHistoryMutation) ClearField

func (m *HPViewHistoryMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPViewHistoryMutation) ClearUpdatedAt

func (m *HPViewHistoryMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPViewHistoryMutation) ClearUser

func (m *HPViewHistoryMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*HPViewHistoryMutation) ClearedEdges

func (m *HPViewHistoryMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*HPViewHistoryMutation) ClearedFields

func (m *HPViewHistoryMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (HPViewHistoryMutation) Client

func (m HPViewHistoryMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*HPViewHistoryMutation) ContentID

func (m *HPViewHistoryMutation) ContentID() (r int, exists bool)

ContentID returns the value of the "content_id" field in the mutation.

func (*HPViewHistoryMutation) ContentPostAt

func (m *HPViewHistoryMutation) ContentPostAt() (r time.Time, exists bool)

ContentPostAt returns the value of the "content_post_at" field in the mutation.

func (*HPViewHistoryMutation) CreatedAt

func (m *HPViewHistoryMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*HPViewHistoryMutation) CreatedAtCleared

func (m *HPViewHistoryMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*HPViewHistoryMutation) EdgeCleared

func (m *HPViewHistoryMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*HPViewHistoryMutation) FeedCleared

func (m *HPViewHistoryMutation) FeedCleared() bool

FeedCleared reports if the "feed" edge to the HPFeedItem entity was cleared.

func (*HPViewHistoryMutation) FeedID

func (m *HPViewHistoryMutation) FeedID() (id int, exists bool)

FeedID returns the "feed" edge ID in the mutation.

func (*HPViewHistoryMutation) FeedIDs

func (m *HPViewHistoryMutation) FeedIDs() (ids []int)

FeedIDs returns the "feed" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FeedID instead. It exists only for internal usage by the builders.

func (*HPViewHistoryMutation) Field

func (m *HPViewHistoryMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*HPViewHistoryMutation) FieldCleared

func (m *HPViewHistoryMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*HPViewHistoryMutation) Fields

func (m *HPViewHistoryMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*HPViewHistoryMutation) Filter

func (m *HPViewHistoryMutation) Filter() *HPViewHistoryFilter

Filter returns an entql.Where implementation to apply filters on the HPViewHistoryMutation builder.

func (*HPViewHistoryMutation) ID

func (m *HPViewHistoryMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*HPViewHistoryMutation) IDs

func (m *HPViewHistoryMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*HPViewHistoryMutation) IsFavorite

func (m *HPViewHistoryMutation) IsFavorite() (r bool, exists bool)

IsFavorite returns the value of the "is_favorite" field in the mutation.

func (*HPViewHistoryMutation) OldAssetType

func (m *HPViewHistoryMutation) OldAssetType(ctx context.Context) (v enums.HPAssetType, err error)

OldAssetType returns the old "asset_type" field's value of the HPViewHistory entity. If the HPViewHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPViewHistoryMutation) OldContentID

func (m *HPViewHistoryMutation) OldContentID(ctx context.Context) (v int, err error)

OldContentID returns the old "content_id" field's value of the HPViewHistory entity. If the HPViewHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPViewHistoryMutation) OldContentPostAt

func (m *HPViewHistoryMutation) OldContentPostAt(ctx context.Context) (v time.Time, err error)

OldContentPostAt returns the old "content_post_at" field's value of the HPViewHistory entity. If the HPViewHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPViewHistoryMutation) OldCreatedAt

func (m *HPViewHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the HPViewHistory entity. If the HPViewHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPViewHistoryMutation) OldField

func (m *HPViewHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*HPViewHistoryMutation) OldIsFavorite

func (m *HPViewHistoryMutation) OldIsFavorite(ctx context.Context) (v bool, err error)

OldIsFavorite returns the old "is_favorite" field's value of the HPViewHistory entity. If the HPViewHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPViewHistoryMutation) OldOwnerUserID

func (m *HPViewHistoryMutation) OldOwnerUserID(ctx context.Context) (v int, err error)

OldOwnerUserID returns the old "owner_user_id" field's value of the HPViewHistory entity. If the HPViewHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPViewHistoryMutation) OldUpdatedAt

func (m *HPViewHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the HPViewHistory entity. If the HPViewHistory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*HPViewHistoryMutation) Op

func (m *HPViewHistoryMutation) Op() Op

Op returns the operation name.

func (*HPViewHistoryMutation) OwnerUserID

func (m *HPViewHistoryMutation) OwnerUserID() (r int, exists bool)

OwnerUserID returns the value of the "owner_user_id" field in the mutation.

func (*HPViewHistoryMutation) RemovedEdges

func (m *HPViewHistoryMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*HPViewHistoryMutation) RemovedIDs

func (m *HPViewHistoryMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*HPViewHistoryMutation) ResetAssetType

func (m *HPViewHistoryMutation) ResetAssetType()

ResetAssetType resets all changes to the "asset_type" field.

func (*HPViewHistoryMutation) ResetContentID

func (m *HPViewHistoryMutation) ResetContentID()

ResetContentID resets all changes to the "content_id" field.

func (*HPViewHistoryMutation) ResetContentPostAt

func (m *HPViewHistoryMutation) ResetContentPostAt()

ResetContentPostAt resets all changes to the "content_post_at" field.

func (*HPViewHistoryMutation) ResetCreatedAt

func (m *HPViewHistoryMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*HPViewHistoryMutation) ResetEdge

func (m *HPViewHistoryMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*HPViewHistoryMutation) ResetFeed

func (m *HPViewHistoryMutation) ResetFeed()

ResetFeed resets all changes to the "feed" edge.

func (*HPViewHistoryMutation) ResetField

func (m *HPViewHistoryMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*HPViewHistoryMutation) ResetIsFavorite

func (m *HPViewHistoryMutation) ResetIsFavorite()

ResetIsFavorite resets all changes to the "is_favorite" field.

func (*HPViewHistoryMutation) ResetOwnerUserID

func (m *HPViewHistoryMutation) ResetOwnerUserID()

ResetOwnerUserID resets all changes to the "owner_user_id" field.

func (*HPViewHistoryMutation) ResetUpdatedAt

func (m *HPViewHistoryMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*HPViewHistoryMutation) ResetUser

func (m *HPViewHistoryMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*HPViewHistoryMutation) SetAssetType

func (m *HPViewHistoryMutation) SetAssetType(eat enums.HPAssetType)

SetAssetType sets the "asset_type" field.

func (*HPViewHistoryMutation) SetContentID

func (m *HPViewHistoryMutation) SetContentID(i int)

SetContentID sets the "content_id" field.

func (*HPViewHistoryMutation) SetContentPostAt

func (m *HPViewHistoryMutation) SetContentPostAt(t time.Time)

SetContentPostAt sets the "content_post_at" field.

func (*HPViewHistoryMutation) SetCreatedAt

func (m *HPViewHistoryMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*HPViewHistoryMutation) SetFeedID

func (m *HPViewHistoryMutation) SetFeedID(id int)

SetFeedID sets the "feed" edge to the HPFeedItem entity by id.

func (*HPViewHistoryMutation) SetField

func (m *HPViewHistoryMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*HPViewHistoryMutation) SetIsFavorite

func (m *HPViewHistoryMutation) SetIsFavorite(b bool)

SetIsFavorite sets the "is_favorite" field.

func (*HPViewHistoryMutation) SetOp

func (m *HPViewHistoryMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*HPViewHistoryMutation) SetOwnerUserID

func (m *HPViewHistoryMutation) SetOwnerUserID(i int)

SetOwnerUserID sets the "owner_user_id" field.

func (*HPViewHistoryMutation) SetUpdatedAt

func (m *HPViewHistoryMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*HPViewHistoryMutation) SetUserID

func (m *HPViewHistoryMutation) SetUserID(id int)

SetUserID sets the "user" edge to the User entity by id.

func (HPViewHistoryMutation) Tx

func (m HPViewHistoryMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*HPViewHistoryMutation) Type

func (m *HPViewHistoryMutation) Type() string

Type returns the node type of this mutation (HPViewHistory).

func (*HPViewHistoryMutation) UpdatedAt

func (m *HPViewHistoryMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*HPViewHistoryMutation) UpdatedAtCleared

func (m *HPViewHistoryMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*HPViewHistoryMutation) UserCleared

func (m *HPViewHistoryMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*HPViewHistoryMutation) UserID

func (m *HPViewHistoryMutation) UserID() (id int, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*HPViewHistoryMutation) UserIDs

func (m *HPViewHistoryMutation) UserIDs() (ids []int)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*HPViewHistoryMutation) Where

func (m *HPViewHistoryMutation) Where(ps ...predicate.HPViewHistory)

Where appends a list predicates to the HPViewHistoryMutation builder.

func (*HPViewHistoryMutation) WhereP

func (m *HPViewHistoryMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the HPViewHistoryMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type HPViewHistoryOrder

HPViewHistoryOrder defines the ordering of HPViewHistory.

type HPViewHistoryOrder struct {
    Direction OrderDirection           `json:"direction"`
    Field     *HPViewHistoryOrderField `json:"field"`
}

type HPViewHistoryOrderField

HPViewHistoryOrderField defines the ordering field of HPViewHistory.

type HPViewHistoryOrderField struct {
    // contains filtered or unexported fields
}

type HPViewHistoryPaginateOption

HPViewHistoryPaginateOption enables pagination customization.

type HPViewHistoryPaginateOption func(*hpviewhistoryPager) error

func WithHPViewHistoryFilter

func WithHPViewHistoryFilter(filter func(*HPViewHistoryQuery) (*HPViewHistoryQuery, error)) HPViewHistoryPaginateOption

WithHPViewHistoryFilter configures pagination filter.

func WithHPViewHistoryOrder

func WithHPViewHistoryOrder(order *HPViewHistoryOrder) HPViewHistoryPaginateOption

WithHPViewHistoryOrder configures pagination ordering.

type HPViewHistoryQuery

HPViewHistoryQuery is the builder for querying HPViewHistory entities.

type HPViewHistoryQuery struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryQuery) Aggregate

func (hvhq *HPViewHistoryQuery) Aggregate(fns ...AggregateFunc) *HPViewHistorySelect

Aggregate returns a HPViewHistorySelect configured with the given aggregations.

func (*HPViewHistoryQuery) All

func (hvhq *HPViewHistoryQuery) All(ctx context.Context) ([]*HPViewHistory, error)

All executes the query and returns a list of HPViewHistories.

func (*HPViewHistoryQuery) AllX

func (hvhq *HPViewHistoryQuery) AllX(ctx context.Context) []*HPViewHistory

AllX is like All, but panics if an error occurs.

func (*HPViewHistoryQuery) Clone

func (hvhq *HPViewHistoryQuery) Clone() *HPViewHistoryQuery

Clone returns a duplicate of the HPViewHistoryQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*HPViewHistoryQuery) CollectFields

func (hvh *HPViewHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*HPViewHistoryQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*HPViewHistoryQuery) Count

func (hvhq *HPViewHistoryQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*HPViewHistoryQuery) CountX

func (hvhq *HPViewHistoryQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*HPViewHistoryQuery) Exist

func (hvhq *HPViewHistoryQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*HPViewHistoryQuery) ExistX

func (hvhq *HPViewHistoryQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*HPViewHistoryQuery) Filter

func (hvhq *HPViewHistoryQuery) Filter() *HPViewHistoryFilter

Filter returns a Filter implementation to apply filters on the HPViewHistoryQuery builder.

func (*HPViewHistoryQuery) First

func (hvhq *HPViewHistoryQuery) First(ctx context.Context) (*HPViewHistory, error)

First returns the first HPViewHistory entity from the query. Returns a *NotFoundError when no HPViewHistory was found.

func (*HPViewHistoryQuery) FirstID

func (hvhq *HPViewHistoryQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first HPViewHistory ID from the query. Returns a *NotFoundError when no HPViewHistory ID was found.

func (*HPViewHistoryQuery) FirstIDX

func (hvhq *HPViewHistoryQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*HPViewHistoryQuery) FirstX

func (hvhq *HPViewHistoryQuery) FirstX(ctx context.Context) *HPViewHistory

FirstX is like First, but panics if an error occurs.

func (*HPViewHistoryQuery) GroupBy

func (hvhq *HPViewHistoryQuery) GroupBy(field string, fields ...string) *HPViewHistoryGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.HPViewHistory.Query().
	GroupBy(hpviewhistory.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*HPViewHistoryQuery) IDs

func (hvhq *HPViewHistoryQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of HPViewHistory IDs.

func (*HPViewHistoryQuery) IDsX

func (hvhq *HPViewHistoryQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*HPViewHistoryQuery) Limit

func (hvhq *HPViewHistoryQuery) Limit(limit int) *HPViewHistoryQuery

Limit the number of records to be returned by this query.

func (*HPViewHistoryQuery) Offset

func (hvhq *HPViewHistoryQuery) Offset(offset int) *HPViewHistoryQuery

Offset to start from.

func (*HPViewHistoryQuery) Only

func (hvhq *HPViewHistoryQuery) Only(ctx context.Context) (*HPViewHistory, error)

Only returns a single HPViewHistory entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one HPViewHistory entity is found. Returns a *NotFoundError when no HPViewHistory entities are found.

func (*HPViewHistoryQuery) OnlyID

func (hvhq *HPViewHistoryQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only HPViewHistory ID in the query. Returns a *NotSingularError when more than one HPViewHistory ID is found. Returns a *NotFoundError when no entities are found.

func (*HPViewHistoryQuery) OnlyIDX

func (hvhq *HPViewHistoryQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*HPViewHistoryQuery) OnlyX

func (hvhq *HPViewHistoryQuery) OnlyX(ctx context.Context) *HPViewHistory

OnlyX is like Only, but panics if an error occurs.

func (*HPViewHistoryQuery) Order

func (hvhq *HPViewHistoryQuery) Order(o ...hpviewhistory.Order) *HPViewHistoryQuery

Order specifies how the records should be ordered.

func (*HPViewHistoryQuery) Paginate

func (hvh *HPViewHistoryQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...HPViewHistoryPaginateOption,
) (*HPViewHistoryConnection, error)

Paginate executes the query and returns a relay based cursor connection to HPViewHistory.

func (*HPViewHistoryQuery) QueryFeed

func (hvhq *HPViewHistoryQuery) QueryFeed() *HPFeedItemQuery

QueryFeed chains the current query on the "feed" edge.

func (*HPViewHistoryQuery) QueryUser

func (hvhq *HPViewHistoryQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*HPViewHistoryQuery) Select

func (hvhq *HPViewHistoryQuery) Select(fields ...string) *HPViewHistorySelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.HPViewHistory.Query().
	Select(hpviewhistory.FieldCreatedAt).
	Scan(ctx, &v)

func (*HPViewHistoryQuery) Unique

func (hvhq *HPViewHistoryQuery) Unique(unique bool) *HPViewHistoryQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*HPViewHistoryQuery) Where

func (hvhq *HPViewHistoryQuery) Where(ps ...predicate.HPViewHistory) *HPViewHistoryQuery

Where adds a new predicate for the HPViewHistoryQuery builder.

func (*HPViewHistoryQuery) WithFeed

func (hvhq *HPViewHistoryQuery) WithFeed(opts ...func(*HPFeedItemQuery)) *HPViewHistoryQuery

WithFeed tells the query-builder to eager-load the nodes that are connected to the "feed" edge. The optional arguments are used to configure the query builder of the edge.

func (*HPViewHistoryQuery) WithUser

func (hvhq *HPViewHistoryQuery) WithUser(opts ...func(*UserQuery)) *HPViewHistoryQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type HPViewHistorySelect

HPViewHistorySelect is the builder for selecting fields of HPViewHistory entities.

type HPViewHistorySelect struct {
    *HPViewHistoryQuery
    // contains filtered or unexported fields
}

func (*HPViewHistorySelect) Aggregate

func (hvhs *HPViewHistorySelect) Aggregate(fns ...AggregateFunc) *HPViewHistorySelect

Aggregate adds the given aggregation functions to the selector query.

func (*HPViewHistorySelect) Bool

func (s *HPViewHistorySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) BoolX

func (s *HPViewHistorySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*HPViewHistorySelect) Bools

func (s *HPViewHistorySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) BoolsX

func (s *HPViewHistorySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*HPViewHistorySelect) Float64

func (s *HPViewHistorySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) Float64X

func (s *HPViewHistorySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*HPViewHistorySelect) Float64s

func (s *HPViewHistorySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) Float64sX

func (s *HPViewHistorySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*HPViewHistorySelect) Int

func (s *HPViewHistorySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) IntX

func (s *HPViewHistorySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*HPViewHistorySelect) Ints

func (s *HPViewHistorySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) IntsX

func (s *HPViewHistorySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*HPViewHistorySelect) Scan

func (hvhs *HPViewHistorySelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*HPViewHistorySelect) ScanX

func (s *HPViewHistorySelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*HPViewHistorySelect) String

func (s *HPViewHistorySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) StringX

func (s *HPViewHistorySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*HPViewHistorySelect) Strings

func (s *HPViewHistorySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*HPViewHistorySelect) StringsX

func (s *HPViewHistorySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type HPViewHistoryUpdate

HPViewHistoryUpdate is the builder for updating HPViewHistory entities.

type HPViewHistoryUpdate struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryUpdate) AddContentID

func (hvhu *HPViewHistoryUpdate) AddContentID(i int) *HPViewHistoryUpdate

AddContentID adds i to the "content_id" field.

func (*HPViewHistoryUpdate) ClearFeed

func (hvhu *HPViewHistoryUpdate) ClearFeed() *HPViewHistoryUpdate

ClearFeed clears the "feed" edge to the HPFeedItem entity.

func (*HPViewHistoryUpdate) ClearUpdatedAt

func (hvhu *HPViewHistoryUpdate) ClearUpdatedAt() *HPViewHistoryUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPViewHistoryUpdate) ClearUser

func (hvhu *HPViewHistoryUpdate) ClearUser() *HPViewHistoryUpdate

ClearUser clears the "user" edge to the User entity.

func (*HPViewHistoryUpdate) Exec

func (hvhu *HPViewHistoryUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*HPViewHistoryUpdate) ExecX

func (hvhu *HPViewHistoryUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryUpdate) Mutation

func (hvhu *HPViewHistoryUpdate) Mutation() *HPViewHistoryMutation

Mutation returns the HPViewHistoryMutation object of the builder.

func (*HPViewHistoryUpdate) Save

func (hvhu *HPViewHistoryUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*HPViewHistoryUpdate) SaveX

func (hvhu *HPViewHistoryUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*HPViewHistoryUpdate) SetAssetType

func (hvhu *HPViewHistoryUpdate) SetAssetType(eat enums.HPAssetType) *HPViewHistoryUpdate

SetAssetType sets the "asset_type" field.

func (*HPViewHistoryUpdate) SetContentID

func (hvhu *HPViewHistoryUpdate) SetContentID(i int) *HPViewHistoryUpdate

SetContentID sets the "content_id" field.

func (*HPViewHistoryUpdate) SetContentPostAt

func (hvhu *HPViewHistoryUpdate) SetContentPostAt(t time.Time) *HPViewHistoryUpdate

SetContentPostAt sets the "content_post_at" field.

func (*HPViewHistoryUpdate) SetFeed

func (hvhu *HPViewHistoryUpdate) SetFeed(h *HPFeedItem) *HPViewHistoryUpdate

SetFeed sets the "feed" edge to the HPFeedItem entity.

func (*HPViewHistoryUpdate) SetFeedID

func (hvhu *HPViewHistoryUpdate) SetFeedID(id int) *HPViewHistoryUpdate

SetFeedID sets the "feed" edge to the HPFeedItem entity by ID.

func (*HPViewHistoryUpdate) SetIsFavorite

func (hvhu *HPViewHistoryUpdate) SetIsFavorite(b bool) *HPViewHistoryUpdate

SetIsFavorite sets the "is_favorite" field.

func (*HPViewHistoryUpdate) SetNillableFeedID

func (hvhu *HPViewHistoryUpdate) SetNillableFeedID(id *int) *HPViewHistoryUpdate

SetNillableFeedID sets the "feed" edge to the HPFeedItem entity by ID if the given value is not nil.

func (*HPViewHistoryUpdate) SetNillableIsFavorite

func (hvhu *HPViewHistoryUpdate) SetNillableIsFavorite(b *bool) *HPViewHistoryUpdate

SetNillableIsFavorite sets the "is_favorite" field if the given value is not nil.

func (*HPViewHistoryUpdate) SetNillableUpdatedAt

func (hvhu *HPViewHistoryUpdate) SetNillableUpdatedAt(t *time.Time) *HPViewHistoryUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPViewHistoryUpdate) SetOwnerUserID

func (hvhu *HPViewHistoryUpdate) SetOwnerUserID(i int) *HPViewHistoryUpdate

SetOwnerUserID sets the "owner_user_id" field.

func (*HPViewHistoryUpdate) SetUpdatedAt

func (hvhu *HPViewHistoryUpdate) SetUpdatedAt(t time.Time) *HPViewHistoryUpdate

SetUpdatedAt sets the "updated_at" field.

func (*HPViewHistoryUpdate) SetUser

func (hvhu *HPViewHistoryUpdate) SetUser(u *User) *HPViewHistoryUpdate

SetUser sets the "user" edge to the User entity.

func (*HPViewHistoryUpdate) SetUserID

func (hvhu *HPViewHistoryUpdate) SetUserID(id int) *HPViewHistoryUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*HPViewHistoryUpdate) Where

func (hvhu *HPViewHistoryUpdate) Where(ps ...predicate.HPViewHistory) *HPViewHistoryUpdate

Where appends a list predicates to the HPViewHistoryUpdate builder.

type HPViewHistoryUpdateOne

HPViewHistoryUpdateOne is the builder for updating a single HPViewHistory entity.

type HPViewHistoryUpdateOne struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryUpdateOne) AddContentID

func (hvhuo *HPViewHistoryUpdateOne) AddContentID(i int) *HPViewHistoryUpdateOne

AddContentID adds i to the "content_id" field.

func (*HPViewHistoryUpdateOne) ClearFeed

func (hvhuo *HPViewHistoryUpdateOne) ClearFeed() *HPViewHistoryUpdateOne

ClearFeed clears the "feed" edge to the HPFeedItem entity.

func (*HPViewHistoryUpdateOne) ClearUpdatedAt

func (hvhuo *HPViewHistoryUpdateOne) ClearUpdatedAt() *HPViewHistoryUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPViewHistoryUpdateOne) ClearUser

func (hvhuo *HPViewHistoryUpdateOne) ClearUser() *HPViewHistoryUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*HPViewHistoryUpdateOne) Exec

func (hvhuo *HPViewHistoryUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*HPViewHistoryUpdateOne) ExecX

func (hvhuo *HPViewHistoryUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryUpdateOne) Mutation

func (hvhuo *HPViewHistoryUpdateOne) Mutation() *HPViewHistoryMutation

Mutation returns the HPViewHistoryMutation object of the builder.

func (*HPViewHistoryUpdateOne) Save

func (hvhuo *HPViewHistoryUpdateOne) Save(ctx context.Context) (*HPViewHistory, error)

Save executes the query and returns the updated HPViewHistory entity.

func (*HPViewHistoryUpdateOne) SaveX

func (hvhuo *HPViewHistoryUpdateOne) SaveX(ctx context.Context) *HPViewHistory

SaveX is like Save, but panics if an error occurs.

func (*HPViewHistoryUpdateOne) Select

func (hvhuo *HPViewHistoryUpdateOne) Select(field string, fields ...string) *HPViewHistoryUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*HPViewHistoryUpdateOne) SetAssetType

func (hvhuo *HPViewHistoryUpdateOne) SetAssetType(eat enums.HPAssetType) *HPViewHistoryUpdateOne

SetAssetType sets the "asset_type" field.

func (*HPViewHistoryUpdateOne) SetContentID

func (hvhuo *HPViewHistoryUpdateOne) SetContentID(i int) *HPViewHistoryUpdateOne

SetContentID sets the "content_id" field.

func (*HPViewHistoryUpdateOne) SetContentPostAt

func (hvhuo *HPViewHistoryUpdateOne) SetContentPostAt(t time.Time) *HPViewHistoryUpdateOne

SetContentPostAt sets the "content_post_at" field.

func (*HPViewHistoryUpdateOne) SetFeed

func (hvhuo *HPViewHistoryUpdateOne) SetFeed(h *HPFeedItem) *HPViewHistoryUpdateOne

SetFeed sets the "feed" edge to the HPFeedItem entity.

func (*HPViewHistoryUpdateOne) SetFeedID

func (hvhuo *HPViewHistoryUpdateOne) SetFeedID(id int) *HPViewHistoryUpdateOne

SetFeedID sets the "feed" edge to the HPFeedItem entity by ID.

func (*HPViewHistoryUpdateOne) SetIsFavorite

func (hvhuo *HPViewHistoryUpdateOne) SetIsFavorite(b bool) *HPViewHistoryUpdateOne

SetIsFavorite sets the "is_favorite" field.

func (*HPViewHistoryUpdateOne) SetNillableFeedID

func (hvhuo *HPViewHistoryUpdateOne) SetNillableFeedID(id *int) *HPViewHistoryUpdateOne

SetNillableFeedID sets the "feed" edge to the HPFeedItem entity by ID if the given value is not nil.

func (*HPViewHistoryUpdateOne) SetNillableIsFavorite

func (hvhuo *HPViewHistoryUpdateOne) SetNillableIsFavorite(b *bool) *HPViewHistoryUpdateOne

SetNillableIsFavorite sets the "is_favorite" field if the given value is not nil.

func (*HPViewHistoryUpdateOne) SetNillableUpdatedAt

func (hvhuo *HPViewHistoryUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPViewHistoryUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*HPViewHistoryUpdateOne) SetOwnerUserID

func (hvhuo *HPViewHistoryUpdateOne) SetOwnerUserID(i int) *HPViewHistoryUpdateOne

SetOwnerUserID sets the "owner_user_id" field.

func (*HPViewHistoryUpdateOne) SetUpdatedAt

func (hvhuo *HPViewHistoryUpdateOne) SetUpdatedAt(t time.Time) *HPViewHistoryUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*HPViewHistoryUpdateOne) SetUser

func (hvhuo *HPViewHistoryUpdateOne) SetUser(u *User) *HPViewHistoryUpdateOne

SetUser sets the "user" edge to the User entity.

func (*HPViewHistoryUpdateOne) SetUserID

func (hvhuo *HPViewHistoryUpdateOne) SetUserID(id int) *HPViewHistoryUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*HPViewHistoryUpdateOne) Where

func (hvhuo *HPViewHistoryUpdateOne) Where(ps ...predicate.HPViewHistory) *HPViewHistoryUpdateOne

Where appends a list predicates to the HPViewHistoryUpdate builder.

type HPViewHistoryUpsert

HPViewHistoryUpsert is the "OnConflict" setter.

type HPViewHistoryUpsert struct {
    *sql.UpdateSet
}

func (*HPViewHistoryUpsert) AddContentID

func (u *HPViewHistoryUpsert) AddContentID(v int) *HPViewHistoryUpsert

AddContentID adds v to the "content_id" field.

func (*HPViewHistoryUpsert) ClearUpdatedAt

func (u *HPViewHistoryUpsert) ClearUpdatedAt() *HPViewHistoryUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPViewHistoryUpsert) SetAssetType

func (u *HPViewHistoryUpsert) SetAssetType(v enums.HPAssetType) *HPViewHistoryUpsert

SetAssetType sets the "asset_type" field.

func (*HPViewHistoryUpsert) SetContentID

func (u *HPViewHistoryUpsert) SetContentID(v int) *HPViewHistoryUpsert

SetContentID sets the "content_id" field.

func (*HPViewHistoryUpsert) SetContentPostAt

func (u *HPViewHistoryUpsert) SetContentPostAt(v time.Time) *HPViewHistoryUpsert

SetContentPostAt sets the "content_post_at" field.

func (*HPViewHistoryUpsert) SetIsFavorite

func (u *HPViewHistoryUpsert) SetIsFavorite(v bool) *HPViewHistoryUpsert

SetIsFavorite sets the "is_favorite" field.

func (*HPViewHistoryUpsert) SetOwnerUserID

func (u *HPViewHistoryUpsert) SetOwnerUserID(v int) *HPViewHistoryUpsert

SetOwnerUserID sets the "owner_user_id" field.

func (*HPViewHistoryUpsert) SetUpdatedAt

func (u *HPViewHistoryUpsert) SetUpdatedAt(v time.Time) *HPViewHistoryUpsert

SetUpdatedAt sets the "updated_at" field.

func (*HPViewHistoryUpsert) UpdateAssetType

func (u *HPViewHistoryUpsert) UpdateAssetType() *HPViewHistoryUpsert

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPViewHistoryUpsert) UpdateContentID

func (u *HPViewHistoryUpsert) UpdateContentID() *HPViewHistoryUpsert

UpdateContentID sets the "content_id" field to the value that was provided on create.

func (*HPViewHistoryUpsert) UpdateContentPostAt

func (u *HPViewHistoryUpsert) UpdateContentPostAt() *HPViewHistoryUpsert

UpdateContentPostAt sets the "content_post_at" field to the value that was provided on create.

func (*HPViewHistoryUpsert) UpdateIsFavorite

func (u *HPViewHistoryUpsert) UpdateIsFavorite() *HPViewHistoryUpsert

UpdateIsFavorite sets the "is_favorite" field to the value that was provided on create.

func (*HPViewHistoryUpsert) UpdateOwnerUserID

func (u *HPViewHistoryUpsert) UpdateOwnerUserID() *HPViewHistoryUpsert

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPViewHistoryUpsert) UpdateUpdatedAt

func (u *HPViewHistoryUpsert) UpdateUpdatedAt() *HPViewHistoryUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPViewHistoryUpsertBulk

HPViewHistoryUpsertBulk is the builder for "upsert"-ing a bulk of HPViewHistory nodes.

type HPViewHistoryUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryUpsertBulk) AddContentID

func (u *HPViewHistoryUpsertBulk) AddContentID(v int) *HPViewHistoryUpsertBulk

AddContentID adds v to the "content_id" field.

func (*HPViewHistoryUpsertBulk) ClearUpdatedAt

func (u *HPViewHistoryUpsertBulk) ClearUpdatedAt() *HPViewHistoryUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPViewHistoryUpsertBulk) DoNothing

func (u *HPViewHistoryUpsertBulk) DoNothing() *HPViewHistoryUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPViewHistoryUpsertBulk) Exec

func (u *HPViewHistoryUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*HPViewHistoryUpsertBulk) ExecX

func (u *HPViewHistoryUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryUpsertBulk) Ignore

func (u *HPViewHistoryUpsertBulk) Ignore() *HPViewHistoryUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPViewHistory.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*HPViewHistoryUpsertBulk) SetAssetType

func (u *HPViewHistoryUpsertBulk) SetAssetType(v enums.HPAssetType) *HPViewHistoryUpsertBulk

SetAssetType sets the "asset_type" field.

func (*HPViewHistoryUpsertBulk) SetContentID

func (u *HPViewHistoryUpsertBulk) SetContentID(v int) *HPViewHistoryUpsertBulk

SetContentID sets the "content_id" field.

func (*HPViewHistoryUpsertBulk) SetContentPostAt

func (u *HPViewHistoryUpsertBulk) SetContentPostAt(v time.Time) *HPViewHistoryUpsertBulk

SetContentPostAt sets the "content_post_at" field.

func (*HPViewHistoryUpsertBulk) SetIsFavorite

func (u *HPViewHistoryUpsertBulk) SetIsFavorite(v bool) *HPViewHistoryUpsertBulk

SetIsFavorite sets the "is_favorite" field.

func (*HPViewHistoryUpsertBulk) SetOwnerUserID

func (u *HPViewHistoryUpsertBulk) SetOwnerUserID(v int) *HPViewHistoryUpsertBulk

SetOwnerUserID sets the "owner_user_id" field.

func (*HPViewHistoryUpsertBulk) SetUpdatedAt

func (u *HPViewHistoryUpsertBulk) SetUpdatedAt(v time.Time) *HPViewHistoryUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*HPViewHistoryUpsertBulk) Update

func (u *HPViewHistoryUpsertBulk) Update(set func(*HPViewHistoryUpsert)) *HPViewHistoryUpsertBulk

Update allows overriding fields `UPDATE` values. See the HPViewHistoryCreateBulk.OnConflict documentation for more info.

func (*HPViewHistoryUpsertBulk) UpdateAssetType

func (u *HPViewHistoryUpsertBulk) UpdateAssetType() *HPViewHistoryUpsertBulk

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPViewHistoryUpsertBulk) UpdateContentID

func (u *HPViewHistoryUpsertBulk) UpdateContentID() *HPViewHistoryUpsertBulk

UpdateContentID sets the "content_id" field to the value that was provided on create.

func (*HPViewHistoryUpsertBulk) UpdateContentPostAt

func (u *HPViewHistoryUpsertBulk) UpdateContentPostAt() *HPViewHistoryUpsertBulk

UpdateContentPostAt sets the "content_post_at" field to the value that was provided on create.

func (*HPViewHistoryUpsertBulk) UpdateIsFavorite

func (u *HPViewHistoryUpsertBulk) UpdateIsFavorite() *HPViewHistoryUpsertBulk

UpdateIsFavorite sets the "is_favorite" field to the value that was provided on create.

func (*HPViewHistoryUpsertBulk) UpdateNewValues

func (u *HPViewHistoryUpsertBulk) UpdateNewValues() *HPViewHistoryUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPViewHistory.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPViewHistoryUpsertBulk) UpdateOwnerUserID

func (u *HPViewHistoryUpsertBulk) UpdateOwnerUserID() *HPViewHistoryUpsertBulk

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPViewHistoryUpsertBulk) UpdateUpdatedAt

func (u *HPViewHistoryUpsertBulk) UpdateUpdatedAt() *HPViewHistoryUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type HPViewHistoryUpsertOne

HPViewHistoryUpsertOne is the builder for "upsert"-ing

one HPViewHistory node.
type HPViewHistoryUpsertOne struct {
    // contains filtered or unexported fields
}

func (*HPViewHistoryUpsertOne) AddContentID

func (u *HPViewHistoryUpsertOne) AddContentID(v int) *HPViewHistoryUpsertOne

AddContentID adds v to the "content_id" field.

func (*HPViewHistoryUpsertOne) ClearUpdatedAt

func (u *HPViewHistoryUpsertOne) ClearUpdatedAt() *HPViewHistoryUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*HPViewHistoryUpsertOne) DoNothing

func (u *HPViewHistoryUpsertOne) DoNothing() *HPViewHistoryUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*HPViewHistoryUpsertOne) Exec

func (u *HPViewHistoryUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*HPViewHistoryUpsertOne) ExecX

func (u *HPViewHistoryUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*HPViewHistoryUpsertOne) ID

func (u *HPViewHistoryUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*HPViewHistoryUpsertOne) IDX

func (u *HPViewHistoryUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*HPViewHistoryUpsertOne) Ignore

func (u *HPViewHistoryUpsertOne) Ignore() *HPViewHistoryUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.HPViewHistory.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*HPViewHistoryUpsertOne) SetAssetType

func (u *HPViewHistoryUpsertOne) SetAssetType(v enums.HPAssetType) *HPViewHistoryUpsertOne

SetAssetType sets the "asset_type" field.

func (*HPViewHistoryUpsertOne) SetContentID

func (u *HPViewHistoryUpsertOne) SetContentID(v int) *HPViewHistoryUpsertOne

SetContentID sets the "content_id" field.

func (*HPViewHistoryUpsertOne) SetContentPostAt

func (u *HPViewHistoryUpsertOne) SetContentPostAt(v time.Time) *HPViewHistoryUpsertOne

SetContentPostAt sets the "content_post_at" field.

func (*HPViewHistoryUpsertOne) SetIsFavorite

func (u *HPViewHistoryUpsertOne) SetIsFavorite(v bool) *HPViewHistoryUpsertOne

SetIsFavorite sets the "is_favorite" field.

func (*HPViewHistoryUpsertOne) SetOwnerUserID

func (u *HPViewHistoryUpsertOne) SetOwnerUserID(v int) *HPViewHistoryUpsertOne

SetOwnerUserID sets the "owner_user_id" field.

func (*HPViewHistoryUpsertOne) SetUpdatedAt

func (u *HPViewHistoryUpsertOne) SetUpdatedAt(v time.Time) *HPViewHistoryUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*HPViewHistoryUpsertOne) Update

func (u *HPViewHistoryUpsertOne) Update(set func(*HPViewHistoryUpsert)) *HPViewHistoryUpsertOne

Update allows overriding fields `UPDATE` values. See the HPViewHistoryCreate.OnConflict documentation for more info.

func (*HPViewHistoryUpsertOne) UpdateAssetType

func (u *HPViewHistoryUpsertOne) UpdateAssetType() *HPViewHistoryUpsertOne

UpdateAssetType sets the "asset_type" field to the value that was provided on create.

func (*HPViewHistoryUpsertOne) UpdateContentID

func (u *HPViewHistoryUpsertOne) UpdateContentID() *HPViewHistoryUpsertOne

UpdateContentID sets the "content_id" field to the value that was provided on create.

func (*HPViewHistoryUpsertOne) UpdateContentPostAt

func (u *HPViewHistoryUpsertOne) UpdateContentPostAt() *HPViewHistoryUpsertOne

UpdateContentPostAt sets the "content_post_at" field to the value that was provided on create.

func (*HPViewHistoryUpsertOne) UpdateIsFavorite

func (u *HPViewHistoryUpsertOne) UpdateIsFavorite() *HPViewHistoryUpsertOne

UpdateIsFavorite sets the "is_favorite" field to the value that was provided on create.

func (*HPViewHistoryUpsertOne) UpdateNewValues

func (u *HPViewHistoryUpsertOne) UpdateNewValues() *HPViewHistoryUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.HPViewHistory.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*HPViewHistoryUpsertOne) UpdateOwnerUserID

func (u *HPViewHistoryUpsertOne) UpdateOwnerUserID() *HPViewHistoryUpsertOne

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*HPViewHistoryUpsertOne) UpdateUpdatedAt

func (u *HPViewHistoryUpsertOne) UpdateUpdatedAt() *HPViewHistoryUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Hook

ent aliases to avoid import conflicts in user's code.

type Hook = ent.Hook

type InterceptFunc

ent aliases to avoid import conflicts in user's code.

type InterceptFunc = ent.InterceptFunc

type Interceptor

ent aliases to avoid import conflicts in user's code.

type Interceptor = ent.Interceptor

type MutateFunc

ent aliases to avoid import conflicts in user's code.

type MutateFunc = ent.MutateFunc

type Mutation

ent aliases to avoid import conflicts in user's code.

type Mutation = ent.Mutation

type Mutator

ent aliases to avoid import conflicts in user's code.

type Mutator = ent.Mutator

type NodeOption

NodeOption allows configuring the Noder execution using functional options.

type NodeOption func(*nodeOptions)

func WithFixedNodeType

func WithFixedNodeType(t string) NodeOption

WithFixedNodeType sets the Type of the node to a fixed value.

func WithNodeType

func WithNodeType(f func(context.Context, int) (string, error)) NodeOption

WithNodeType sets the node Type resolver function (i.e. the table to query). If was not provided, the table will be derived from the universal-id configuration as described in: https://entgo.io/docs/migrate/#universal-ids.

type Noder

Noder wraps the basic Node method.

type Noder interface {
    IsNode()
}

type NotFoundError

NotFoundError returns when trying to fetch a specific entity and it was not found in the database.

type NotFoundError struct {
    // contains filtered or unexported fields
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Error implements the error interface.

type NotLoadedError

NotLoadedError returns when trying to get a node that was not loaded by the query.

type NotLoadedError struct {
    // contains filtered or unexported fields
}

func (*NotLoadedError) Error

func (e *NotLoadedError) Error() string

Error implements the error interface.

type NotSingularError

NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.

type NotSingularError struct {
    // contains filtered or unexported fields
}

func (*NotSingularError) Error

func (e *NotSingularError) Error() string

Error implements the error interface.

type Op

ent aliases to avoid import conflicts in user's code.

type Op = ent.Op

type Option

Option function to configure the client.

type Option func(*config)

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func Log

func Log(fn func(...any)) Option

Log sets the logging function for debug mode.

type OrderDirection

Common entgql types.

type OrderDirection = entgql.OrderDirection

type OrderFunc

OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.

type OrderFunc func(*sql.Selector)

type PageInfo

Common entgql types.

type PageInfo = entgql.PageInfo[int]

type Policy

ent aliases to avoid import conflicts in user's code.

type Policy = ent.Policy

type Querier

ent aliases to avoid import conflicts in user's code.

type Querier = ent.Querier

type QuerierFunc

ent aliases to avoid import conflicts in user's code.

type QuerierFunc = ent.QuerierFunc

type Query

ent aliases to avoid import conflicts in user's code.

type Query = ent.Query

type QueryContext

ent aliases to avoid import conflicts in user's code.

type QueryContext = ent.QueryContext

type RollbackFunc

The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.

type RollbackFunc func(context.Context, *Tx) error

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

type RollbackHook

RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:

hook := func(next ent.Rollbacker) ent.Rollbacker {
	return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}
type RollbackHook func(Rollbacker) Rollbacker

type Rollbacker

Rollbacker is the interface that wraps the Rollback method.

type Rollbacker interface {
    Rollback(context.Context, *Tx) error
}

type TestEnt

TestEnt is the model entity for the TestEnt schema.

type TestEnt struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // StringField holds the value of the "string_field" field.
    StringField *string `json:"string_field,omitempty"`
    // TextField holds the value of the "text_field" field.
    TextField *string `json:"text_field,omitempty"`
    // BytesField holds the value of the "bytes_field" field.
    BytesField *[]byte `json:"bytes_field,omitempty"`
    // BoolField holds the value of the "bool_field" field.
    BoolField *bool `json:"bool_field,omitempty"`
    // TimeField holds the value of the "time_field" field.
    TimeField *time.Time `json:"time_field,omitempty"`
    // IntField holds the value of the "int_field" field.
    IntField *int `json:"int_field,omitempty"`
    // Int64Field holds the value of the "int64_field" field.
    Int64Field *int64 `json:"int64_field,omitempty"`
    // FloatField holds the value of the "float_field" field.
    FloatField *float64 `json:"float_field,omitempty"`
    // JSONField holds the value of the "json_field" field.
    JSONField *jsonfields.TestJSON `json:"json_field,omitempty"`
    // EnumField holds the value of the "enum_field" field.
    EnumField enums.TestEnum `json:"enum_field,omitempty"`
    // contains filtered or unexported fields
}

func (*TestEnt) String

func (te *TestEnt) String() string

String implements the fmt.Stringer.

func (*TestEnt) Unwrap

func (te *TestEnt) Unwrap() *TestEnt

Unwrap unwraps the TestEnt entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*TestEnt) Update

func (te *TestEnt) Update() *TestEntUpdateOne

Update returns a builder for updating this TestEnt. Note that you need to call TestEnt.Unwrap() before calling this method if this TestEnt was returned from a transaction, and the transaction was committed or rolled back.

func (*TestEnt) Value

func (te *TestEnt) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the TestEnt. This includes values selected through modifiers, order, etc.

type TestEntClient

TestEntClient is a client for the TestEnt schema.

type TestEntClient struct {
    // contains filtered or unexported fields
}

func NewTestEntClient

func NewTestEntClient(c config) *TestEntClient

NewTestEntClient returns a client for the TestEnt from the given config.

func (*TestEntClient) Create

func (c *TestEntClient) Create() *TestEntCreate

Create returns a builder for creating a TestEnt entity.

func (*TestEntClient) CreateBulk

func (c *TestEntClient) CreateBulk(builders ...*TestEntCreate) *TestEntCreateBulk

CreateBulk returns a builder for creating a bulk of TestEnt entities.

func (*TestEntClient) Delete

func (c *TestEntClient) Delete() *TestEntDelete

Delete returns a delete builder for TestEnt.

func (*TestEntClient) DeleteOne

func (c *TestEntClient) DeleteOne(te *TestEnt) *TestEntDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*TestEntClient) DeleteOneID

func (c *TestEntClient) DeleteOneID(id int) *TestEntDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*TestEntClient) Get

func (c *TestEntClient) Get(ctx context.Context, id int) (*TestEnt, error)

Get returns a TestEnt entity by its id.

func (*TestEntClient) GetX

func (c *TestEntClient) GetX(ctx context.Context, id int) *TestEnt

GetX is like Get, but panics if an error occurs.

func (*TestEntClient) Hooks

func (c *TestEntClient) Hooks() []Hook

Hooks returns the client hooks.

func (*TestEntClient) Intercept

func (c *TestEntClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `testent.Intercept(f(g(h())))`.

func (*TestEntClient) Interceptors

func (c *TestEntClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*TestEntClient) Query

func (c *TestEntClient) Query() *TestEntQuery

Query returns a query builder for TestEnt.

func (*TestEntClient) Update

func (c *TestEntClient) Update() *TestEntUpdate

Update returns an update builder for TestEnt.

func (*TestEntClient) UpdateOne

func (c *TestEntClient) UpdateOne(te *TestEnt) *TestEntUpdateOne

UpdateOne returns an update builder for the given entity.

func (*TestEntClient) UpdateOneID

func (c *TestEntClient) UpdateOneID(id int) *TestEntUpdateOne

UpdateOneID returns an update builder for the given id.

func (*TestEntClient) Use

func (c *TestEntClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `testent.Hooks(f(g(h())))`.

type TestEntCreate

TestEntCreate is the builder for creating a TestEnt entity.

type TestEntCreate struct {
    // contains filtered or unexported fields
}

func (*TestEntCreate) Exec

func (tec *TestEntCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*TestEntCreate) ExecX

func (tec *TestEntCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestEntCreate) Mutation

func (tec *TestEntCreate) Mutation() *TestEntMutation

Mutation returns the TestEntMutation object of the builder.

func (*TestEntCreate) OnConflict

func (tec *TestEntCreate) OnConflict(opts ...sql.ConflictOption) *TestEntUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.TestEnt.Create().
	SetStringField(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.TestEntUpsert) {
		SetStringField(v+v).
	}).
	Exec(ctx)

func (*TestEntCreate) OnConflictColumns

func (tec *TestEntCreate) OnConflictColumns(columns ...string) *TestEntUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.TestEnt.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*TestEntCreate) Save

func (tec *TestEntCreate) Save(ctx context.Context) (*TestEnt, error)

Save creates the TestEnt in the database.

func (*TestEntCreate) SaveX

func (tec *TestEntCreate) SaveX(ctx context.Context) *TestEnt

SaveX calls Save and panics if Save returns an error.

func (*TestEntCreate) SetBoolField

func (tec *TestEntCreate) SetBoolField(b bool) *TestEntCreate

SetBoolField sets the "bool_field" field.

func (*TestEntCreate) SetBytesField

func (tec *TestEntCreate) SetBytesField(b []byte) *TestEntCreate

SetBytesField sets the "bytes_field" field.

func (*TestEntCreate) SetEnumField

func (tec *TestEntCreate) SetEnumField(ee enums.TestEnum) *TestEntCreate

SetEnumField sets the "enum_field" field.

func (*TestEntCreate) SetFloatField

func (tec *TestEntCreate) SetFloatField(f float64) *TestEntCreate

SetFloatField sets the "float_field" field.

func (*TestEntCreate) SetInt64Field

func (tec *TestEntCreate) SetInt64Field(i int64) *TestEntCreate

SetInt64Field sets the "int64_field" field.

func (*TestEntCreate) SetIntField

func (tec *TestEntCreate) SetIntField(i int) *TestEntCreate

SetIntField sets the "int_field" field.

func (*TestEntCreate) SetJSONField

func (tec *TestEntCreate) SetJSONField(jj *jsonfields.TestJSON) *TestEntCreate

SetJSONField sets the "json_field" field.

func (*TestEntCreate) SetNillableBoolField

func (tec *TestEntCreate) SetNillableBoolField(b *bool) *TestEntCreate

SetNillableBoolField sets the "bool_field" field if the given value is not nil.

func (*TestEntCreate) SetNillableEnumField

func (tec *TestEntCreate) SetNillableEnumField(ee *enums.TestEnum) *TestEntCreate

SetNillableEnumField sets the "enum_field" field if the given value is not nil.

func (*TestEntCreate) SetNillableFloatField

func (tec *TestEntCreate) SetNillableFloatField(f *float64) *TestEntCreate

SetNillableFloatField sets the "float_field" field if the given value is not nil.

func (*TestEntCreate) SetNillableInt64Field

func (tec *TestEntCreate) SetNillableInt64Field(i *int64) *TestEntCreate

SetNillableInt64Field sets the "int64_field" field if the given value is not nil.

func (*TestEntCreate) SetNillableIntField

func (tec *TestEntCreate) SetNillableIntField(i *int) *TestEntCreate

SetNillableIntField sets the "int_field" field if the given value is not nil.

func (*TestEntCreate) SetNillableStringField

func (tec *TestEntCreate) SetNillableStringField(s *string) *TestEntCreate

SetNillableStringField sets the "string_field" field if the given value is not nil.

func (*TestEntCreate) SetNillableTextField

func (tec *TestEntCreate) SetNillableTextField(s *string) *TestEntCreate

SetNillableTextField sets the "text_field" field if the given value is not nil.

func (*TestEntCreate) SetNillableTimeField

func (tec *TestEntCreate) SetNillableTimeField(t *time.Time) *TestEntCreate

SetNillableTimeField sets the "time_field" field if the given value is not nil.

func (*TestEntCreate) SetStringField

func (tec *TestEntCreate) SetStringField(s string) *TestEntCreate

SetStringField sets the "string_field" field.

func (*TestEntCreate) SetTextField

func (tec *TestEntCreate) SetTextField(s string) *TestEntCreate

SetTextField sets the "text_field" field.

func (*TestEntCreate) SetTimeField

func (tec *TestEntCreate) SetTimeField(t time.Time) *TestEntCreate

SetTimeField sets the "time_field" field.

type TestEntCreateBulk

TestEntCreateBulk is the builder for creating many TestEnt entities in bulk.

type TestEntCreateBulk struct {
    // contains filtered or unexported fields
}

func (*TestEntCreateBulk) Exec

func (tecb *TestEntCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*TestEntCreateBulk) ExecX

func (tecb *TestEntCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestEntCreateBulk) OnConflict

func (tecb *TestEntCreateBulk) OnConflict(opts ...sql.ConflictOption) *TestEntUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.TestEnt.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.TestEntUpsert) {
		SetStringField(v+v).
	}).
	Exec(ctx)

func (*TestEntCreateBulk) OnConflictColumns

func (tecb *TestEntCreateBulk) OnConflictColumns(columns ...string) *TestEntUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.TestEnt.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*TestEntCreateBulk) Save

func (tecb *TestEntCreateBulk) Save(ctx context.Context) ([]*TestEnt, error)

Save creates the TestEnt entities in the database.

func (*TestEntCreateBulk) SaveX

func (tecb *TestEntCreateBulk) SaveX(ctx context.Context) []*TestEnt

SaveX is like Save, but panics if an error occurs.

type TestEntDelete

TestEntDelete is the builder for deleting a TestEnt entity.

type TestEntDelete struct {
    // contains filtered or unexported fields
}

func (*TestEntDelete) Exec

func (ted *TestEntDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*TestEntDelete) ExecX

func (ted *TestEntDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*TestEntDelete) Where

func (ted *TestEntDelete) Where(ps ...predicate.TestEnt) *TestEntDelete

Where appends a list predicates to the TestEntDelete builder.

type TestEntDeleteOne

TestEntDeleteOne is the builder for deleting a single TestEnt entity.

type TestEntDeleteOne struct {
    // contains filtered or unexported fields
}

func (*TestEntDeleteOne) Exec

func (tedo *TestEntDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*TestEntDeleteOne) ExecX

func (tedo *TestEntDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestEntDeleteOne) Where

func (tedo *TestEntDeleteOne) Where(ps ...predicate.TestEnt) *TestEntDeleteOne

Where appends a list predicates to the TestEntDelete builder.

type TestEntFilter

TestEntFilter provides a generic filtering capability at runtime for TestEntQuery.

type TestEntFilter struct {
    // contains filtered or unexported fields
}

func (*TestEntFilter) Where

func (f *TestEntFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*TestEntFilter) WhereBoolField

func (f *TestEntFilter) WhereBoolField(p entql.BoolP)

WhereBoolField applies the entql bool predicate on the bool_field field.

func (*TestEntFilter) WhereBytesField

func (f *TestEntFilter) WhereBytesField(p entql.BytesP)

WhereBytesField applies the entql []byte predicate on the bytes_field field.

func (*TestEntFilter) WhereEnumField

func (f *TestEntFilter) WhereEnumField(p entql.StringP)

WhereEnumField applies the entql string predicate on the enum_field field.

func (*TestEntFilter) WhereFloatField

func (f *TestEntFilter) WhereFloatField(p entql.Float64P)

WhereFloatField applies the entql float64 predicate on the float_field field.

func (*TestEntFilter) WhereID

func (f *TestEntFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*TestEntFilter) WhereInt64Field

func (f *TestEntFilter) WhereInt64Field(p entql.Int64P)

WhereInt64Field applies the entql int64 predicate on the int64_field field.

func (*TestEntFilter) WhereIntField

func (f *TestEntFilter) WhereIntField(p entql.IntP)

WhereIntField applies the entql int predicate on the int_field field.

func (*TestEntFilter) WhereJSONField

func (f *TestEntFilter) WhereJSONField(p entql.BytesP)

WhereJSONField applies the entql json.RawMessage predicate on the json_field field.

func (*TestEntFilter) WhereStringField

func (f *TestEntFilter) WhereStringField(p entql.StringP)

WhereStringField applies the entql string predicate on the string_field field.

func (*TestEntFilter) WhereTextField

func (f *TestEntFilter) WhereTextField(p entql.StringP)

WhereTextField applies the entql string predicate on the text_field field.

func (*TestEntFilter) WhereTimeField

func (f *TestEntFilter) WhereTimeField(p entql.TimeP)

WhereTimeField applies the entql time.Time predicate on the time_field field.

type TestEntGroupBy

TestEntGroupBy is the group-by builder for TestEnt entities.

type TestEntGroupBy struct {
    // contains filtered or unexported fields
}

func (*TestEntGroupBy) Aggregate

func (tegb *TestEntGroupBy) Aggregate(fns ...AggregateFunc) *TestEntGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*TestEntGroupBy) Bool

func (s *TestEntGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) BoolX

func (s *TestEntGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TestEntGroupBy) Bools

func (s *TestEntGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) BoolsX

func (s *TestEntGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TestEntGroupBy) Float64

func (s *TestEntGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) Float64X

func (s *TestEntGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TestEntGroupBy) Float64s

func (s *TestEntGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) Float64sX

func (s *TestEntGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TestEntGroupBy) Int

func (s *TestEntGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) IntX

func (s *TestEntGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TestEntGroupBy) Ints

func (s *TestEntGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) IntsX

func (s *TestEntGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TestEntGroupBy) Scan

func (tegb *TestEntGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*TestEntGroupBy) ScanX

func (s *TestEntGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TestEntGroupBy) String

func (s *TestEntGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) StringX

func (s *TestEntGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TestEntGroupBy) Strings

func (s *TestEntGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TestEntGroupBy) StringsX

func (s *TestEntGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TestEntMutation

TestEntMutation represents an operation that mutates the TestEnt nodes in the graph.

type TestEntMutation struct {
    // contains filtered or unexported fields
}

func (*TestEntMutation) AddField

func (m *TestEntMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TestEntMutation) AddFloatField

func (m *TestEntMutation) AddFloatField(f float64)

AddFloatField adds f to the "float_field" field.

func (*TestEntMutation) AddInt64Field

func (m *TestEntMutation) AddInt64Field(i int64)

AddInt64Field adds i to the "int64_field" field.

func (*TestEntMutation) AddIntField

func (m *TestEntMutation) AddIntField(i int)

AddIntField adds i to the "int_field" field.

func (*TestEntMutation) AddedEdges

func (m *TestEntMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*TestEntMutation) AddedField

func (m *TestEntMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TestEntMutation) AddedFields

func (m *TestEntMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TestEntMutation) AddedFloatField

func (m *TestEntMutation) AddedFloatField() (r float64, exists bool)

AddedFloatField returns the value that was added to the "float_field" field in this mutation.

func (*TestEntMutation) AddedIDs

func (m *TestEntMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TestEntMutation) AddedInt64Field

func (m *TestEntMutation) AddedInt64Field() (r int64, exists bool)

AddedInt64Field returns the value that was added to the "int64_field" field in this mutation.

func (*TestEntMutation) AddedIntField

func (m *TestEntMutation) AddedIntField() (r int, exists bool)

AddedIntField returns the value that was added to the "int_field" field in this mutation.

func (*TestEntMutation) BoolField

func (m *TestEntMutation) BoolField() (r bool, exists bool)

BoolField returns the value of the "bool_field" field in the mutation.

func (*TestEntMutation) BoolFieldCleared

func (m *TestEntMutation) BoolFieldCleared() bool

BoolFieldCleared returns if the "bool_field" field was cleared in this mutation.

func (*TestEntMutation) BytesField

func (m *TestEntMutation) BytesField() (r []byte, exists bool)

BytesField returns the value of the "bytes_field" field in the mutation.

func (*TestEntMutation) BytesFieldCleared

func (m *TestEntMutation) BytesFieldCleared() bool

BytesFieldCleared returns if the "bytes_field" field was cleared in this mutation.

func (*TestEntMutation) ClearBoolField

func (m *TestEntMutation) ClearBoolField()

ClearBoolField clears the value of the "bool_field" field.

func (*TestEntMutation) ClearBytesField

func (m *TestEntMutation) ClearBytesField()

ClearBytesField clears the value of the "bytes_field" field.

func (*TestEntMutation) ClearEdge

func (m *TestEntMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TestEntMutation) ClearEnumField

func (m *TestEntMutation) ClearEnumField()

ClearEnumField clears the value of the "enum_field" field.

func (*TestEntMutation) ClearField

func (m *TestEntMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TestEntMutation) ClearFloatField

func (m *TestEntMutation) ClearFloatField()

ClearFloatField clears the value of the "float_field" field.

func (*TestEntMutation) ClearInt64Field

func (m *TestEntMutation) ClearInt64Field()

ClearInt64Field clears the value of the "int64_field" field.

func (*TestEntMutation) ClearIntField

func (m *TestEntMutation) ClearIntField()

ClearIntField clears the value of the "int_field" field.

func (*TestEntMutation) ClearJSONField

func (m *TestEntMutation) ClearJSONField()

ClearJSONField clears the value of the "json_field" field.

func (*TestEntMutation) ClearStringField

func (m *TestEntMutation) ClearStringField()

ClearStringField clears the value of the "string_field" field.

func (*TestEntMutation) ClearTextField

func (m *TestEntMutation) ClearTextField()

ClearTextField clears the value of the "text_field" field.

func (*TestEntMutation) ClearTimeField

func (m *TestEntMutation) ClearTimeField()

ClearTimeField clears the value of the "time_field" field.

func (*TestEntMutation) ClearedEdges

func (m *TestEntMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TestEntMutation) ClearedFields

func (m *TestEntMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TestEntMutation) Client

func (m TestEntMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TestEntMutation) EdgeCleared

func (m *TestEntMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TestEntMutation) EnumField

func (m *TestEntMutation) EnumField() (r enums.TestEnum, exists bool)

EnumField returns the value of the "enum_field" field in the mutation.

func (*TestEntMutation) EnumFieldCleared

func (m *TestEntMutation) EnumFieldCleared() bool

EnumFieldCleared returns if the "enum_field" field was cleared in this mutation.

func (*TestEntMutation) Field

func (m *TestEntMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TestEntMutation) FieldCleared

func (m *TestEntMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TestEntMutation) Fields

func (m *TestEntMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TestEntMutation) Filter

func (m *TestEntMutation) Filter() *TestEntFilter

Filter returns an entql.Where implementation to apply filters on the TestEntMutation builder.

func (*TestEntMutation) FloatField

func (m *TestEntMutation) FloatField() (r float64, exists bool)

FloatField returns the value of the "float_field" field in the mutation.

func (*TestEntMutation) FloatFieldCleared

func (m *TestEntMutation) FloatFieldCleared() bool

FloatFieldCleared returns if the "float_field" field was cleared in this mutation.

func (*TestEntMutation) ID

func (m *TestEntMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TestEntMutation) IDs

func (m *TestEntMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*TestEntMutation) Int64Field

func (m *TestEntMutation) Int64Field() (r int64, exists bool)

Int64Field returns the value of the "int64_field" field in the mutation.

func (*TestEntMutation) Int64FieldCleared

func (m *TestEntMutation) Int64FieldCleared() bool

Int64FieldCleared returns if the "int64_field" field was cleared in this mutation.

func (*TestEntMutation) IntField

func (m *TestEntMutation) IntField() (r int, exists bool)

IntField returns the value of the "int_field" field in the mutation.

func (*TestEntMutation) IntFieldCleared

func (m *TestEntMutation) IntFieldCleared() bool

IntFieldCleared returns if the "int_field" field was cleared in this mutation.

func (*TestEntMutation) JSONField

func (m *TestEntMutation) JSONField() (r *jsonfields.TestJSON, exists bool)

JSONField returns the value of the "json_field" field in the mutation.

func (*TestEntMutation) JSONFieldCleared

func (m *TestEntMutation) JSONFieldCleared() bool

JSONFieldCleared returns if the "json_field" field was cleared in this mutation.

func (*TestEntMutation) OldBoolField

func (m *TestEntMutation) OldBoolField(ctx context.Context) (v *bool, err error)

OldBoolField returns the old "bool_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldBytesField

func (m *TestEntMutation) OldBytesField(ctx context.Context) (v *[]byte, err error)

OldBytesField returns the old "bytes_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldEnumField

func (m *TestEntMutation) OldEnumField(ctx context.Context) (v enums.TestEnum, err error)

OldEnumField returns the old "enum_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldField

func (m *TestEntMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TestEntMutation) OldFloatField

func (m *TestEntMutation) OldFloatField(ctx context.Context) (v *float64, err error)

OldFloatField returns the old "float_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldInt64Field

func (m *TestEntMutation) OldInt64Field(ctx context.Context) (v *int64, err error)

OldInt64Field returns the old "int64_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldIntField

func (m *TestEntMutation) OldIntField(ctx context.Context) (v *int, err error)

OldIntField returns the old "int_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldJSONField

func (m *TestEntMutation) OldJSONField(ctx context.Context) (v *jsonfields.TestJSON, err error)

OldJSONField returns the old "json_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldStringField

func (m *TestEntMutation) OldStringField(ctx context.Context) (v *string, err error)

OldStringField returns the old "string_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldTextField

func (m *TestEntMutation) OldTextField(ctx context.Context) (v *string, err error)

OldTextField returns the old "text_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) OldTimeField

func (m *TestEntMutation) OldTimeField(ctx context.Context) (v *time.Time, err error)

OldTimeField returns the old "time_field" field's value of the TestEnt entity. If the TestEnt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestEntMutation) Op

func (m *TestEntMutation) Op() Op

Op returns the operation name.

func (*TestEntMutation) RemovedEdges

func (m *TestEntMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*TestEntMutation) RemovedIDs

func (m *TestEntMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TestEntMutation) ResetBoolField

func (m *TestEntMutation) ResetBoolField()

ResetBoolField resets all changes to the "bool_field" field.

func (*TestEntMutation) ResetBytesField

func (m *TestEntMutation) ResetBytesField()

ResetBytesField resets all changes to the "bytes_field" field.

func (*TestEntMutation) ResetEdge

func (m *TestEntMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TestEntMutation) ResetEnumField

func (m *TestEntMutation) ResetEnumField()

ResetEnumField resets all changes to the "enum_field" field.

func (*TestEntMutation) ResetField

func (m *TestEntMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TestEntMutation) ResetFloatField

func (m *TestEntMutation) ResetFloatField()

ResetFloatField resets all changes to the "float_field" field.

func (*TestEntMutation) ResetInt64Field

func (m *TestEntMutation) ResetInt64Field()

ResetInt64Field resets all changes to the "int64_field" field.

func (*TestEntMutation) ResetIntField

func (m *TestEntMutation) ResetIntField()

ResetIntField resets all changes to the "int_field" field.

func (*TestEntMutation) ResetJSONField

func (m *TestEntMutation) ResetJSONField()

ResetJSONField resets all changes to the "json_field" field.

func (*TestEntMutation) ResetStringField

func (m *TestEntMutation) ResetStringField()

ResetStringField resets all changes to the "string_field" field.

func (*TestEntMutation) ResetTextField

func (m *TestEntMutation) ResetTextField()

ResetTextField resets all changes to the "text_field" field.

func (*TestEntMutation) ResetTimeField

func (m *TestEntMutation) ResetTimeField()

ResetTimeField resets all changes to the "time_field" field.

func (*TestEntMutation) SetBoolField

func (m *TestEntMutation) SetBoolField(b bool)

SetBoolField sets the "bool_field" field.

func (*TestEntMutation) SetBytesField

func (m *TestEntMutation) SetBytesField(b []byte)

SetBytesField sets the "bytes_field" field.

func (*TestEntMutation) SetEnumField

func (m *TestEntMutation) SetEnumField(ee enums.TestEnum)

SetEnumField sets the "enum_field" field.

func (*TestEntMutation) SetField

func (m *TestEntMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TestEntMutation) SetFloatField

func (m *TestEntMutation) SetFloatField(f float64)

SetFloatField sets the "float_field" field.

func (*TestEntMutation) SetInt64Field

func (m *TestEntMutation) SetInt64Field(i int64)

SetInt64Field sets the "int64_field" field.

func (*TestEntMutation) SetIntField

func (m *TestEntMutation) SetIntField(i int)

SetIntField sets the "int_field" field.

func (*TestEntMutation) SetJSONField

func (m *TestEntMutation) SetJSONField(jj *jsonfields.TestJSON)

SetJSONField sets the "json_field" field.

func (*TestEntMutation) SetOp

func (m *TestEntMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*TestEntMutation) SetStringField

func (m *TestEntMutation) SetStringField(s string)

SetStringField sets the "string_field" field.

func (*TestEntMutation) SetTextField

func (m *TestEntMutation) SetTextField(s string)

SetTextField sets the "text_field" field.

func (*TestEntMutation) SetTimeField

func (m *TestEntMutation) SetTimeField(t time.Time)

SetTimeField sets the "time_field" field.

func (*TestEntMutation) StringField

func (m *TestEntMutation) StringField() (r string, exists bool)

StringField returns the value of the "string_field" field in the mutation.

func (*TestEntMutation) StringFieldCleared

func (m *TestEntMutation) StringFieldCleared() bool

StringFieldCleared returns if the "string_field" field was cleared in this mutation.

func (*TestEntMutation) TextField

func (m *TestEntMutation) TextField() (r string, exists bool)

TextField returns the value of the "text_field" field in the mutation.

func (*TestEntMutation) TextFieldCleared

func (m *TestEntMutation) TextFieldCleared() bool

TextFieldCleared returns if the "text_field" field was cleared in this mutation.

func (*TestEntMutation) TimeField

func (m *TestEntMutation) TimeField() (r time.Time, exists bool)

TimeField returns the value of the "time_field" field in the mutation.

func (*TestEntMutation) TimeFieldCleared

func (m *TestEntMutation) TimeFieldCleared() bool

TimeFieldCleared returns if the "time_field" field was cleared in this mutation.

func (TestEntMutation) Tx

func (m TestEntMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TestEntMutation) Type

func (m *TestEntMutation) Type() string

Type returns the node type of this mutation (TestEnt).

func (*TestEntMutation) Where

func (m *TestEntMutation) Where(ps ...predicate.TestEnt)

Where appends a list predicates to the TestEntMutation builder.

func (*TestEntMutation) WhereP

func (m *TestEntMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the TestEntMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type TestEntQuery

TestEntQuery is the builder for querying TestEnt entities.

type TestEntQuery struct {
    // contains filtered or unexported fields
}

func (*TestEntQuery) Aggregate

func (teq *TestEntQuery) Aggregate(fns ...AggregateFunc) *TestEntSelect

Aggregate returns a TestEntSelect configured with the given aggregations.

func (*TestEntQuery) All

func (teq *TestEntQuery) All(ctx context.Context) ([]*TestEnt, error)

All executes the query and returns a list of TestEnts.

func (*TestEntQuery) AllX

func (teq *TestEntQuery) AllX(ctx context.Context) []*TestEnt

AllX is like All, but panics if an error occurs.

func (*TestEntQuery) Clone

func (teq *TestEntQuery) Clone() *TestEntQuery

Clone returns a duplicate of the TestEntQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TestEntQuery) Count

func (teq *TestEntQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*TestEntQuery) CountX

func (teq *TestEntQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*TestEntQuery) Exist

func (teq *TestEntQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*TestEntQuery) ExistX

func (teq *TestEntQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*TestEntQuery) Filter

func (teq *TestEntQuery) Filter() *TestEntFilter

Filter returns a Filter implementation to apply filters on the TestEntQuery builder.

func (*TestEntQuery) First

func (teq *TestEntQuery) First(ctx context.Context) (*TestEnt, error)

First returns the first TestEnt entity from the query. Returns a *NotFoundError when no TestEnt was found.

func (*TestEntQuery) FirstID

func (teq *TestEntQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first TestEnt ID from the query. Returns a *NotFoundError when no TestEnt ID was found.

func (*TestEntQuery) FirstIDX

func (teq *TestEntQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*TestEntQuery) FirstX

func (teq *TestEntQuery) FirstX(ctx context.Context) *TestEnt

FirstX is like First, but panics if an error occurs.

func (*TestEntQuery) GroupBy

func (teq *TestEntQuery) GroupBy(field string, fields ...string) *TestEntGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	StringField string `json:"string_field,omitempty"`
	Count int `json:"count,omitempty"`
}

client.TestEnt.Query().
	GroupBy(testent.FieldStringField).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TestEntQuery) IDs

func (teq *TestEntQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of TestEnt IDs.

func (*TestEntQuery) IDsX

func (teq *TestEntQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*TestEntQuery) Limit

func (teq *TestEntQuery) Limit(limit int) *TestEntQuery

Limit the number of records to be returned by this query.

func (*TestEntQuery) Offset

func (teq *TestEntQuery) Offset(offset int) *TestEntQuery

Offset to start from.

func (*TestEntQuery) Only

func (teq *TestEntQuery) Only(ctx context.Context) (*TestEnt, error)

Only returns a single TestEnt entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one TestEnt entity is found. Returns a *NotFoundError when no TestEnt entities are found.

func (*TestEntQuery) OnlyID

func (teq *TestEntQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only TestEnt ID in the query. Returns a *NotSingularError when more than one TestEnt ID is found. Returns a *NotFoundError when no entities are found.

func (*TestEntQuery) OnlyIDX

func (teq *TestEntQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TestEntQuery) OnlyX

func (teq *TestEntQuery) OnlyX(ctx context.Context) *TestEnt

OnlyX is like Only, but panics if an error occurs.

func (*TestEntQuery) Order

func (teq *TestEntQuery) Order(o ...testent.Order) *TestEntQuery

Order specifies how the records should be ordered.

func (*TestEntQuery) Select

func (teq *TestEntQuery) Select(fields ...string) *TestEntSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	StringField string `json:"string_field,omitempty"`
}

client.TestEnt.Query().
	Select(testent.FieldStringField).
	Scan(ctx, &v)

func (*TestEntQuery) Unique

func (teq *TestEntQuery) Unique(unique bool) *TestEntQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TestEntQuery) Where

func (teq *TestEntQuery) Where(ps ...predicate.TestEnt) *TestEntQuery

Where adds a new predicate for the TestEntQuery builder.

type TestEntSelect

TestEntSelect is the builder for selecting fields of TestEnt entities.

type TestEntSelect struct {
    *TestEntQuery
    // contains filtered or unexported fields
}

func (*TestEntSelect) Aggregate

func (tes *TestEntSelect) Aggregate(fns ...AggregateFunc) *TestEntSelect

Aggregate adds the given aggregation functions to the selector query.

func (*TestEntSelect) Bool

func (s *TestEntSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) BoolX

func (s *TestEntSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TestEntSelect) Bools

func (s *TestEntSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) BoolsX

func (s *TestEntSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TestEntSelect) Float64

func (s *TestEntSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) Float64X

func (s *TestEntSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TestEntSelect) Float64s

func (s *TestEntSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) Float64sX

func (s *TestEntSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TestEntSelect) Int

func (s *TestEntSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) IntX

func (s *TestEntSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TestEntSelect) Ints

func (s *TestEntSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) IntsX

func (s *TestEntSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TestEntSelect) Scan

func (tes *TestEntSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*TestEntSelect) ScanX

func (s *TestEntSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TestEntSelect) String

func (s *TestEntSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) StringX

func (s *TestEntSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TestEntSelect) Strings

func (s *TestEntSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TestEntSelect) StringsX

func (s *TestEntSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TestEntUpdate

TestEntUpdate is the builder for updating TestEnt entities.

type TestEntUpdate struct {
    // contains filtered or unexported fields
}

func (*TestEntUpdate) AddFloatField

func (teu *TestEntUpdate) AddFloatField(f float64) *TestEntUpdate

AddFloatField adds f to the "float_field" field.

func (*TestEntUpdate) AddInt64Field

func (teu *TestEntUpdate) AddInt64Field(i int64) *TestEntUpdate

AddInt64Field adds i to the "int64_field" field.

func (*TestEntUpdate) AddIntField

func (teu *TestEntUpdate) AddIntField(i int) *TestEntUpdate

AddIntField adds i to the "int_field" field.

func (*TestEntUpdate) ClearBoolField

func (teu *TestEntUpdate) ClearBoolField() *TestEntUpdate

ClearBoolField clears the value of the "bool_field" field.

func (*TestEntUpdate) ClearBytesField

func (teu *TestEntUpdate) ClearBytesField() *TestEntUpdate

ClearBytesField clears the value of the "bytes_field" field.

func (*TestEntUpdate) ClearEnumField

func (teu *TestEntUpdate) ClearEnumField() *TestEntUpdate

ClearEnumField clears the value of the "enum_field" field.

func (*TestEntUpdate) ClearFloatField

func (teu *TestEntUpdate) ClearFloatField() *TestEntUpdate

ClearFloatField clears the value of the "float_field" field.

func (*TestEntUpdate) ClearInt64Field

func (teu *TestEntUpdate) ClearInt64Field() *TestEntUpdate

ClearInt64Field clears the value of the "int64_field" field.

func (*TestEntUpdate) ClearIntField

func (teu *TestEntUpdate) ClearIntField() *TestEntUpdate

ClearIntField clears the value of the "int_field" field.

func (*TestEntUpdate) ClearJSONField

func (teu *TestEntUpdate) ClearJSONField() *TestEntUpdate

ClearJSONField clears the value of the "json_field" field.

func (*TestEntUpdate) ClearStringField

func (teu *TestEntUpdate) ClearStringField() *TestEntUpdate

ClearStringField clears the value of the "string_field" field.

func (*TestEntUpdate) ClearTextField

func (teu *TestEntUpdate) ClearTextField() *TestEntUpdate

ClearTextField clears the value of the "text_field" field.

func (*TestEntUpdate) ClearTimeField

func (teu *TestEntUpdate) ClearTimeField() *TestEntUpdate

ClearTimeField clears the value of the "time_field" field.

func (*TestEntUpdate) Exec

func (teu *TestEntUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*TestEntUpdate) ExecX

func (teu *TestEntUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestEntUpdate) Mutation

func (teu *TestEntUpdate) Mutation() *TestEntMutation

Mutation returns the TestEntMutation object of the builder.

func (*TestEntUpdate) Save

func (teu *TestEntUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*TestEntUpdate) SaveX

func (teu *TestEntUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*TestEntUpdate) SetBoolField

func (teu *TestEntUpdate) SetBoolField(b bool) *TestEntUpdate

SetBoolField sets the "bool_field" field.

func (*TestEntUpdate) SetBytesField

func (teu *TestEntUpdate) SetBytesField(b []byte) *TestEntUpdate

SetBytesField sets the "bytes_field" field.

func (*TestEntUpdate) SetEnumField

func (teu *TestEntUpdate) SetEnumField(ee enums.TestEnum) *TestEntUpdate

SetEnumField sets the "enum_field" field.

func (*TestEntUpdate) SetFloatField

func (teu *TestEntUpdate) SetFloatField(f float64) *TestEntUpdate

SetFloatField sets the "float_field" field.

func (*TestEntUpdate) SetInt64Field

func (teu *TestEntUpdate) SetInt64Field(i int64) *TestEntUpdate

SetInt64Field sets the "int64_field" field.

func (*TestEntUpdate) SetIntField

func (teu *TestEntUpdate) SetIntField(i int) *TestEntUpdate

SetIntField sets the "int_field" field.

func (*TestEntUpdate) SetJSONField

func (teu *TestEntUpdate) SetJSONField(jj *jsonfields.TestJSON) *TestEntUpdate

SetJSONField sets the "json_field" field.

func (*TestEntUpdate) SetNillableBoolField

func (teu *TestEntUpdate) SetNillableBoolField(b *bool) *TestEntUpdate

SetNillableBoolField sets the "bool_field" field if the given value is not nil.

func (*TestEntUpdate) SetNillableEnumField

func (teu *TestEntUpdate) SetNillableEnumField(ee *enums.TestEnum) *TestEntUpdate

SetNillableEnumField sets the "enum_field" field if the given value is not nil.

func (*TestEntUpdate) SetNillableFloatField

func (teu *TestEntUpdate) SetNillableFloatField(f *float64) *TestEntUpdate

SetNillableFloatField sets the "float_field" field if the given value is not nil.

func (*TestEntUpdate) SetNillableInt64Field

func (teu *TestEntUpdate) SetNillableInt64Field(i *int64) *TestEntUpdate

SetNillableInt64Field sets the "int64_field" field if the given value is not nil.

func (*TestEntUpdate) SetNillableIntField

func (teu *TestEntUpdate) SetNillableIntField(i *int) *TestEntUpdate

SetNillableIntField sets the "int_field" field if the given value is not nil.

func (*TestEntUpdate) SetNillableStringField

func (teu *TestEntUpdate) SetNillableStringField(s *string) *TestEntUpdate

SetNillableStringField sets the "string_field" field if the given value is not nil.

func (*TestEntUpdate) SetNillableTextField

func (teu *TestEntUpdate) SetNillableTextField(s *string) *TestEntUpdate

SetNillableTextField sets the "text_field" field if the given value is not nil.

func (*TestEntUpdate) SetNillableTimeField

func (teu *TestEntUpdate) SetNillableTimeField(t *time.Time) *TestEntUpdate

SetNillableTimeField sets the "time_field" field if the given value is not nil.

func (*TestEntUpdate) SetStringField

func (teu *TestEntUpdate) SetStringField(s string) *TestEntUpdate

SetStringField sets the "string_field" field.

func (*TestEntUpdate) SetTextField

func (teu *TestEntUpdate) SetTextField(s string) *TestEntUpdate

SetTextField sets the "text_field" field.

func (*TestEntUpdate) SetTimeField

func (teu *TestEntUpdate) SetTimeField(t time.Time) *TestEntUpdate

SetTimeField sets the "time_field" field.

func (*TestEntUpdate) Where

func (teu *TestEntUpdate) Where(ps ...predicate.TestEnt) *TestEntUpdate

Where appends a list predicates to the TestEntUpdate builder.

type TestEntUpdateOne

TestEntUpdateOne is the builder for updating a single TestEnt entity.

type TestEntUpdateOne struct {
    // contains filtered or unexported fields
}

func (*TestEntUpdateOne) AddFloatField

func (teuo *TestEntUpdateOne) AddFloatField(f float64) *TestEntUpdateOne

AddFloatField adds f to the "float_field" field.

func (*TestEntUpdateOne) AddInt64Field

func (teuo *TestEntUpdateOne) AddInt64Field(i int64) *TestEntUpdateOne

AddInt64Field adds i to the "int64_field" field.

func (*TestEntUpdateOne) AddIntField

func (teuo *TestEntUpdateOne) AddIntField(i int) *TestEntUpdateOne

AddIntField adds i to the "int_field" field.

func (*TestEntUpdateOne) ClearBoolField

func (teuo *TestEntUpdateOne) ClearBoolField() *TestEntUpdateOne

ClearBoolField clears the value of the "bool_field" field.

func (*TestEntUpdateOne) ClearBytesField

func (teuo *TestEntUpdateOne) ClearBytesField() *TestEntUpdateOne

ClearBytesField clears the value of the "bytes_field" field.

func (*TestEntUpdateOne) ClearEnumField

func (teuo *TestEntUpdateOne) ClearEnumField() *TestEntUpdateOne

ClearEnumField clears the value of the "enum_field" field.

func (*TestEntUpdateOne) ClearFloatField

func (teuo *TestEntUpdateOne) ClearFloatField() *TestEntUpdateOne

ClearFloatField clears the value of the "float_field" field.

func (*TestEntUpdateOne) ClearInt64Field

func (teuo *TestEntUpdateOne) ClearInt64Field() *TestEntUpdateOne

ClearInt64Field clears the value of the "int64_field" field.

func (*TestEntUpdateOne) ClearIntField

func (teuo *TestEntUpdateOne) ClearIntField() *TestEntUpdateOne

ClearIntField clears the value of the "int_field" field.

func (*TestEntUpdateOne) ClearJSONField

func (teuo *TestEntUpdateOne) ClearJSONField() *TestEntUpdateOne

ClearJSONField clears the value of the "json_field" field.

func (*TestEntUpdateOne) ClearStringField

func (teuo *TestEntUpdateOne) ClearStringField() *TestEntUpdateOne

ClearStringField clears the value of the "string_field" field.

func (*TestEntUpdateOne) ClearTextField

func (teuo *TestEntUpdateOne) ClearTextField() *TestEntUpdateOne

ClearTextField clears the value of the "text_field" field.

func (*TestEntUpdateOne) ClearTimeField

func (teuo *TestEntUpdateOne) ClearTimeField() *TestEntUpdateOne

ClearTimeField clears the value of the "time_field" field.

func (*TestEntUpdateOne) Exec

func (teuo *TestEntUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*TestEntUpdateOne) ExecX

func (teuo *TestEntUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestEntUpdateOne) Mutation

func (teuo *TestEntUpdateOne) Mutation() *TestEntMutation

Mutation returns the TestEntMutation object of the builder.

func (*TestEntUpdateOne) Save

func (teuo *TestEntUpdateOne) Save(ctx context.Context) (*TestEnt, error)

Save executes the query and returns the updated TestEnt entity.

func (*TestEntUpdateOne) SaveX

func (teuo *TestEntUpdateOne) SaveX(ctx context.Context) *TestEnt

SaveX is like Save, but panics if an error occurs.

func (*TestEntUpdateOne) Select

func (teuo *TestEntUpdateOne) Select(field string, fields ...string) *TestEntUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TestEntUpdateOne) SetBoolField

func (teuo *TestEntUpdateOne) SetBoolField(b bool) *TestEntUpdateOne

SetBoolField sets the "bool_field" field.

func (*TestEntUpdateOne) SetBytesField

func (teuo *TestEntUpdateOne) SetBytesField(b []byte) *TestEntUpdateOne

SetBytesField sets the "bytes_field" field.

func (*TestEntUpdateOne) SetEnumField

func (teuo *TestEntUpdateOne) SetEnumField(ee enums.TestEnum) *TestEntUpdateOne

SetEnumField sets the "enum_field" field.

func (*TestEntUpdateOne) SetFloatField

func (teuo *TestEntUpdateOne) SetFloatField(f float64) *TestEntUpdateOne

SetFloatField sets the "float_field" field.

func (*TestEntUpdateOne) SetInt64Field

func (teuo *TestEntUpdateOne) SetInt64Field(i int64) *TestEntUpdateOne

SetInt64Field sets the "int64_field" field.

func (*TestEntUpdateOne) SetIntField

func (teuo *TestEntUpdateOne) SetIntField(i int) *TestEntUpdateOne

SetIntField sets the "int_field" field.

func (*TestEntUpdateOne) SetJSONField

func (teuo *TestEntUpdateOne) SetJSONField(jj *jsonfields.TestJSON) *TestEntUpdateOne

SetJSONField sets the "json_field" field.

func (*TestEntUpdateOne) SetNillableBoolField

func (teuo *TestEntUpdateOne) SetNillableBoolField(b *bool) *TestEntUpdateOne

SetNillableBoolField sets the "bool_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetNillableEnumField

func (teuo *TestEntUpdateOne) SetNillableEnumField(ee *enums.TestEnum) *TestEntUpdateOne

SetNillableEnumField sets the "enum_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetNillableFloatField

func (teuo *TestEntUpdateOne) SetNillableFloatField(f *float64) *TestEntUpdateOne

SetNillableFloatField sets the "float_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetNillableInt64Field

func (teuo *TestEntUpdateOne) SetNillableInt64Field(i *int64) *TestEntUpdateOne

SetNillableInt64Field sets the "int64_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetNillableIntField

func (teuo *TestEntUpdateOne) SetNillableIntField(i *int) *TestEntUpdateOne

SetNillableIntField sets the "int_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetNillableStringField

func (teuo *TestEntUpdateOne) SetNillableStringField(s *string) *TestEntUpdateOne

SetNillableStringField sets the "string_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetNillableTextField

func (teuo *TestEntUpdateOne) SetNillableTextField(s *string) *TestEntUpdateOne

SetNillableTextField sets the "text_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetNillableTimeField

func (teuo *TestEntUpdateOne) SetNillableTimeField(t *time.Time) *TestEntUpdateOne

SetNillableTimeField sets the "time_field" field if the given value is not nil.

func (*TestEntUpdateOne) SetStringField

func (teuo *TestEntUpdateOne) SetStringField(s string) *TestEntUpdateOne

SetStringField sets the "string_field" field.

func (*TestEntUpdateOne) SetTextField

func (teuo *TestEntUpdateOne) SetTextField(s string) *TestEntUpdateOne

SetTextField sets the "text_field" field.

func (*TestEntUpdateOne) SetTimeField

func (teuo *TestEntUpdateOne) SetTimeField(t time.Time) *TestEntUpdateOne

SetTimeField sets the "time_field" field.

func (*TestEntUpdateOne) Where

func (teuo *TestEntUpdateOne) Where(ps ...predicate.TestEnt) *TestEntUpdateOne

Where appends a list predicates to the TestEntUpdate builder.

type TestEntUpsert

TestEntUpsert is the "OnConflict" setter.

type TestEntUpsert struct {
    *sql.UpdateSet
}

func (*TestEntUpsert) AddFloatField

func (u *TestEntUpsert) AddFloatField(v float64) *TestEntUpsert

AddFloatField adds v to the "float_field" field.

func (*TestEntUpsert) AddInt64Field

func (u *TestEntUpsert) AddInt64Field(v int64) *TestEntUpsert

AddInt64Field adds v to the "int64_field" field.

func (*TestEntUpsert) AddIntField

func (u *TestEntUpsert) AddIntField(v int) *TestEntUpsert

AddIntField adds v to the "int_field" field.

func (*TestEntUpsert) ClearBoolField

func (u *TestEntUpsert) ClearBoolField() *TestEntUpsert

ClearBoolField clears the value of the "bool_field" field.

func (*TestEntUpsert) ClearBytesField

func (u *TestEntUpsert) ClearBytesField() *TestEntUpsert

ClearBytesField clears the value of the "bytes_field" field.

func (*TestEntUpsert) ClearEnumField

func (u *TestEntUpsert) ClearEnumField() *TestEntUpsert

ClearEnumField clears the value of the "enum_field" field.

func (*TestEntUpsert) ClearFloatField

func (u *TestEntUpsert) ClearFloatField() *TestEntUpsert

ClearFloatField clears the value of the "float_field" field.

func (*TestEntUpsert) ClearInt64Field

func (u *TestEntUpsert) ClearInt64Field() *TestEntUpsert

ClearInt64Field clears the value of the "int64_field" field.

func (*TestEntUpsert) ClearIntField

func (u *TestEntUpsert) ClearIntField() *TestEntUpsert

ClearIntField clears the value of the "int_field" field.

func (*TestEntUpsert) ClearJSONField

func (u *TestEntUpsert) ClearJSONField() *TestEntUpsert

ClearJSONField clears the value of the "json_field" field.

func (*TestEntUpsert) ClearStringField

func (u *TestEntUpsert) ClearStringField() *TestEntUpsert

ClearStringField clears the value of the "string_field" field.

func (*TestEntUpsert) ClearTextField

func (u *TestEntUpsert) ClearTextField() *TestEntUpsert

ClearTextField clears the value of the "text_field" field.

func (*TestEntUpsert) ClearTimeField

func (u *TestEntUpsert) ClearTimeField() *TestEntUpsert

ClearTimeField clears the value of the "time_field" field.

func (*TestEntUpsert) SetBoolField

func (u *TestEntUpsert) SetBoolField(v bool) *TestEntUpsert

SetBoolField sets the "bool_field" field.

func (*TestEntUpsert) SetBytesField

func (u *TestEntUpsert) SetBytesField(v []byte) *TestEntUpsert

SetBytesField sets the "bytes_field" field.

func (*TestEntUpsert) SetEnumField

func (u *TestEntUpsert) SetEnumField(v enums.TestEnum) *TestEntUpsert

SetEnumField sets the "enum_field" field.

func (*TestEntUpsert) SetFloatField

func (u *TestEntUpsert) SetFloatField(v float64) *TestEntUpsert

SetFloatField sets the "float_field" field.

func (*TestEntUpsert) SetInt64Field

func (u *TestEntUpsert) SetInt64Field(v int64) *TestEntUpsert

SetInt64Field sets the "int64_field" field.

func (*TestEntUpsert) SetIntField

func (u *TestEntUpsert) SetIntField(v int) *TestEntUpsert

SetIntField sets the "int_field" field.

func (*TestEntUpsert) SetJSONField

func (u *TestEntUpsert) SetJSONField(v *jsonfields.TestJSON) *TestEntUpsert

SetJSONField sets the "json_field" field.

func (*TestEntUpsert) SetStringField

func (u *TestEntUpsert) SetStringField(v string) *TestEntUpsert

SetStringField sets the "string_field" field.

func (*TestEntUpsert) SetTextField

func (u *TestEntUpsert) SetTextField(v string) *TestEntUpsert

SetTextField sets the "text_field" field.

func (*TestEntUpsert) SetTimeField

func (u *TestEntUpsert) SetTimeField(v time.Time) *TestEntUpsert

SetTimeField sets the "time_field" field.

func (*TestEntUpsert) UpdateBoolField

func (u *TestEntUpsert) UpdateBoolField() *TestEntUpsert

UpdateBoolField sets the "bool_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateBytesField

func (u *TestEntUpsert) UpdateBytesField() *TestEntUpsert

UpdateBytesField sets the "bytes_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateEnumField

func (u *TestEntUpsert) UpdateEnumField() *TestEntUpsert

UpdateEnumField sets the "enum_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateFloatField

func (u *TestEntUpsert) UpdateFloatField() *TestEntUpsert

UpdateFloatField sets the "float_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateInt64Field

func (u *TestEntUpsert) UpdateInt64Field() *TestEntUpsert

UpdateInt64Field sets the "int64_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateIntField

func (u *TestEntUpsert) UpdateIntField() *TestEntUpsert

UpdateIntField sets the "int_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateJSONField

func (u *TestEntUpsert) UpdateJSONField() *TestEntUpsert

UpdateJSONField sets the "json_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateStringField

func (u *TestEntUpsert) UpdateStringField() *TestEntUpsert

UpdateStringField sets the "string_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateTextField

func (u *TestEntUpsert) UpdateTextField() *TestEntUpsert

UpdateTextField sets the "text_field" field to the value that was provided on create.

func (*TestEntUpsert) UpdateTimeField

func (u *TestEntUpsert) UpdateTimeField() *TestEntUpsert

UpdateTimeField sets the "time_field" field to the value that was provided on create.

type TestEntUpsertBulk

TestEntUpsertBulk is the builder for "upsert"-ing a bulk of TestEnt nodes.

type TestEntUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*TestEntUpsertBulk) AddFloatField

func (u *TestEntUpsertBulk) AddFloatField(v float64) *TestEntUpsertBulk

AddFloatField adds v to the "float_field" field.

func (*TestEntUpsertBulk) AddInt64Field

func (u *TestEntUpsertBulk) AddInt64Field(v int64) *TestEntUpsertBulk

AddInt64Field adds v to the "int64_field" field.

func (*TestEntUpsertBulk) AddIntField

func (u *TestEntUpsertBulk) AddIntField(v int) *TestEntUpsertBulk

AddIntField adds v to the "int_field" field.

func (*TestEntUpsertBulk) ClearBoolField

func (u *TestEntUpsertBulk) ClearBoolField() *TestEntUpsertBulk

ClearBoolField clears the value of the "bool_field" field.

func (*TestEntUpsertBulk) ClearBytesField

func (u *TestEntUpsertBulk) ClearBytesField() *TestEntUpsertBulk

ClearBytesField clears the value of the "bytes_field" field.

func (*TestEntUpsertBulk) ClearEnumField

func (u *TestEntUpsertBulk) ClearEnumField() *TestEntUpsertBulk

ClearEnumField clears the value of the "enum_field" field.

func (*TestEntUpsertBulk) ClearFloatField

func (u *TestEntUpsertBulk) ClearFloatField() *TestEntUpsertBulk

ClearFloatField clears the value of the "float_field" field.

func (*TestEntUpsertBulk) ClearInt64Field

func (u *TestEntUpsertBulk) ClearInt64Field() *TestEntUpsertBulk

ClearInt64Field clears the value of the "int64_field" field.

func (*TestEntUpsertBulk) ClearIntField

func (u *TestEntUpsertBulk) ClearIntField() *TestEntUpsertBulk

ClearIntField clears the value of the "int_field" field.

func (*TestEntUpsertBulk) ClearJSONField

func (u *TestEntUpsertBulk) ClearJSONField() *TestEntUpsertBulk

ClearJSONField clears the value of the "json_field" field.

func (*TestEntUpsertBulk) ClearStringField

func (u *TestEntUpsertBulk) ClearStringField() *TestEntUpsertBulk

ClearStringField clears the value of the "string_field" field.

func (*TestEntUpsertBulk) ClearTextField

func (u *TestEntUpsertBulk) ClearTextField() *TestEntUpsertBulk

ClearTextField clears the value of the "text_field" field.

func (*TestEntUpsertBulk) ClearTimeField

func (u *TestEntUpsertBulk) ClearTimeField() *TestEntUpsertBulk

ClearTimeField clears the value of the "time_field" field.

func (*TestEntUpsertBulk) DoNothing

func (u *TestEntUpsertBulk) DoNothing() *TestEntUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*TestEntUpsertBulk) Exec

func (u *TestEntUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*TestEntUpsertBulk) ExecX

func (u *TestEntUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestEntUpsertBulk) Ignore

func (u *TestEntUpsertBulk) Ignore() *TestEntUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.TestEnt.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*TestEntUpsertBulk) SetBoolField

func (u *TestEntUpsertBulk) SetBoolField(v bool) *TestEntUpsertBulk

SetBoolField sets the "bool_field" field.

func (*TestEntUpsertBulk) SetBytesField

func (u *TestEntUpsertBulk) SetBytesField(v []byte) *TestEntUpsertBulk

SetBytesField sets the "bytes_field" field.

func (*TestEntUpsertBulk) SetEnumField

func (u *TestEntUpsertBulk) SetEnumField(v enums.TestEnum) *TestEntUpsertBulk

SetEnumField sets the "enum_field" field.

func (*TestEntUpsertBulk) SetFloatField

func (u *TestEntUpsertBulk) SetFloatField(v float64) *TestEntUpsertBulk

SetFloatField sets the "float_field" field.

func (*TestEntUpsertBulk) SetInt64Field

func (u *TestEntUpsertBulk) SetInt64Field(v int64) *TestEntUpsertBulk

SetInt64Field sets the "int64_field" field.

func (*TestEntUpsertBulk) SetIntField

func (u *TestEntUpsertBulk) SetIntField(v int) *TestEntUpsertBulk

SetIntField sets the "int_field" field.

func (*TestEntUpsertBulk) SetJSONField

func (u *TestEntUpsertBulk) SetJSONField(v *jsonfields.TestJSON) *TestEntUpsertBulk

SetJSONField sets the "json_field" field.

func (*TestEntUpsertBulk) SetStringField

func (u *TestEntUpsertBulk) SetStringField(v string) *TestEntUpsertBulk

SetStringField sets the "string_field" field.

func (*TestEntUpsertBulk) SetTextField

func (u *TestEntUpsertBulk) SetTextField(v string) *TestEntUpsertBulk

SetTextField sets the "text_field" field.

func (*TestEntUpsertBulk) SetTimeField

func (u *TestEntUpsertBulk) SetTimeField(v time.Time) *TestEntUpsertBulk

SetTimeField sets the "time_field" field.

func (*TestEntUpsertBulk) Update

func (u *TestEntUpsertBulk) Update(set func(*TestEntUpsert)) *TestEntUpsertBulk

Update allows overriding fields `UPDATE` values. See the TestEntCreateBulk.OnConflict documentation for more info.

func (*TestEntUpsertBulk) UpdateBoolField

func (u *TestEntUpsertBulk) UpdateBoolField() *TestEntUpsertBulk

UpdateBoolField sets the "bool_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateBytesField

func (u *TestEntUpsertBulk) UpdateBytesField() *TestEntUpsertBulk

UpdateBytesField sets the "bytes_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateEnumField

func (u *TestEntUpsertBulk) UpdateEnumField() *TestEntUpsertBulk

UpdateEnumField sets the "enum_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateFloatField

func (u *TestEntUpsertBulk) UpdateFloatField() *TestEntUpsertBulk

UpdateFloatField sets the "float_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateInt64Field

func (u *TestEntUpsertBulk) UpdateInt64Field() *TestEntUpsertBulk

UpdateInt64Field sets the "int64_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateIntField

func (u *TestEntUpsertBulk) UpdateIntField() *TestEntUpsertBulk

UpdateIntField sets the "int_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateJSONField

func (u *TestEntUpsertBulk) UpdateJSONField() *TestEntUpsertBulk

UpdateJSONField sets the "json_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateNewValues

func (u *TestEntUpsertBulk) UpdateNewValues() *TestEntUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.TestEnt.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*TestEntUpsertBulk) UpdateStringField

func (u *TestEntUpsertBulk) UpdateStringField() *TestEntUpsertBulk

UpdateStringField sets the "string_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateTextField

func (u *TestEntUpsertBulk) UpdateTextField() *TestEntUpsertBulk

UpdateTextField sets the "text_field" field to the value that was provided on create.

func (*TestEntUpsertBulk) UpdateTimeField

func (u *TestEntUpsertBulk) UpdateTimeField() *TestEntUpsertBulk

UpdateTimeField sets the "time_field" field to the value that was provided on create.

type TestEntUpsertOne

TestEntUpsertOne is the builder for "upsert"-ing

one TestEnt node.
type TestEntUpsertOne struct {
    // contains filtered or unexported fields
}

func (*TestEntUpsertOne) AddFloatField

func (u *TestEntUpsertOne) AddFloatField(v float64) *TestEntUpsertOne

AddFloatField adds v to the "float_field" field.

func (*TestEntUpsertOne) AddInt64Field

func (u *TestEntUpsertOne) AddInt64Field(v int64) *TestEntUpsertOne

AddInt64Field adds v to the "int64_field" field.

func (*TestEntUpsertOne) AddIntField

func (u *TestEntUpsertOne) AddIntField(v int) *TestEntUpsertOne

AddIntField adds v to the "int_field" field.

func (*TestEntUpsertOne) ClearBoolField

func (u *TestEntUpsertOne) ClearBoolField() *TestEntUpsertOne

ClearBoolField clears the value of the "bool_field" field.

func (*TestEntUpsertOne) ClearBytesField

func (u *TestEntUpsertOne) ClearBytesField() *TestEntUpsertOne

ClearBytesField clears the value of the "bytes_field" field.

func (*TestEntUpsertOne) ClearEnumField

func (u *TestEntUpsertOne) ClearEnumField() *TestEntUpsertOne

ClearEnumField clears the value of the "enum_field" field.

func (*TestEntUpsertOne) ClearFloatField

func (u *TestEntUpsertOne) ClearFloatField() *TestEntUpsertOne

ClearFloatField clears the value of the "float_field" field.

func (*TestEntUpsertOne) ClearInt64Field

func (u *TestEntUpsertOne) ClearInt64Field() *TestEntUpsertOne

ClearInt64Field clears the value of the "int64_field" field.

func (*TestEntUpsertOne) ClearIntField

func (u *TestEntUpsertOne) ClearIntField() *TestEntUpsertOne

ClearIntField clears the value of the "int_field" field.

func (*TestEntUpsertOne) ClearJSONField

func (u *TestEntUpsertOne) ClearJSONField() *TestEntUpsertOne

ClearJSONField clears the value of the "json_field" field.

func (*TestEntUpsertOne) ClearStringField

func (u *TestEntUpsertOne) ClearStringField() *TestEntUpsertOne

ClearStringField clears the value of the "string_field" field.

func (*TestEntUpsertOne) ClearTextField

func (u *TestEntUpsertOne) ClearTextField() *TestEntUpsertOne

ClearTextField clears the value of the "text_field" field.

func (*TestEntUpsertOne) ClearTimeField

func (u *TestEntUpsertOne) ClearTimeField() *TestEntUpsertOne

ClearTimeField clears the value of the "time_field" field.

func (*TestEntUpsertOne) DoNothing

func (u *TestEntUpsertOne) DoNothing() *TestEntUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*TestEntUpsertOne) Exec

func (u *TestEntUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*TestEntUpsertOne) ExecX

func (u *TestEntUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestEntUpsertOne) ID

func (u *TestEntUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*TestEntUpsertOne) IDX

func (u *TestEntUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*TestEntUpsertOne) Ignore

func (u *TestEntUpsertOne) Ignore() *TestEntUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.TestEnt.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*TestEntUpsertOne) SetBoolField

func (u *TestEntUpsertOne) SetBoolField(v bool) *TestEntUpsertOne

SetBoolField sets the "bool_field" field.

func (*TestEntUpsertOne) SetBytesField

func (u *TestEntUpsertOne) SetBytesField(v []byte) *TestEntUpsertOne

SetBytesField sets the "bytes_field" field.

func (*TestEntUpsertOne) SetEnumField

func (u *TestEntUpsertOne) SetEnumField(v enums.TestEnum) *TestEntUpsertOne

SetEnumField sets the "enum_field" field.

func (*TestEntUpsertOne) SetFloatField

func (u *TestEntUpsertOne) SetFloatField(v float64) *TestEntUpsertOne

SetFloatField sets the "float_field" field.

func (*TestEntUpsertOne) SetInt64Field

func (u *TestEntUpsertOne) SetInt64Field(v int64) *TestEntUpsertOne

SetInt64Field sets the "int64_field" field.

func (*TestEntUpsertOne) SetIntField

func (u *TestEntUpsertOne) SetIntField(v int) *TestEntUpsertOne

SetIntField sets the "int_field" field.

func (*TestEntUpsertOne) SetJSONField

func (u *TestEntUpsertOne) SetJSONField(v *jsonfields.TestJSON) *TestEntUpsertOne

SetJSONField sets the "json_field" field.

func (*TestEntUpsertOne) SetStringField

func (u *TestEntUpsertOne) SetStringField(v string) *TestEntUpsertOne

SetStringField sets the "string_field" field.

func (*TestEntUpsertOne) SetTextField

func (u *TestEntUpsertOne) SetTextField(v string) *TestEntUpsertOne

SetTextField sets the "text_field" field.

func (*TestEntUpsertOne) SetTimeField

func (u *TestEntUpsertOne) SetTimeField(v time.Time) *TestEntUpsertOne

SetTimeField sets the "time_field" field.

func (*TestEntUpsertOne) Update

func (u *TestEntUpsertOne) Update(set func(*TestEntUpsert)) *TestEntUpsertOne

Update allows overriding fields `UPDATE` values. See the TestEntCreate.OnConflict documentation for more info.

func (*TestEntUpsertOne) UpdateBoolField

func (u *TestEntUpsertOne) UpdateBoolField() *TestEntUpsertOne

UpdateBoolField sets the "bool_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateBytesField

func (u *TestEntUpsertOne) UpdateBytesField() *TestEntUpsertOne

UpdateBytesField sets the "bytes_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateEnumField

func (u *TestEntUpsertOne) UpdateEnumField() *TestEntUpsertOne

UpdateEnumField sets the "enum_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateFloatField

func (u *TestEntUpsertOne) UpdateFloatField() *TestEntUpsertOne

UpdateFloatField sets the "float_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateInt64Field

func (u *TestEntUpsertOne) UpdateInt64Field() *TestEntUpsertOne

UpdateInt64Field sets the "int64_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateIntField

func (u *TestEntUpsertOne) UpdateIntField() *TestEntUpsertOne

UpdateIntField sets the "int_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateJSONField

func (u *TestEntUpsertOne) UpdateJSONField() *TestEntUpsertOne

UpdateJSONField sets the "json_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateNewValues

func (u *TestEntUpsertOne) UpdateNewValues() *TestEntUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.TestEnt.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*TestEntUpsertOne) UpdateStringField

func (u *TestEntUpsertOne) UpdateStringField() *TestEntUpsertOne

UpdateStringField sets the "string_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateTextField

func (u *TestEntUpsertOne) UpdateTextField() *TestEntUpsertOne

UpdateTextField sets the "text_field" field to the value that was provided on create.

func (*TestEntUpsertOne) UpdateTimeField

func (u *TestEntUpsertOne) UpdateTimeField() *TestEntUpsertOne

UpdateTimeField sets the "time_field" field to the value that was provided on create.

type TestEnts

TestEnts is a parsable slice of TestEnt.

type TestEnts []*TestEnt

type TraverseFunc

ent aliases to avoid import conflicts in user's code.

type TraverseFunc = ent.TraverseFunc

type Traverser

ent aliases to avoid import conflicts in user's code.

type Traverser = ent.Traverser

type Tx

Tx is a transactional client that is created by calling Client.Tx().

type Tx struct {

    // Auth is the client for interacting with the Auth builders.
    Auth *AuthClient
    // HPAmebloPost is the client for interacting with the HPAmebloPost builders.
    HPAmebloPost *HPAmebloPostClient
    // HPArtist is the client for interacting with the HPArtist builders.
    HPArtist *HPArtistClient
    // HPAsset is the client for interacting with the HPAsset builders.
    HPAsset *HPAssetClient
    // HPBlob is the client for interacting with the HPBlob builders.
    HPBlob *HPBlobClient
    // HPElineupMallItem is the client for interacting with the HPElineupMallItem builders.
    HPElineupMallItem *HPElineupMallItemClient
    // HPEvent is the client for interacting with the HPEvent builders.
    HPEvent *HPEventClient
    // HPFCEventTicket is the client for interacting with the HPFCEventTicket builders.
    HPFCEventTicket *HPFCEventTicketClient
    // HPFeedItem is the client for interacting with the HPFeedItem builders.
    HPFeedItem *HPFeedItemClient
    // HPFollow is the client for interacting with the HPFollow builders.
    HPFollow *HPFollowClient
    // HPIgPost is the client for interacting with the HPIgPost builders.
    HPIgPost *HPIgPostClient
    // HPMember is the client for interacting with the HPMember builders.
    HPMember *HPMemberClient
    // HPSortHistory is the client for interacting with the HPSortHistory builders.
    HPSortHistory *HPSortHistoryClient
    // HPViewHistory is the client for interacting with the HPViewHistory builders.
    HPViewHistory *HPViewHistoryClient
    // TestEnt is the client for interacting with the TestEnt builders.
    TestEnt *TestEntClient
    // User is the client for interacting with the User builders.
    User *UserClient
    // UserNotificationLog is the client for interacting with the UserNotificationLog builders.
    UserNotificationLog *UserNotificationLogClient
    // UserNotificationSetting is the client for interacting with the UserNotificationSetting builders.
    UserNotificationSetting *UserNotificationSettingClient
    // contains filtered or unexported fields
}

func TxFromContext

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

type User

User is the model entity for the User schema.

type User struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // unique identifier with [a-z0-9][a-z0-9_.]+
    Username string `json:"username,omitempty"`
    // access token for the first party clients to access
    AccessToken string `json:"access_token,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the UserQuery when eager-loading is set.
    Edges UserEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*User) Auth

func (u *User) Auth(ctx context.Context) (result []*Auth, err error)

func (*User) HpfcEventTickets

func (u *User) HpfcEventTickets(ctx context.Context) (result []*HPFCEventTicket, err error)

func (*User) HpmemberFollowing

func (u *User) HpmemberFollowing(ctx context.Context) (result []*HPFollow, err error)

func (*User) HpsortHistory

func (u *User) HpsortHistory(ctx context.Context) (result []*HPSortHistory, err error)

func (*User) HpviewHistory

func (u *User) HpviewHistory(ctx context.Context) (result []*HPViewHistory, err error)

func (*User) IsNode

func (n *User) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*User) NamedAuth

func (u *User) NamedAuth(name string) ([]*Auth, error)

NamedAuth returns the Auth named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedHpfcEventTickets

func (u *User) NamedHpfcEventTickets(name string) ([]*HPFCEventTicket, error)

NamedHpfcEventTickets returns the HpfcEventTickets named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedHpmemberFollowing

func (u *User) NamedHpmemberFollowing(name string) ([]*HPFollow, error)

NamedHpmemberFollowing returns the HpmemberFollowing named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedHpsortHistory

func (u *User) NamedHpsortHistory(name string) ([]*HPSortHistory, error)

NamedHpsortHistory returns the HpsortHistory named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedHpviewHistory

func (u *User) NamedHpviewHistory(name string) ([]*HPViewHistory, error)

NamedHpviewHistory returns the HpviewHistory named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedNotificationSettings

func (u *User) NamedNotificationSettings(name string) ([]*UserNotificationSetting, error)

NamedNotificationSettings returns the NotificationSettings named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NotificationSettings

func (u *User) NotificationSettings(ctx context.Context) (result []*UserNotificationSetting, err error)

func (*User) QueryAuth

func (u *User) QueryAuth() *AuthQuery

QueryAuth queries the "auth" edge of the User entity.

func (*User) QueryHpfcEventTickets

func (u *User) QueryHpfcEventTickets() *HPFCEventTicketQuery

QueryHpfcEventTickets queries the "hpfc_event_tickets" edge of the User entity.

func (*User) QueryHpmemberFollowing

func (u *User) QueryHpmemberFollowing() *HPFollowQuery

QueryHpmemberFollowing queries the "hpmember_following" edge of the User entity.

func (*User) QueryHpsortHistory

func (u *User) QueryHpsortHistory() *HPSortHistoryQuery

QueryHpsortHistory queries the "hpsort_history" edge of the User entity.

func (*User) QueryHpviewHistory

func (u *User) QueryHpviewHistory() *HPViewHistoryQuery

QueryHpviewHistory queries the "hpview_history" edge of the User entity.

func (*User) QueryNotificationSettings

func (u *User) QueryNotificationSettings() *UserNotificationSettingQuery

QueryNotificationSettings queries the "notification_settings" edge of the User entity.

func (*User) String

func (u *User) String() string

String implements the fmt.Stringer.

func (*User) ToEdge

func (u *User) ToEdge(order *UserOrder) *UserEdge

ToEdge converts User into UserEdge.

func (*User) Unwrap

func (u *User) Unwrap() *User

Unwrap unwraps the User entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*User) Update

func (u *User) Update() *UserUpdateOne

Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.

func (*User) Value

func (u *User) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the User. This includes values selected through modifiers, order, etc.

type UserClient

UserClient is a client for the User schema.

type UserClient struct {
    // contains filtered or unexported fields
}

func NewUserClient

func NewUserClient(c config) *UserClient

NewUserClient returns a client for the User from the given config.

func (*UserClient) Create

func (c *UserClient) Create() *UserCreate

Create returns a builder for creating a User entity.

func (*UserClient) CreateBulk

func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk

CreateBulk returns a builder for creating a bulk of User entities.

func (*UserClient) Delete

func (c *UserClient) Delete() *UserDelete

Delete returns a delete builder for User.

func (*UserClient) DeleteOne

func (c *UserClient) DeleteOne(u *User) *UserDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserClient) DeleteOneID

func (c *UserClient) DeleteOneID(id int) *UserDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*UserClient) Get

func (c *UserClient) Get(ctx context.Context, id int) (*User, error)

Get returns a User entity by its id.

func (*UserClient) GetX

func (c *UserClient) GetX(ctx context.Context, id int) *User

GetX is like Get, but panics if an error occurs.

func (*UserClient) Hooks

func (c *UserClient) Hooks() []Hook

Hooks returns the client hooks.

func (*UserClient) Intercept

func (c *UserClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.

func (*UserClient) Interceptors

func (c *UserClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*UserClient) Query

func (c *UserClient) Query() *UserQuery

Query returns a query builder for User.

func (*UserClient) QueryAuth

func (c *UserClient) QueryAuth(u *User) *AuthQuery

QueryAuth queries the auth edge of a User.

func (*UserClient) QueryHpfcEventTickets

func (c *UserClient) QueryHpfcEventTickets(u *User) *HPFCEventTicketQuery

QueryHpfcEventTickets queries the hpfc_event_tickets edge of a User.

func (*UserClient) QueryHpmemberFollowing

func (c *UserClient) QueryHpmemberFollowing(u *User) *HPFollowQuery

QueryHpmemberFollowing queries the hpmember_following edge of a User.

func (*UserClient) QueryHpsortHistory

func (c *UserClient) QueryHpsortHistory(u *User) *HPSortHistoryQuery

QueryHpsortHistory queries the hpsort_history edge of a User.

func (*UserClient) QueryHpviewHistory

func (c *UserClient) QueryHpviewHistory(u *User) *HPViewHistoryQuery

QueryHpviewHistory queries the hpview_history edge of a User.

func (*UserClient) QueryNotificationSettings

func (c *UserClient) QueryNotificationSettings(u *User) *UserNotificationSettingQuery

QueryNotificationSettings queries the notification_settings edge of a User.

func (*UserClient) Update

func (c *UserClient) Update() *UserUpdate

Update returns an update builder for User.

func (*UserClient) UpdateOne

func (c *UserClient) UpdateOne(u *User) *UserUpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserClient) UpdateOneID

func (c *UserClient) UpdateOneID(id int) *UserUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserClient) Use

func (c *UserClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.

type UserConnection

UserConnection is the connection containing edges to User.

type UserConnection struct {
    Edges      []*UserEdge `json:"edges"`
    PageInfo   PageInfo    `json:"pageInfo"`
    TotalCount int         `json:"totalCount"`
}

type UserCreate

UserCreate is the builder for creating a User entity.

type UserCreate struct {
    // contains filtered or unexported fields
}

func (*UserCreate) AddAuth

func (uc *UserCreate) AddAuth(a ...*Auth) *UserCreate

AddAuth adds the "auth" edges to the Auth entity.

func (*UserCreate) AddAuthIDs

func (uc *UserCreate) AddAuthIDs(ids ...int) *UserCreate

AddAuthIDs adds the "auth" edge to the Auth entity by IDs.

func (*UserCreate) AddHpfcEventTicketIDs

func (uc *UserCreate) AddHpfcEventTicketIDs(ids ...int) *UserCreate

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*UserCreate) AddHpfcEventTickets

func (uc *UserCreate) AddHpfcEventTickets(h ...*HPFCEventTicket) *UserCreate

AddHpfcEventTickets adds the "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*UserCreate) AddHpmemberFollowing

func (uc *UserCreate) AddHpmemberFollowing(h ...*HPFollow) *UserCreate

AddHpmemberFollowing adds the "hpmember_following" edges to the HPFollow entity.

func (*UserCreate) AddHpmemberFollowingIDs

func (uc *UserCreate) AddHpmemberFollowingIDs(ids ...int) *UserCreate

AddHpmemberFollowingIDs adds the "hpmember_following" edge to the HPFollow entity by IDs.

func (*UserCreate) AddHpsortHistory

func (uc *UserCreate) AddHpsortHistory(h ...*HPSortHistory) *UserCreate

AddHpsortHistory adds the "hpsort_history" edges to the HPSortHistory entity.

func (*UserCreate) AddHpsortHistoryIDs

func (uc *UserCreate) AddHpsortHistoryIDs(ids ...int) *UserCreate

AddHpsortHistoryIDs adds the "hpsort_history" edge to the HPSortHistory entity by IDs.

func (*UserCreate) AddHpviewHistory

func (uc *UserCreate) AddHpviewHistory(h ...*HPViewHistory) *UserCreate

AddHpviewHistory adds the "hpview_history" edges to the HPViewHistory entity.

func (*UserCreate) AddHpviewHistoryIDs

func (uc *UserCreate) AddHpviewHistoryIDs(ids ...int) *UserCreate

AddHpviewHistoryIDs adds the "hpview_history" edge to the HPViewHistory entity by IDs.

func (*UserCreate) AddNotificationSettingIDs

func (uc *UserCreate) AddNotificationSettingIDs(ids ...int) *UserCreate

AddNotificationSettingIDs adds the "notification_settings" edge to the UserNotificationSetting entity by IDs.

func (*UserCreate) AddNotificationSettings

func (uc *UserCreate) AddNotificationSettings(u ...*UserNotificationSetting) *UserCreate

AddNotificationSettings adds the "notification_settings" edges to the UserNotificationSetting entity.

func (*UserCreate) Exec

func (uc *UserCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreate) ExecX

func (uc *UserCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreate) Mutation

func (uc *UserCreate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserCreate) OnConflict

func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.User.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserCreate) OnConflictColumns

func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.User.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserCreate) Save

func (uc *UserCreate) Save(ctx context.Context) (*User, error)

Save creates the User in the database.

func (*UserCreate) SaveX

func (uc *UserCreate) SaveX(ctx context.Context) *User

SaveX calls Save and panics if Save returns an error.

func (*UserCreate) SetAccessToken

func (uc *UserCreate) SetAccessToken(s string) *UserCreate

SetAccessToken sets the "access_token" field.

func (*UserCreate) SetCreatedAt

func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate

SetCreatedAt sets the "created_at" field.

func (*UserCreate) SetNillableCreatedAt

func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*UserCreate) SetNillableUpdatedAt

func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserCreate) SetUpdatedAt

func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate

SetUpdatedAt sets the "updated_at" field.

func (*UserCreate) SetUsername

func (uc *UserCreate) SetUsername(s string) *UserCreate

SetUsername sets the "username" field.

type UserCreateBulk

UserCreateBulk is the builder for creating many User entities in bulk.

type UserCreateBulk struct {
    // contains filtered or unexported fields
}

func (*UserCreateBulk) Exec

func (ucb *UserCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreateBulk) ExecX

func (ucb *UserCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreateBulk) OnConflict

func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.User.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserCreateBulk) OnConflictColumns

func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.User.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserCreateBulk) Save

func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)

Save creates the User entities in the database.

func (*UserCreateBulk) SaveX

func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User

SaveX is like Save, but panics if an error occurs.

type UserDelete

UserDelete is the builder for deleting a User entity.

type UserDelete struct {
    // contains filtered or unexported fields
}

func (*UserDelete) Exec

func (ud *UserDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*UserDelete) ExecX

func (ud *UserDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*UserDelete) Where

func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete

Where appends a list predicates to the UserDelete builder.

type UserDeleteOne

UserDeleteOne is the builder for deleting a single User entity.

type UserDeleteOne struct {
    // contains filtered or unexported fields
}

func (*UserDeleteOne) Exec

func (udo *UserDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserDeleteOne) ExecX

func (udo *UserDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserDeleteOne) Where

func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne

Where appends a list predicates to the UserDelete builder.

type UserEdge

UserEdge is the edge representation of User.

type UserEdge struct {
    Node   *User  `json:"node"`
    Cursor Cursor `json:"cursor"`
}

type UserEdges

UserEdges holds the relations/edges for other nodes in the graph.

type UserEdges struct {
    // Auth holds the value of the auth edge.
    Auth []*Auth `json:"auth,omitempty"`
    // NotificationSettings holds the value of the notification_settings edge.
    NotificationSettings []*UserNotificationSetting `json:"notification_settings,omitempty"`
    // HpviewHistory holds the value of the hpview_history edge.
    HpviewHistory []*HPViewHistory `json:"hpview_history,omitempty"`
    // HpmemberFollowing holds the value of the hpmember_following edge.
    HpmemberFollowing []*HPFollow `json:"hpmember_following,omitempty"`
    // HpsortHistory holds the value of the hpsort_history edge.
    HpsortHistory []*HPSortHistory `json:"hpsort_history,omitempty"`
    // HpfcEventTickets holds the value of the hpfc_event_tickets edge.
    HpfcEventTickets []*HPFCEventTicket `json:"hpfc_event_tickets,omitempty"`
    // contains filtered or unexported fields
}

func (UserEdges) AuthOrErr

func (e UserEdges) AuthOrErr() ([]*Auth, error)

AuthOrErr returns the Auth value or an error if the edge was not loaded in eager-loading.

func (UserEdges) HpfcEventTicketsOrErr

func (e UserEdges) HpfcEventTicketsOrErr() ([]*HPFCEventTicket, error)

HpfcEventTicketsOrErr returns the HpfcEventTickets value or an error if the edge was not loaded in eager-loading.

func (UserEdges) HpmemberFollowingOrErr

func (e UserEdges) HpmemberFollowingOrErr() ([]*HPFollow, error)

HpmemberFollowingOrErr returns the HpmemberFollowing value or an error if the edge was not loaded in eager-loading.

func (UserEdges) HpsortHistoryOrErr

func (e UserEdges) HpsortHistoryOrErr() ([]*HPSortHistory, error)

HpsortHistoryOrErr returns the HpsortHistory value or an error if the edge was not loaded in eager-loading.

func (UserEdges) HpviewHistoryOrErr

func (e UserEdges) HpviewHistoryOrErr() ([]*HPViewHistory, error)

HpviewHistoryOrErr returns the HpviewHistory value or an error if the edge was not loaded in eager-loading.

func (UserEdges) NotificationSettingsOrErr

func (e UserEdges) NotificationSettingsOrErr() ([]*UserNotificationSetting, error)

NotificationSettingsOrErr returns the NotificationSettings value or an error if the edge was not loaded in eager-loading.

type UserFilter

UserFilter provides a generic filtering capability at runtime for UserQuery.

type UserFilter struct {
    // contains filtered or unexported fields
}

func (*UserFilter) Where

func (f *UserFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*UserFilter) WhereAccessToken

func (f *UserFilter) WhereAccessToken(p entql.StringP)

WhereAccessToken applies the entql string predicate on the access_token field.

func (*UserFilter) WhereCreatedAt

func (f *UserFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*UserFilter) WhereHasAuth

func (f *UserFilter) WhereHasAuth()

WhereHasAuth applies a predicate to check if query has an edge auth.

func (*UserFilter) WhereHasAuthWith

func (f *UserFilter) WhereHasAuthWith(preds ...predicate.Auth)

WhereHasAuthWith applies a predicate to check if query has an edge auth with a given conditions (other predicates).

func (*UserFilter) WhereHasHpfcEventTickets

func (f *UserFilter) WhereHasHpfcEventTickets()

WhereHasHpfcEventTickets applies a predicate to check if query has an edge hpfc_event_tickets.

func (*UserFilter) WhereHasHpfcEventTicketsWith

func (f *UserFilter) WhereHasHpfcEventTicketsWith(preds ...predicate.HPFCEventTicket)

WhereHasHpfcEventTicketsWith applies a predicate to check if query has an edge hpfc_event_tickets with a given conditions (other predicates).

func (*UserFilter) WhereHasHpmemberFollowing

func (f *UserFilter) WhereHasHpmemberFollowing()

WhereHasHpmemberFollowing applies a predicate to check if query has an edge hpmember_following.

func (*UserFilter) WhereHasHpmemberFollowingWith

func (f *UserFilter) WhereHasHpmemberFollowingWith(preds ...predicate.HPFollow)

WhereHasHpmemberFollowingWith applies a predicate to check if query has an edge hpmember_following with a given conditions (other predicates).

func (*UserFilter) WhereHasHpsortHistory

func (f *UserFilter) WhereHasHpsortHistory()

WhereHasHpsortHistory applies a predicate to check if query has an edge hpsort_history.

func (*UserFilter) WhereHasHpsortHistoryWith

func (f *UserFilter) WhereHasHpsortHistoryWith(preds ...predicate.HPSortHistory)

WhereHasHpsortHistoryWith applies a predicate to check if query has an edge hpsort_history with a given conditions (other predicates).

func (*UserFilter) WhereHasHpviewHistory

func (f *UserFilter) WhereHasHpviewHistory()

WhereHasHpviewHistory applies a predicate to check if query has an edge hpview_history.

func (*UserFilter) WhereHasHpviewHistoryWith

func (f *UserFilter) WhereHasHpviewHistoryWith(preds ...predicate.HPViewHistory)

WhereHasHpviewHistoryWith applies a predicate to check if query has an edge hpview_history with a given conditions (other predicates).

func (*UserFilter) WhereHasNotificationSettings

func (f *UserFilter) WhereHasNotificationSettings()

WhereHasNotificationSettings applies a predicate to check if query has an edge notification_settings.

func (*UserFilter) WhereHasNotificationSettingsWith

func (f *UserFilter) WhereHasNotificationSettingsWith(preds ...predicate.UserNotificationSetting)

WhereHasNotificationSettingsWith applies a predicate to check if query has an edge notification_settings with a given conditions (other predicates).

func (*UserFilter) WhereID

func (f *UserFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*UserFilter) WhereUpdatedAt

func (f *UserFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*UserFilter) WhereUsername

func (f *UserFilter) WhereUsername(p entql.StringP)

WhereUsername applies the entql string predicate on the username field.

type UserGroupBy

UserGroupBy is the group-by builder for User entities.

type UserGroupBy struct {
    // contains filtered or unexported fields
}

func (*UserGroupBy) Aggregate

func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*UserGroupBy) Bool

func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolX

func (s *UserGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserGroupBy) Bools

func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolsX

func (s *UserGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserGroupBy) Float64

func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64X

func (s *UserGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserGroupBy) Float64s

func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64sX

func (s *UserGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserGroupBy) Int

func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntX

func (s *UserGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserGroupBy) Ints

func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntsX

func (s *UserGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserGroupBy) Scan

func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserGroupBy) ScanX

func (s *UserGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserGroupBy) String

func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringX

func (s *UserGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserGroupBy) Strings

func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringsX

func (s *UserGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserMutation

UserMutation represents an operation that mutates the User nodes in the graph.

type UserMutation struct {
    // contains filtered or unexported fields
}

func (*UserMutation) AccessToken

func (m *UserMutation) AccessToken() (r string, exists bool)

AccessToken returns the value of the "access_token" field in the mutation.

func (*UserMutation) AddAuthIDs

func (m *UserMutation) AddAuthIDs(ids ...int)

AddAuthIDs adds the "auth" edge to the Auth entity by ids.

func (*UserMutation) AddField

func (m *UserMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserMutation) AddHpfcEventTicketIDs

func (m *UserMutation) AddHpfcEventTicketIDs(ids ...int)

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by ids.

func (*UserMutation) AddHpmemberFollowingIDs

func (m *UserMutation) AddHpmemberFollowingIDs(ids ...int)

AddHpmemberFollowingIDs adds the "hpmember_following" edge to the HPFollow entity by ids.

func (*UserMutation) AddHpsortHistoryIDs

func (m *UserMutation) AddHpsortHistoryIDs(ids ...int)

AddHpsortHistoryIDs adds the "hpsort_history" edge to the HPSortHistory entity by ids.

func (*UserMutation) AddHpviewHistoryIDs

func (m *UserMutation) AddHpviewHistoryIDs(ids ...int)

AddHpviewHistoryIDs adds the "hpview_history" edge to the HPViewHistory entity by ids.

func (*UserMutation) AddNotificationSettingIDs

func (m *UserMutation) AddNotificationSettingIDs(ids ...int)

AddNotificationSettingIDs adds the "notification_settings" edge to the UserNotificationSetting entity by ids.

func (*UserMutation) AddedEdges

func (m *UserMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*UserMutation) AddedField

func (m *UserMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserMutation) AddedFields

func (m *UserMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*UserMutation) AddedIDs

func (m *UserMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*UserMutation) AuthCleared

func (m *UserMutation) AuthCleared() bool

AuthCleared reports if the "auth" edge to the Auth entity was cleared.

func (*UserMutation) AuthIDs

func (m *UserMutation) AuthIDs() (ids []int)

AuthIDs returns the "auth" edge IDs in the mutation.

func (*UserMutation) ClearAuth

func (m *UserMutation) ClearAuth()

ClearAuth clears the "auth" edge to the Auth entity.

func (*UserMutation) ClearCreatedAt

func (m *UserMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*UserMutation) ClearEdge

func (m *UserMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*UserMutation) ClearField

func (m *UserMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserMutation) ClearHpfcEventTickets

func (m *UserMutation) ClearHpfcEventTickets()

ClearHpfcEventTickets clears the "hpfc_event_tickets" edge to the HPFCEventTicket entity.

func (*UserMutation) ClearHpmemberFollowing

func (m *UserMutation) ClearHpmemberFollowing()

ClearHpmemberFollowing clears the "hpmember_following" edge to the HPFollow entity.

func (*UserMutation) ClearHpsortHistory

func (m *UserMutation) ClearHpsortHistory()

ClearHpsortHistory clears the "hpsort_history" edge to the HPSortHistory entity.

func (*UserMutation) ClearHpviewHistory

func (m *UserMutation) ClearHpviewHistory()

ClearHpviewHistory clears the "hpview_history" edge to the HPViewHistory entity.

func (*UserMutation) ClearNotificationSettings

func (m *UserMutation) ClearNotificationSettings()

ClearNotificationSettings clears the "notification_settings" edge to the UserNotificationSetting entity.

func (*UserMutation) ClearUpdatedAt

func (m *UserMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserMutation) ClearedEdges

func (m *UserMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*UserMutation) ClearedFields

func (m *UserMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (UserMutation) Client

func (m UserMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*UserMutation) CreatedAt

func (m *UserMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserMutation) CreatedAtCleared

func (m *UserMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*UserMutation) EdgeCleared

func (m *UserMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*UserMutation) Field

func (m *UserMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserMutation) FieldCleared

func (m *UserMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*UserMutation) Fields

func (m *UserMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*UserMutation) Filter

func (m *UserMutation) Filter() *UserFilter

Filter returns an entql.Where implementation to apply filters on the UserMutation builder.

func (*UserMutation) HpfcEventTicketsCleared

func (m *UserMutation) HpfcEventTicketsCleared() bool

HpfcEventTicketsCleared reports if the "hpfc_event_tickets" edge to the HPFCEventTicket entity was cleared.

func (*UserMutation) HpfcEventTicketsIDs

func (m *UserMutation) HpfcEventTicketsIDs() (ids []int)

HpfcEventTicketsIDs returns the "hpfc_event_tickets" edge IDs in the mutation.

func (*UserMutation) HpmemberFollowingCleared

func (m *UserMutation) HpmemberFollowingCleared() bool

HpmemberFollowingCleared reports if the "hpmember_following" edge to the HPFollow entity was cleared.

func (*UserMutation) HpmemberFollowingIDs

func (m *UserMutation) HpmemberFollowingIDs() (ids []int)

HpmemberFollowingIDs returns the "hpmember_following" edge IDs in the mutation.

func (*UserMutation) HpsortHistoryCleared

func (m *UserMutation) HpsortHistoryCleared() bool

HpsortHistoryCleared reports if the "hpsort_history" edge to the HPSortHistory entity was cleared.

func (*UserMutation) HpsortHistoryIDs

func (m *UserMutation) HpsortHistoryIDs() (ids []int)

HpsortHistoryIDs returns the "hpsort_history" edge IDs in the mutation.

func (*UserMutation) HpviewHistoryCleared

func (m *UserMutation) HpviewHistoryCleared() bool

HpviewHistoryCleared reports if the "hpview_history" edge to the HPViewHistory entity was cleared.

func (*UserMutation) HpviewHistoryIDs

func (m *UserMutation) HpviewHistoryIDs() (ids []int)

HpviewHistoryIDs returns the "hpview_history" edge IDs in the mutation.

func (*UserMutation) ID

func (m *UserMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*UserMutation) IDs

func (m *UserMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*UserMutation) NotificationSettingsCleared

func (m *UserMutation) NotificationSettingsCleared() bool

NotificationSettingsCleared reports if the "notification_settings" edge to the UserNotificationSetting entity was cleared.

func (*UserMutation) NotificationSettingsIDs

func (m *UserMutation) NotificationSettingsIDs() (ids []int)

NotificationSettingsIDs returns the "notification_settings" edge IDs in the mutation.

func (*UserMutation) OldAccessToken

func (m *UserMutation) OldAccessToken(ctx context.Context) (v string, err error)

OldAccessToken returns the old "access_token" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldCreatedAt

func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldField

func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*UserMutation) OldUpdatedAt

func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldUsername

func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error)

OldUsername returns the old "username" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) Op

func (m *UserMutation) Op() Op

Op returns the operation name.

func (*UserMutation) RemoveAuthIDs

func (m *UserMutation) RemoveAuthIDs(ids ...int)

RemoveAuthIDs removes the "auth" edge to the Auth entity by IDs.

func (*UserMutation) RemoveHpfcEventTicketIDs

func (m *UserMutation) RemoveHpfcEventTicketIDs(ids ...int)

RemoveHpfcEventTicketIDs removes the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*UserMutation) RemoveHpmemberFollowingIDs

func (m *UserMutation) RemoveHpmemberFollowingIDs(ids ...int)

RemoveHpmemberFollowingIDs removes the "hpmember_following" edge to the HPFollow entity by IDs.

func (*UserMutation) RemoveHpsortHistoryIDs

func (m *UserMutation) RemoveHpsortHistoryIDs(ids ...int)

RemoveHpsortHistoryIDs removes the "hpsort_history" edge to the HPSortHistory entity by IDs.

func (*UserMutation) RemoveHpviewHistoryIDs

func (m *UserMutation) RemoveHpviewHistoryIDs(ids ...int)

RemoveHpviewHistoryIDs removes the "hpview_history" edge to the HPViewHistory entity by IDs.

func (*UserMutation) RemoveNotificationSettingIDs

func (m *UserMutation) RemoveNotificationSettingIDs(ids ...int)

RemoveNotificationSettingIDs removes the "notification_settings" edge to the UserNotificationSetting entity by IDs.

func (*UserMutation) RemovedAuthIDs

func (m *UserMutation) RemovedAuthIDs() (ids []int)

RemovedAuth returns the removed IDs of the "auth" edge to the Auth entity.

func (*UserMutation) RemovedEdges

func (m *UserMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*UserMutation) RemovedHpfcEventTicketsIDs

func (m *UserMutation) RemovedHpfcEventTicketsIDs() (ids []int)

RemovedHpfcEventTickets returns the removed IDs of the "hpfc_event_tickets" edge to the HPFCEventTicket entity.

func (*UserMutation) RemovedHpmemberFollowingIDs

func (m *UserMutation) RemovedHpmemberFollowingIDs() (ids []int)

RemovedHpmemberFollowing returns the removed IDs of the "hpmember_following" edge to the HPFollow entity.

func (*UserMutation) RemovedHpsortHistoryIDs

func (m *UserMutation) RemovedHpsortHistoryIDs() (ids []int)

RemovedHpsortHistory returns the removed IDs of the "hpsort_history" edge to the HPSortHistory entity.

func (*UserMutation) RemovedHpviewHistoryIDs

func (m *UserMutation) RemovedHpviewHistoryIDs() (ids []int)

RemovedHpviewHistory returns the removed IDs of the "hpview_history" edge to the HPViewHistory entity.

func (*UserMutation) RemovedIDs

func (m *UserMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*UserMutation) RemovedNotificationSettingsIDs

func (m *UserMutation) RemovedNotificationSettingsIDs() (ids []int)

RemovedNotificationSettings returns the removed IDs of the "notification_settings" edge to the UserNotificationSetting entity.

func (*UserMutation) ResetAccessToken

func (m *UserMutation) ResetAccessToken()

ResetAccessToken resets all changes to the "access_token" field.

func (*UserMutation) ResetAuth

func (m *UserMutation) ResetAuth()

ResetAuth resets all changes to the "auth" edge.

func (*UserMutation) ResetCreatedAt

func (m *UserMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserMutation) ResetEdge

func (m *UserMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*UserMutation) ResetField

func (m *UserMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserMutation) ResetHpfcEventTickets

func (m *UserMutation) ResetHpfcEventTickets()

ResetHpfcEventTickets resets all changes to the "hpfc_event_tickets" edge.

func (*UserMutation) ResetHpmemberFollowing

func (m *UserMutation) ResetHpmemberFollowing()

ResetHpmemberFollowing resets all changes to the "hpmember_following" edge.

func (*UserMutation) ResetHpsortHistory

func (m *UserMutation) ResetHpsortHistory()

ResetHpsortHistory resets all changes to the "hpsort_history" edge.

func (*UserMutation) ResetHpviewHistory

func (m *UserMutation) ResetHpviewHistory()

ResetHpviewHistory resets all changes to the "hpview_history" edge.

func (*UserMutation) ResetNotificationSettings

func (m *UserMutation) ResetNotificationSettings()

ResetNotificationSettings resets all changes to the "notification_settings" edge.

func (*UserMutation) ResetUpdatedAt

func (m *UserMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserMutation) ResetUsername

func (m *UserMutation) ResetUsername()

ResetUsername resets all changes to the "username" field.

func (*UserMutation) SetAccessToken

func (m *UserMutation) SetAccessToken(s string)

SetAccessToken sets the "access_token" field.

func (*UserMutation) SetCreatedAt

func (m *UserMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserMutation) SetField

func (m *UserMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserMutation) SetOp

func (m *UserMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserMutation) SetUpdatedAt

func (m *UserMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*UserMutation) SetUsername

func (m *UserMutation) SetUsername(s string)

SetUsername sets the "username" field.

func (UserMutation) Tx

func (m UserMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*UserMutation) Type

func (m *UserMutation) Type() string

Type returns the node type of this mutation (User).

func (*UserMutation) UpdatedAt

func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*UserMutation) UpdatedAtCleared

func (m *UserMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*UserMutation) Username

func (m *UserMutation) Username() (r string, exists bool)

Username returns the value of the "username" field in the mutation.

func (*UserMutation) Where

func (m *UserMutation) Where(ps ...predicate.User)

Where appends a list predicates to the UserMutation builder.

func (*UserMutation) WhereP

func (m *UserMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type UserNotificationLog

UserNotificationLog is the model entity for the UserNotificationLog schema.

type UserNotificationLog struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // unique key to identify the notification source
    Key string `json:"key,omitempty"`
    // ocurrence of the notification. the pair of the key and trigger has to be unique
    Trigger string `json:"trigger,omitempty"`
    // true if the notification is generated for the test
    IsTest bool `json:"is_test,omitempty"`
    // Message payload for client to handle the notification
    ReactNavigationMessage jsonfields.ReactNavigationPush `json:"react_navigation_message,omitempty"`
    // expected time for the notification to be sent
    ExpectedDeliveryTime time.Time `json:"expected_delivery_time,omitempty"`
    // Status holds the value of the "status" field.
    Status enums.UserNotificationStatus `json:"status,omitempty"`
    // error message if happens
    StatusMessage string `json:"status_message,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the UserNotificationLogQuery when eager-loading is set.
    Edges UserNotificationLogEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*UserNotificationLog) NamedReceivers

func (unl *UserNotificationLog) NamedReceivers(name string) ([]*UserNotificationSetting, error)

NamedReceivers returns the Receivers named value or an error if the edge was not loaded in eager-loading with this name.

func (*UserNotificationLog) QueryReceivers

func (unl *UserNotificationLog) QueryReceivers() *UserNotificationSettingQuery

QueryReceivers queries the "receivers" edge of the UserNotificationLog entity.

func (*UserNotificationLog) String

func (unl *UserNotificationLog) String() string

String implements the fmt.Stringer.

func (*UserNotificationLog) Unwrap

func (unl *UserNotificationLog) Unwrap() *UserNotificationLog

Unwrap unwraps the UserNotificationLog entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*UserNotificationLog) Update

func (unl *UserNotificationLog) Update() *UserNotificationLogUpdateOne

Update returns a builder for updating this UserNotificationLog. Note that you need to call UserNotificationLog.Unwrap() before calling this method if this UserNotificationLog was returned from a transaction, and the transaction was committed or rolled back.

func (*UserNotificationLog) Value

func (unl *UserNotificationLog) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the UserNotificationLog. This includes values selected through modifiers, order, etc.

type UserNotificationLogClient

UserNotificationLogClient is a client for the UserNotificationLog schema.

type UserNotificationLogClient struct {
    // contains filtered or unexported fields
}

func NewUserNotificationLogClient

func NewUserNotificationLogClient(c config) *UserNotificationLogClient

NewUserNotificationLogClient returns a client for the UserNotificationLog from the given config.

func (*UserNotificationLogClient) Create

func (c *UserNotificationLogClient) Create() *UserNotificationLogCreate

Create returns a builder for creating a UserNotificationLog entity.

func (*UserNotificationLogClient) CreateBulk

func (c *UserNotificationLogClient) CreateBulk(builders ...*UserNotificationLogCreate) *UserNotificationLogCreateBulk

CreateBulk returns a builder for creating a bulk of UserNotificationLog entities.

func (*UserNotificationLogClient) Delete

func (c *UserNotificationLogClient) Delete() *UserNotificationLogDelete

Delete returns a delete builder for UserNotificationLog.

func (*UserNotificationLogClient) DeleteOne

func (c *UserNotificationLogClient) DeleteOne(unl *UserNotificationLog) *UserNotificationLogDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserNotificationLogClient) DeleteOneID

func (c *UserNotificationLogClient) DeleteOneID(id int) *UserNotificationLogDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*UserNotificationLogClient) Get

func (c *UserNotificationLogClient) Get(ctx context.Context, id int) (*UserNotificationLog, error)

Get returns a UserNotificationLog entity by its id.

func (*UserNotificationLogClient) GetX

func (c *UserNotificationLogClient) GetX(ctx context.Context, id int) *UserNotificationLog

GetX is like Get, but panics if an error occurs.

func (*UserNotificationLogClient) Hooks

func (c *UserNotificationLogClient) Hooks() []Hook

Hooks returns the client hooks.

func (*UserNotificationLogClient) Intercept

func (c *UserNotificationLogClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usernotificationlog.Intercept(f(g(h())))`.

func (*UserNotificationLogClient) Interceptors

func (c *UserNotificationLogClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*UserNotificationLogClient) Query

func (c *UserNotificationLogClient) Query() *UserNotificationLogQuery

Query returns a query builder for UserNotificationLog.

func (*UserNotificationLogClient) QueryReceivers

func (c *UserNotificationLogClient) QueryReceivers(unl *UserNotificationLog) *UserNotificationSettingQuery

QueryReceivers queries the receivers edge of a UserNotificationLog.

func (*UserNotificationLogClient) Update

func (c *UserNotificationLogClient) Update() *UserNotificationLogUpdate

Update returns an update builder for UserNotificationLog.

func (*UserNotificationLogClient) UpdateOne

func (c *UserNotificationLogClient) UpdateOne(unl *UserNotificationLog) *UserNotificationLogUpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserNotificationLogClient) UpdateOneID

func (c *UserNotificationLogClient) UpdateOneID(id int) *UserNotificationLogUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserNotificationLogClient) Use

func (c *UserNotificationLogClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usernotificationlog.Hooks(f(g(h())))`.

type UserNotificationLogCreate

UserNotificationLogCreate is the builder for creating a UserNotificationLog entity.

type UserNotificationLogCreate struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogCreate) AddReceiverIDs

func (unlc *UserNotificationLogCreate) AddReceiverIDs(ids ...int) *UserNotificationLogCreate

AddReceiverIDs adds the "receivers" edge to the UserNotificationSetting entity by IDs.

func (*UserNotificationLogCreate) AddReceivers

func (unlc *UserNotificationLogCreate) AddReceivers(u ...*UserNotificationSetting) *UserNotificationLogCreate

AddReceivers adds the "receivers" edges to the UserNotificationSetting entity.

func (*UserNotificationLogCreate) Exec

func (unlc *UserNotificationLogCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationLogCreate) ExecX

func (unlc *UserNotificationLogCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogCreate) Mutation

func (unlc *UserNotificationLogCreate) Mutation() *UserNotificationLogMutation

Mutation returns the UserNotificationLogMutation object of the builder.

func (*UserNotificationLogCreate) OnConflict

func (unlc *UserNotificationLogCreate) OnConflict(opts ...sql.ConflictOption) *UserNotificationLogUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.UserNotificationLog.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserNotificationLogUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserNotificationLogCreate) OnConflictColumns

func (unlc *UserNotificationLogCreate) OnConflictColumns(columns ...string) *UserNotificationLogUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.UserNotificationLog.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserNotificationLogCreate) Save

func (unlc *UserNotificationLogCreate) Save(ctx context.Context) (*UserNotificationLog, error)

Save creates the UserNotificationLog in the database.

func (*UserNotificationLogCreate) SaveX

func (unlc *UserNotificationLogCreate) SaveX(ctx context.Context) *UserNotificationLog

SaveX calls Save and panics if Save returns an error.

func (*UserNotificationLogCreate) SetCreatedAt

func (unlc *UserNotificationLogCreate) SetCreatedAt(t time.Time) *UserNotificationLogCreate

SetCreatedAt sets the "created_at" field.

func (*UserNotificationLogCreate) SetExpectedDeliveryTime

func (unlc *UserNotificationLogCreate) SetExpectedDeliveryTime(t time.Time) *UserNotificationLogCreate

SetExpectedDeliveryTime sets the "expected_delivery_time" field.

func (*UserNotificationLogCreate) SetIsTest

func (unlc *UserNotificationLogCreate) SetIsTest(b bool) *UserNotificationLogCreate

SetIsTest sets the "is_test" field.

func (*UserNotificationLogCreate) SetKey

func (unlc *UserNotificationLogCreate) SetKey(s string) *UserNotificationLogCreate

SetKey sets the "key" field.

func (*UserNotificationLogCreate) SetNillableCreatedAt

func (unlc *UserNotificationLogCreate) SetNillableCreatedAt(t *time.Time) *UserNotificationLogCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*UserNotificationLogCreate) SetNillableStatus

func (unlc *UserNotificationLogCreate) SetNillableStatus(ens *enums.UserNotificationStatus) *UserNotificationLogCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserNotificationLogCreate) SetNillableStatusMessage

func (unlc *UserNotificationLogCreate) SetNillableStatusMessage(s *string) *UserNotificationLogCreate

SetNillableStatusMessage sets the "status_message" field if the given value is not nil.

func (*UserNotificationLogCreate) SetNillableUpdatedAt

func (unlc *UserNotificationLogCreate) SetNillableUpdatedAt(t *time.Time) *UserNotificationLogCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserNotificationLogCreate) SetReactNavigationMessage

func (unlc *UserNotificationLogCreate) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush) *UserNotificationLogCreate

SetReactNavigationMessage sets the "react_navigation_message" field.

func (*UserNotificationLogCreate) SetStatus

func (unlc *UserNotificationLogCreate) SetStatus(ens enums.UserNotificationStatus) *UserNotificationLogCreate

SetStatus sets the "status" field.

func (*UserNotificationLogCreate) SetStatusMessage

func (unlc *UserNotificationLogCreate) SetStatusMessage(s string) *UserNotificationLogCreate

SetStatusMessage sets the "status_message" field.

func (*UserNotificationLogCreate) SetTrigger

func (unlc *UserNotificationLogCreate) SetTrigger(s string) *UserNotificationLogCreate

SetTrigger sets the "trigger" field.

func (*UserNotificationLogCreate) SetUpdatedAt

func (unlc *UserNotificationLogCreate) SetUpdatedAt(t time.Time) *UserNotificationLogCreate

SetUpdatedAt sets the "updated_at" field.

type UserNotificationLogCreateBulk

UserNotificationLogCreateBulk is the builder for creating many UserNotificationLog entities in bulk.

type UserNotificationLogCreateBulk struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogCreateBulk) Exec

func (unlcb *UserNotificationLogCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationLogCreateBulk) ExecX

func (unlcb *UserNotificationLogCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogCreateBulk) OnConflict

func (unlcb *UserNotificationLogCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNotificationLogUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.UserNotificationLog.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserNotificationLogUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserNotificationLogCreateBulk) OnConflictColumns

func (unlcb *UserNotificationLogCreateBulk) OnConflictColumns(columns ...string) *UserNotificationLogUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.UserNotificationLog.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserNotificationLogCreateBulk) Save

func (unlcb *UserNotificationLogCreateBulk) Save(ctx context.Context) ([]*UserNotificationLog, error)

Save creates the UserNotificationLog entities in the database.

func (*UserNotificationLogCreateBulk) SaveX

func (unlcb *UserNotificationLogCreateBulk) SaveX(ctx context.Context) []*UserNotificationLog

SaveX is like Save, but panics if an error occurs.

type UserNotificationLogDelete

UserNotificationLogDelete is the builder for deleting a UserNotificationLog entity.

type UserNotificationLogDelete struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogDelete) Exec

func (unld *UserNotificationLogDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*UserNotificationLogDelete) ExecX

func (unld *UserNotificationLogDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogDelete) Where

func (unld *UserNotificationLogDelete) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogDelete

Where appends a list predicates to the UserNotificationLogDelete builder.

type UserNotificationLogDeleteOne

UserNotificationLogDeleteOne is the builder for deleting a single UserNotificationLog entity.

type UserNotificationLogDeleteOne struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogDeleteOne) Exec

func (unldo *UserNotificationLogDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserNotificationLogDeleteOne) ExecX

func (unldo *UserNotificationLogDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogDeleteOne) Where

func (unldo *UserNotificationLogDeleteOne) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogDeleteOne

Where appends a list predicates to the UserNotificationLogDelete builder.

type UserNotificationLogEdges

UserNotificationLogEdges holds the relations/edges for other nodes in the graph.

type UserNotificationLogEdges struct {
    // Receivers holds the value of the receivers edge.
    Receivers []*UserNotificationSetting `json:"receivers,omitempty"`
    // contains filtered or unexported fields
}

func (UserNotificationLogEdges) ReceiversOrErr

func (e UserNotificationLogEdges) ReceiversOrErr() ([]*UserNotificationSetting, error)

ReceiversOrErr returns the Receivers value or an error if the edge was not loaded in eager-loading.

type UserNotificationLogFilter

UserNotificationLogFilter provides a generic filtering capability at runtime for UserNotificationLogQuery.

type UserNotificationLogFilter struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogFilter) Where

func (f *UserNotificationLogFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*UserNotificationLogFilter) WhereCreatedAt

func (f *UserNotificationLogFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*UserNotificationLogFilter) WhereExpectedDeliveryTime

func (f *UserNotificationLogFilter) WhereExpectedDeliveryTime(p entql.TimeP)

WhereExpectedDeliveryTime applies the entql time.Time predicate on the expected_delivery_time field.

func (*UserNotificationLogFilter) WhereHasReceivers

func (f *UserNotificationLogFilter) WhereHasReceivers()

WhereHasReceivers applies a predicate to check if query has an edge receivers.

func (*UserNotificationLogFilter) WhereHasReceiversWith

func (f *UserNotificationLogFilter) WhereHasReceiversWith(preds ...predicate.UserNotificationSetting)

WhereHasReceiversWith applies a predicate to check if query has an edge receivers with a given conditions (other predicates).

func (*UserNotificationLogFilter) WhereID

func (f *UserNotificationLogFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*UserNotificationLogFilter) WhereIsTest

func (f *UserNotificationLogFilter) WhereIsTest(p entql.BoolP)

WhereIsTest applies the entql bool predicate on the is_test field.

func (*UserNotificationLogFilter) WhereKey

func (f *UserNotificationLogFilter) WhereKey(p entql.StringP)

WhereKey applies the entql string predicate on the key field.

func (*UserNotificationLogFilter) WhereReactNavigationMessage

func (f *UserNotificationLogFilter) WhereReactNavigationMessage(p entql.BytesP)

WhereReactNavigationMessage applies the entql json.RawMessage predicate on the react_navigation_message field.

func (*UserNotificationLogFilter) WhereStatus

func (f *UserNotificationLogFilter) WhereStatus(p entql.StringP)

WhereStatus applies the entql string predicate on the status field.

func (*UserNotificationLogFilter) WhereStatusMessage

func (f *UserNotificationLogFilter) WhereStatusMessage(p entql.StringP)

WhereStatusMessage applies the entql string predicate on the status_message field.

func (*UserNotificationLogFilter) WhereTrigger

func (f *UserNotificationLogFilter) WhereTrigger(p entql.StringP)

WhereTrigger applies the entql string predicate on the trigger field.

func (*UserNotificationLogFilter) WhereUpdatedAt

func (f *UserNotificationLogFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type UserNotificationLogGroupBy

UserNotificationLogGroupBy is the group-by builder for UserNotificationLog entities.

type UserNotificationLogGroupBy struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogGroupBy) Aggregate

func (unlgb *UserNotificationLogGroupBy) Aggregate(fns ...AggregateFunc) *UserNotificationLogGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*UserNotificationLogGroupBy) Bool

func (s *UserNotificationLogGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) BoolX

func (s *UserNotificationLogGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserNotificationLogGroupBy) Bools

func (s *UserNotificationLogGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) BoolsX

func (s *UserNotificationLogGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserNotificationLogGroupBy) Float64

func (s *UserNotificationLogGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) Float64X

func (s *UserNotificationLogGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserNotificationLogGroupBy) Float64s

func (s *UserNotificationLogGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) Float64sX

func (s *UserNotificationLogGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserNotificationLogGroupBy) Int

func (s *UserNotificationLogGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) IntX

func (s *UserNotificationLogGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserNotificationLogGroupBy) Ints

func (s *UserNotificationLogGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) IntsX

func (s *UserNotificationLogGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserNotificationLogGroupBy) Scan

func (unlgb *UserNotificationLogGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserNotificationLogGroupBy) ScanX

func (s *UserNotificationLogGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserNotificationLogGroupBy) String

func (s *UserNotificationLogGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) StringX

func (s *UserNotificationLogGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserNotificationLogGroupBy) Strings

func (s *UserNotificationLogGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogGroupBy) StringsX

func (s *UserNotificationLogGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserNotificationLogMutation

UserNotificationLogMutation represents an operation that mutates the UserNotificationLog nodes in the graph.

type UserNotificationLogMutation struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogMutation) AddField

func (m *UserNotificationLogMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserNotificationLogMutation) AddReceiverIDs

func (m *UserNotificationLogMutation) AddReceiverIDs(ids ...int)

AddReceiverIDs adds the "receivers" edge to the UserNotificationSetting entity by ids.

func (*UserNotificationLogMutation) AddedEdges

func (m *UserNotificationLogMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*UserNotificationLogMutation) AddedField

func (m *UserNotificationLogMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserNotificationLogMutation) AddedFields

func (m *UserNotificationLogMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*UserNotificationLogMutation) AddedIDs

func (m *UserNotificationLogMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*UserNotificationLogMutation) ClearCreatedAt

func (m *UserNotificationLogMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*UserNotificationLogMutation) ClearEdge

func (m *UserNotificationLogMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*UserNotificationLogMutation) ClearField

func (m *UserNotificationLogMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserNotificationLogMutation) ClearReceivers

func (m *UserNotificationLogMutation) ClearReceivers()

ClearReceivers clears the "receivers" edge to the UserNotificationSetting entity.

func (*UserNotificationLogMutation) ClearUpdatedAt

func (m *UserNotificationLogMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationLogMutation) ClearedEdges

func (m *UserNotificationLogMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*UserNotificationLogMutation) ClearedFields

func (m *UserNotificationLogMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (UserNotificationLogMutation) Client

func (m UserNotificationLogMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*UserNotificationLogMutation) CreatedAt

func (m *UserNotificationLogMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserNotificationLogMutation) CreatedAtCleared

func (m *UserNotificationLogMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*UserNotificationLogMutation) EdgeCleared

func (m *UserNotificationLogMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*UserNotificationLogMutation) ExpectedDeliveryTime

func (m *UserNotificationLogMutation) ExpectedDeliveryTime() (r time.Time, exists bool)

ExpectedDeliveryTime returns the value of the "expected_delivery_time" field in the mutation.

func (*UserNotificationLogMutation) Field

func (m *UserNotificationLogMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserNotificationLogMutation) FieldCleared

func (m *UserNotificationLogMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*UserNotificationLogMutation) Fields

func (m *UserNotificationLogMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*UserNotificationLogMutation) Filter

func (m *UserNotificationLogMutation) Filter() *UserNotificationLogFilter

Filter returns an entql.Where implementation to apply filters on the UserNotificationLogMutation builder.

func (*UserNotificationLogMutation) ID

func (m *UserNotificationLogMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*UserNotificationLogMutation) IDs

func (m *UserNotificationLogMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*UserNotificationLogMutation) IsTest

func (m *UserNotificationLogMutation) IsTest() (r bool, exists bool)

IsTest returns the value of the "is_test" field in the mutation.

func (*UserNotificationLogMutation) Key

func (m *UserNotificationLogMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*UserNotificationLogMutation) OldCreatedAt

func (m *UserNotificationLogMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldExpectedDeliveryTime

func (m *UserNotificationLogMutation) OldExpectedDeliveryTime(ctx context.Context) (v time.Time, err error)

OldExpectedDeliveryTime returns the old "expected_delivery_time" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldField

func (m *UserNotificationLogMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*UserNotificationLogMutation) OldIsTest

func (m *UserNotificationLogMutation) OldIsTest(ctx context.Context) (v bool, err error)

OldIsTest returns the old "is_test" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldKey

func (m *UserNotificationLogMutation) OldKey(ctx context.Context) (v string, err error)

OldKey returns the old "key" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldReactNavigationMessage

func (m *UserNotificationLogMutation) OldReactNavigationMessage(ctx context.Context) (v jsonfields.ReactNavigationPush, err error)

OldReactNavigationMessage returns the old "react_navigation_message" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldStatus

func (m *UserNotificationLogMutation) OldStatus(ctx context.Context) (v enums.UserNotificationStatus, err error)

OldStatus returns the old "status" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldStatusMessage

func (m *UserNotificationLogMutation) OldStatusMessage(ctx context.Context) (v string, err error)

OldStatusMessage returns the old "status_message" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldTrigger

func (m *UserNotificationLogMutation) OldTrigger(ctx context.Context) (v string, err error)

OldTrigger returns the old "trigger" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) OldUpdatedAt

func (m *UserNotificationLogMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the UserNotificationLog entity. If the UserNotificationLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationLogMutation) Op

func (m *UserNotificationLogMutation) Op() Op

Op returns the operation name.

func (*UserNotificationLogMutation) ReactNavigationMessage

func (m *UserNotificationLogMutation) ReactNavigationMessage() (r jsonfields.ReactNavigationPush, exists bool)

ReactNavigationMessage returns the value of the "react_navigation_message" field in the mutation.

func (*UserNotificationLogMutation) ReceiversCleared

func (m *UserNotificationLogMutation) ReceiversCleared() bool

ReceiversCleared reports if the "receivers" edge to the UserNotificationSetting entity was cleared.

func (*UserNotificationLogMutation) ReceiversIDs

func (m *UserNotificationLogMutation) ReceiversIDs() (ids []int)

ReceiversIDs returns the "receivers" edge IDs in the mutation.

func (*UserNotificationLogMutation) RemoveReceiverIDs

func (m *UserNotificationLogMutation) RemoveReceiverIDs(ids ...int)

RemoveReceiverIDs removes the "receivers" edge to the UserNotificationSetting entity by IDs.

func (*UserNotificationLogMutation) RemovedEdges

func (m *UserNotificationLogMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*UserNotificationLogMutation) RemovedIDs

func (m *UserNotificationLogMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*UserNotificationLogMutation) RemovedReceiversIDs

func (m *UserNotificationLogMutation) RemovedReceiversIDs() (ids []int)

RemovedReceivers returns the removed IDs of the "receivers" edge to the UserNotificationSetting entity.

func (*UserNotificationLogMutation) ResetCreatedAt

func (m *UserNotificationLogMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserNotificationLogMutation) ResetEdge

func (m *UserNotificationLogMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*UserNotificationLogMutation) ResetExpectedDeliveryTime

func (m *UserNotificationLogMutation) ResetExpectedDeliveryTime()

ResetExpectedDeliveryTime resets all changes to the "expected_delivery_time" field.

func (*UserNotificationLogMutation) ResetField

func (m *UserNotificationLogMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserNotificationLogMutation) ResetIsTest

func (m *UserNotificationLogMutation) ResetIsTest()

ResetIsTest resets all changes to the "is_test" field.

func (*UserNotificationLogMutation) ResetKey

func (m *UserNotificationLogMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*UserNotificationLogMutation) ResetReactNavigationMessage

func (m *UserNotificationLogMutation) ResetReactNavigationMessage()

ResetReactNavigationMessage resets all changes to the "react_navigation_message" field.

func (*UserNotificationLogMutation) ResetReceivers

func (m *UserNotificationLogMutation) ResetReceivers()

ResetReceivers resets all changes to the "receivers" edge.

func (*UserNotificationLogMutation) ResetStatus

func (m *UserNotificationLogMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*UserNotificationLogMutation) ResetStatusMessage

func (m *UserNotificationLogMutation) ResetStatusMessage()

ResetStatusMessage resets all changes to the "status_message" field.

func (*UserNotificationLogMutation) ResetTrigger

func (m *UserNotificationLogMutation) ResetTrigger()

ResetTrigger resets all changes to the "trigger" field.

func (*UserNotificationLogMutation) ResetUpdatedAt

func (m *UserNotificationLogMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserNotificationLogMutation) SetCreatedAt

func (m *UserNotificationLogMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserNotificationLogMutation) SetExpectedDeliveryTime

func (m *UserNotificationLogMutation) SetExpectedDeliveryTime(t time.Time)

SetExpectedDeliveryTime sets the "expected_delivery_time" field.

func (*UserNotificationLogMutation) SetField

func (m *UserNotificationLogMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserNotificationLogMutation) SetIsTest

func (m *UserNotificationLogMutation) SetIsTest(b bool)

SetIsTest sets the "is_test" field.

func (*UserNotificationLogMutation) SetKey

func (m *UserNotificationLogMutation) SetKey(s string)

SetKey sets the "key" field.

func (*UserNotificationLogMutation) SetOp

func (m *UserNotificationLogMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserNotificationLogMutation) SetReactNavigationMessage

func (m *UserNotificationLogMutation) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush)

SetReactNavigationMessage sets the "react_navigation_message" field.

func (*UserNotificationLogMutation) SetStatus

func (m *UserNotificationLogMutation) SetStatus(ens enums.UserNotificationStatus)

SetStatus sets the "status" field.

func (*UserNotificationLogMutation) SetStatusMessage

func (m *UserNotificationLogMutation) SetStatusMessage(s string)

SetStatusMessage sets the "status_message" field.

func (*UserNotificationLogMutation) SetTrigger

func (m *UserNotificationLogMutation) SetTrigger(s string)

SetTrigger sets the "trigger" field.

func (*UserNotificationLogMutation) SetUpdatedAt

func (m *UserNotificationLogMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationLogMutation) Status

func (m *UserNotificationLogMutation) Status() (r enums.UserNotificationStatus, exists bool)

Status returns the value of the "status" field in the mutation.

func (*UserNotificationLogMutation) StatusMessage

func (m *UserNotificationLogMutation) StatusMessage() (r string, exists bool)

StatusMessage returns the value of the "status_message" field in the mutation.

func (*UserNotificationLogMutation) Trigger

func (m *UserNotificationLogMutation) Trigger() (r string, exists bool)

Trigger returns the value of the "trigger" field in the mutation.

func (UserNotificationLogMutation) Tx

func (m UserNotificationLogMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*UserNotificationLogMutation) Type

func (m *UserNotificationLogMutation) Type() string

Type returns the node type of this mutation (UserNotificationLog).

func (*UserNotificationLogMutation) UpdatedAt

func (m *UserNotificationLogMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*UserNotificationLogMutation) UpdatedAtCleared

func (m *UserNotificationLogMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*UserNotificationLogMutation) Where

func (m *UserNotificationLogMutation) Where(ps ...predicate.UserNotificationLog)

Where appends a list predicates to the UserNotificationLogMutation builder.

func (*UserNotificationLogMutation) WhereP

func (m *UserNotificationLogMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the UserNotificationLogMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type UserNotificationLogQuery

UserNotificationLogQuery is the builder for querying UserNotificationLog entities.

type UserNotificationLogQuery struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogQuery) Aggregate

func (unlq *UserNotificationLogQuery) Aggregate(fns ...AggregateFunc) *UserNotificationLogSelect

Aggregate returns a UserNotificationLogSelect configured with the given aggregations.

func (*UserNotificationLogQuery) All

func (unlq *UserNotificationLogQuery) All(ctx context.Context) ([]*UserNotificationLog, error)

All executes the query and returns a list of UserNotificationLogs.

func (*UserNotificationLogQuery) AllX

func (unlq *UserNotificationLogQuery) AllX(ctx context.Context) []*UserNotificationLog

AllX is like All, but panics if an error occurs.

func (*UserNotificationLogQuery) Clone

func (unlq *UserNotificationLogQuery) Clone() *UserNotificationLogQuery

Clone returns a duplicate of the UserNotificationLogQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*UserNotificationLogQuery) Count

func (unlq *UserNotificationLogQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserNotificationLogQuery) CountX

func (unlq *UserNotificationLogQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*UserNotificationLogQuery) Exist

func (unlq *UserNotificationLogQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*UserNotificationLogQuery) ExistX

func (unlq *UserNotificationLogQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*UserNotificationLogQuery) Filter

func (unlq *UserNotificationLogQuery) Filter() *UserNotificationLogFilter

Filter returns a Filter implementation to apply filters on the UserNotificationLogQuery builder.

func (*UserNotificationLogQuery) First

func (unlq *UserNotificationLogQuery) First(ctx context.Context) (*UserNotificationLog, error)

First returns the first UserNotificationLog entity from the query. Returns a *NotFoundError when no UserNotificationLog was found.

func (*UserNotificationLogQuery) FirstID

func (unlq *UserNotificationLogQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first UserNotificationLog ID from the query. Returns a *NotFoundError when no UserNotificationLog ID was found.

func (*UserNotificationLogQuery) FirstIDX

func (unlq *UserNotificationLogQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*UserNotificationLogQuery) FirstX

func (unlq *UserNotificationLogQuery) FirstX(ctx context.Context) *UserNotificationLog

FirstX is like First, but panics if an error occurs.

func (*UserNotificationLogQuery) GroupBy

func (unlq *UserNotificationLogQuery) GroupBy(field string, fields ...string) *UserNotificationLogGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.UserNotificationLog.Query().
	GroupBy(usernotificationlog.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*UserNotificationLogQuery) IDs

func (unlq *UserNotificationLogQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of UserNotificationLog IDs.

func (*UserNotificationLogQuery) IDsX

func (unlq *UserNotificationLogQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*UserNotificationLogQuery) Limit

func (unlq *UserNotificationLogQuery) Limit(limit int) *UserNotificationLogQuery

Limit the number of records to be returned by this query.

func (*UserNotificationLogQuery) Offset

func (unlq *UserNotificationLogQuery) Offset(offset int) *UserNotificationLogQuery

Offset to start from.

func (*UserNotificationLogQuery) Only

func (unlq *UserNotificationLogQuery) Only(ctx context.Context) (*UserNotificationLog, error)

Only returns a single UserNotificationLog entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserNotificationLog entity is found. Returns a *NotFoundError when no UserNotificationLog entities are found.

func (*UserNotificationLogQuery) OnlyID

func (unlq *UserNotificationLogQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only UserNotificationLog ID in the query. Returns a *NotSingularError when more than one UserNotificationLog ID is found. Returns a *NotFoundError when no entities are found.

func (*UserNotificationLogQuery) OnlyIDX

func (unlq *UserNotificationLogQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*UserNotificationLogQuery) OnlyX

func (unlq *UserNotificationLogQuery) OnlyX(ctx context.Context) *UserNotificationLog

OnlyX is like Only, but panics if an error occurs.

func (*UserNotificationLogQuery) Order

func (unlq *UserNotificationLogQuery) Order(o ...usernotificationlog.Order) *UserNotificationLogQuery

Order specifies how the records should be ordered.

func (*UserNotificationLogQuery) QueryReceivers

func (unlq *UserNotificationLogQuery) QueryReceivers() *UserNotificationSettingQuery

QueryReceivers chains the current query on the "receivers" edge.

func (*UserNotificationLogQuery) Select

func (unlq *UserNotificationLogQuery) Select(fields ...string) *UserNotificationLogSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.UserNotificationLog.Query().
	Select(usernotificationlog.FieldCreatedAt).
	Scan(ctx, &v)

func (*UserNotificationLogQuery) Unique

func (unlq *UserNotificationLogQuery) Unique(unique bool) *UserNotificationLogQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*UserNotificationLogQuery) Where

func (unlq *UserNotificationLogQuery) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogQuery

Where adds a new predicate for the UserNotificationLogQuery builder.

func (*UserNotificationLogQuery) WithNamedReceivers

func (unlq *UserNotificationLogQuery) WithNamedReceivers(name string, opts ...func(*UserNotificationSettingQuery)) *UserNotificationLogQuery

WithNamedReceivers tells the query-builder to eager-load the nodes that are connected to the "receivers" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserNotificationLogQuery) WithReceivers

func (unlq *UserNotificationLogQuery) WithReceivers(opts ...func(*UserNotificationSettingQuery)) *UserNotificationLogQuery

WithReceivers tells the query-builder to eager-load the nodes that are connected to the "receivers" edge. The optional arguments are used to configure the query builder of the edge.

type UserNotificationLogSelect

UserNotificationLogSelect is the builder for selecting fields of UserNotificationLog entities.

type UserNotificationLogSelect struct {
    *UserNotificationLogQuery
    // contains filtered or unexported fields
}

func (*UserNotificationLogSelect) Aggregate

func (unls *UserNotificationLogSelect) Aggregate(fns ...AggregateFunc) *UserNotificationLogSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserNotificationLogSelect) Bool

func (s *UserNotificationLogSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) BoolX

func (s *UserNotificationLogSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserNotificationLogSelect) Bools

func (s *UserNotificationLogSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) BoolsX

func (s *UserNotificationLogSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserNotificationLogSelect) Float64

func (s *UserNotificationLogSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) Float64X

func (s *UserNotificationLogSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserNotificationLogSelect) Float64s

func (s *UserNotificationLogSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) Float64sX

func (s *UserNotificationLogSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserNotificationLogSelect) Int

func (s *UserNotificationLogSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) IntX

func (s *UserNotificationLogSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserNotificationLogSelect) Ints

func (s *UserNotificationLogSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) IntsX

func (s *UserNotificationLogSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserNotificationLogSelect) Scan

func (unls *UserNotificationLogSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserNotificationLogSelect) ScanX

func (s *UserNotificationLogSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserNotificationLogSelect) String

func (s *UserNotificationLogSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) StringX

func (s *UserNotificationLogSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserNotificationLogSelect) Strings

func (s *UserNotificationLogSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserNotificationLogSelect) StringsX

func (s *UserNotificationLogSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserNotificationLogUpdate

UserNotificationLogUpdate is the builder for updating UserNotificationLog entities.

type UserNotificationLogUpdate struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogUpdate) AddReceiverIDs

func (unlu *UserNotificationLogUpdate) AddReceiverIDs(ids ...int) *UserNotificationLogUpdate

AddReceiverIDs adds the "receivers" edge to the UserNotificationSetting entity by IDs.

func (*UserNotificationLogUpdate) AddReceivers

func (unlu *UserNotificationLogUpdate) AddReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdate

AddReceivers adds the "receivers" edges to the UserNotificationSetting entity.

func (*UserNotificationLogUpdate) ClearReceivers

func (unlu *UserNotificationLogUpdate) ClearReceivers() *UserNotificationLogUpdate

ClearReceivers clears all "receivers" edges to the UserNotificationSetting entity.

func (*UserNotificationLogUpdate) ClearUpdatedAt

func (unlu *UserNotificationLogUpdate) ClearUpdatedAt() *UserNotificationLogUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationLogUpdate) Exec

func (unlu *UserNotificationLogUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationLogUpdate) ExecX

func (unlu *UserNotificationLogUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogUpdate) Mutation

func (unlu *UserNotificationLogUpdate) Mutation() *UserNotificationLogMutation

Mutation returns the UserNotificationLogMutation object of the builder.

func (*UserNotificationLogUpdate) RemoveReceiverIDs

func (unlu *UserNotificationLogUpdate) RemoveReceiverIDs(ids ...int) *UserNotificationLogUpdate

RemoveReceiverIDs removes the "receivers" edge to UserNotificationSetting entities by IDs.

func (*UserNotificationLogUpdate) RemoveReceivers

func (unlu *UserNotificationLogUpdate) RemoveReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdate

RemoveReceivers removes "receivers" edges to UserNotificationSetting entities.

func (*UserNotificationLogUpdate) Save

func (unlu *UserNotificationLogUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*UserNotificationLogUpdate) SaveX

func (unlu *UserNotificationLogUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*UserNotificationLogUpdate) SetExpectedDeliveryTime

func (unlu *UserNotificationLogUpdate) SetExpectedDeliveryTime(t time.Time) *UserNotificationLogUpdate

SetExpectedDeliveryTime sets the "expected_delivery_time" field.

func (*UserNotificationLogUpdate) SetIsTest

func (unlu *UserNotificationLogUpdate) SetIsTest(b bool) *UserNotificationLogUpdate

SetIsTest sets the "is_test" field.

func (*UserNotificationLogUpdate) SetNillableStatus

func (unlu *UserNotificationLogUpdate) SetNillableStatus(ens *enums.UserNotificationStatus) *UserNotificationLogUpdate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserNotificationLogUpdate) SetNillableStatusMessage

func (unlu *UserNotificationLogUpdate) SetNillableStatusMessage(s *string) *UserNotificationLogUpdate

SetNillableStatusMessage sets the "status_message" field if the given value is not nil.

func (*UserNotificationLogUpdate) SetNillableUpdatedAt

func (unlu *UserNotificationLogUpdate) SetNillableUpdatedAt(t *time.Time) *UserNotificationLogUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserNotificationLogUpdate) SetReactNavigationMessage

func (unlu *UserNotificationLogUpdate) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush) *UserNotificationLogUpdate

SetReactNavigationMessage sets the "react_navigation_message" field.

func (*UserNotificationLogUpdate) SetStatus

func (unlu *UserNotificationLogUpdate) SetStatus(ens enums.UserNotificationStatus) *UserNotificationLogUpdate

SetStatus sets the "status" field.

func (*UserNotificationLogUpdate) SetStatusMessage

func (unlu *UserNotificationLogUpdate) SetStatusMessage(s string) *UserNotificationLogUpdate

SetStatusMessage sets the "status_message" field.

func (*UserNotificationLogUpdate) SetUpdatedAt

func (unlu *UserNotificationLogUpdate) SetUpdatedAt(t time.Time) *UserNotificationLogUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationLogUpdate) Where

func (unlu *UserNotificationLogUpdate) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogUpdate

Where appends a list predicates to the UserNotificationLogUpdate builder.

type UserNotificationLogUpdateOne

UserNotificationLogUpdateOne is the builder for updating a single UserNotificationLog entity.

type UserNotificationLogUpdateOne struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogUpdateOne) AddReceiverIDs

func (unluo *UserNotificationLogUpdateOne) AddReceiverIDs(ids ...int) *UserNotificationLogUpdateOne

AddReceiverIDs adds the "receivers" edge to the UserNotificationSetting entity by IDs.

func (*UserNotificationLogUpdateOne) AddReceivers

func (unluo *UserNotificationLogUpdateOne) AddReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdateOne

AddReceivers adds the "receivers" edges to the UserNotificationSetting entity.

func (*UserNotificationLogUpdateOne) ClearReceivers

func (unluo *UserNotificationLogUpdateOne) ClearReceivers() *UserNotificationLogUpdateOne

ClearReceivers clears all "receivers" edges to the UserNotificationSetting entity.

func (*UserNotificationLogUpdateOne) ClearUpdatedAt

func (unluo *UserNotificationLogUpdateOne) ClearUpdatedAt() *UserNotificationLogUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationLogUpdateOne) Exec

func (unluo *UserNotificationLogUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserNotificationLogUpdateOne) ExecX

func (unluo *UserNotificationLogUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogUpdateOne) Mutation

func (unluo *UserNotificationLogUpdateOne) Mutation() *UserNotificationLogMutation

Mutation returns the UserNotificationLogMutation object of the builder.

func (*UserNotificationLogUpdateOne) RemoveReceiverIDs

func (unluo *UserNotificationLogUpdateOne) RemoveReceiverIDs(ids ...int) *UserNotificationLogUpdateOne

RemoveReceiverIDs removes the "receivers" edge to UserNotificationSetting entities by IDs.

func (*UserNotificationLogUpdateOne) RemoveReceivers

func (unluo *UserNotificationLogUpdateOne) RemoveReceivers(u ...*UserNotificationSetting) *UserNotificationLogUpdateOne

RemoveReceivers removes "receivers" edges to UserNotificationSetting entities.

func (*UserNotificationLogUpdateOne) Save

func (unluo *UserNotificationLogUpdateOne) Save(ctx context.Context) (*UserNotificationLog, error)

Save executes the query and returns the updated UserNotificationLog entity.

func (*UserNotificationLogUpdateOne) SaveX

func (unluo *UserNotificationLogUpdateOne) SaveX(ctx context.Context) *UserNotificationLog

SaveX is like Save, but panics if an error occurs.

func (*UserNotificationLogUpdateOne) Select

func (unluo *UserNotificationLogUpdateOne) Select(field string, fields ...string) *UserNotificationLogUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*UserNotificationLogUpdateOne) SetExpectedDeliveryTime

func (unluo *UserNotificationLogUpdateOne) SetExpectedDeliveryTime(t time.Time) *UserNotificationLogUpdateOne

SetExpectedDeliveryTime sets the "expected_delivery_time" field.

func (*UserNotificationLogUpdateOne) SetIsTest

func (unluo *UserNotificationLogUpdateOne) SetIsTest(b bool) *UserNotificationLogUpdateOne

SetIsTest sets the "is_test" field.

func (*UserNotificationLogUpdateOne) SetNillableStatus

func (unluo *UserNotificationLogUpdateOne) SetNillableStatus(ens *enums.UserNotificationStatus) *UserNotificationLogUpdateOne

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserNotificationLogUpdateOne) SetNillableStatusMessage

func (unluo *UserNotificationLogUpdateOne) SetNillableStatusMessage(s *string) *UserNotificationLogUpdateOne

SetNillableStatusMessage sets the "status_message" field if the given value is not nil.

func (*UserNotificationLogUpdateOne) SetNillableUpdatedAt

func (unluo *UserNotificationLogUpdateOne) SetNillableUpdatedAt(t *time.Time) *UserNotificationLogUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserNotificationLogUpdateOne) SetReactNavigationMessage

func (unluo *UserNotificationLogUpdateOne) SetReactNavigationMessage(jnp jsonfields.ReactNavigationPush) *UserNotificationLogUpdateOne

SetReactNavigationMessage sets the "react_navigation_message" field.

func (*UserNotificationLogUpdateOne) SetStatus

func (unluo *UserNotificationLogUpdateOne) SetStatus(ens enums.UserNotificationStatus) *UserNotificationLogUpdateOne

SetStatus sets the "status" field.

func (*UserNotificationLogUpdateOne) SetStatusMessage

func (unluo *UserNotificationLogUpdateOne) SetStatusMessage(s string) *UserNotificationLogUpdateOne

SetStatusMessage sets the "status_message" field.

func (*UserNotificationLogUpdateOne) SetUpdatedAt

func (unluo *UserNotificationLogUpdateOne) SetUpdatedAt(t time.Time) *UserNotificationLogUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationLogUpdateOne) Where

func (unluo *UserNotificationLogUpdateOne) Where(ps ...predicate.UserNotificationLog) *UserNotificationLogUpdateOne

Where appends a list predicates to the UserNotificationLogUpdate builder.

type UserNotificationLogUpsert

UserNotificationLogUpsert is the "OnConflict" setter.

type UserNotificationLogUpsert struct {
    *sql.UpdateSet
}

func (*UserNotificationLogUpsert) ClearUpdatedAt

func (u *UserNotificationLogUpsert) ClearUpdatedAt() *UserNotificationLogUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationLogUpsert) SetExpectedDeliveryTime

func (u *UserNotificationLogUpsert) SetExpectedDeliveryTime(v time.Time) *UserNotificationLogUpsert

SetExpectedDeliveryTime sets the "expected_delivery_time" field.

func (*UserNotificationLogUpsert) SetIsTest

func (u *UserNotificationLogUpsert) SetIsTest(v bool) *UserNotificationLogUpsert

SetIsTest sets the "is_test" field.

func (*UserNotificationLogUpsert) SetReactNavigationMessage

func (u *UserNotificationLogUpsert) SetReactNavigationMessage(v jsonfields.ReactNavigationPush) *UserNotificationLogUpsert

SetReactNavigationMessage sets the "react_navigation_message" field.

func (*UserNotificationLogUpsert) SetStatus

func (u *UserNotificationLogUpsert) SetStatus(v enums.UserNotificationStatus) *UserNotificationLogUpsert

SetStatus sets the "status" field.

func (*UserNotificationLogUpsert) SetStatusMessage

func (u *UserNotificationLogUpsert) SetStatusMessage(v string) *UserNotificationLogUpsert

SetStatusMessage sets the "status_message" field.

func (*UserNotificationLogUpsert) SetUpdatedAt

func (u *UserNotificationLogUpsert) SetUpdatedAt(v time.Time) *UserNotificationLogUpsert

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationLogUpsert) UpdateExpectedDeliveryTime

func (u *UserNotificationLogUpsert) UpdateExpectedDeliveryTime() *UserNotificationLogUpsert

UpdateExpectedDeliveryTime sets the "expected_delivery_time" field to the value that was provided on create.

func (*UserNotificationLogUpsert) UpdateIsTest

func (u *UserNotificationLogUpsert) UpdateIsTest() *UserNotificationLogUpsert

UpdateIsTest sets the "is_test" field to the value that was provided on create.

func (*UserNotificationLogUpsert) UpdateReactNavigationMessage

func (u *UserNotificationLogUpsert) UpdateReactNavigationMessage() *UserNotificationLogUpsert

UpdateReactNavigationMessage sets the "react_navigation_message" field to the value that was provided on create.

func (*UserNotificationLogUpsert) UpdateStatus

func (u *UserNotificationLogUpsert) UpdateStatus() *UserNotificationLogUpsert

UpdateStatus sets the "status" field to the value that was provided on create.

func (*UserNotificationLogUpsert) UpdateStatusMessage

func (u *UserNotificationLogUpsert) UpdateStatusMessage() *UserNotificationLogUpsert

UpdateStatusMessage sets the "status_message" field to the value that was provided on create.

func (*UserNotificationLogUpsert) UpdateUpdatedAt

func (u *UserNotificationLogUpsert) UpdateUpdatedAt() *UserNotificationLogUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserNotificationLogUpsertBulk

UserNotificationLogUpsertBulk is the builder for "upsert"-ing a bulk of UserNotificationLog nodes.

type UserNotificationLogUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogUpsertBulk) ClearUpdatedAt

func (u *UserNotificationLogUpsertBulk) ClearUpdatedAt() *UserNotificationLogUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationLogUpsertBulk) DoNothing

func (u *UserNotificationLogUpsertBulk) DoNothing() *UserNotificationLogUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserNotificationLogUpsertBulk) Exec

func (u *UserNotificationLogUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationLogUpsertBulk) ExecX

func (u *UserNotificationLogUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogUpsertBulk) Ignore

func (u *UserNotificationLogUpsertBulk) Ignore() *UserNotificationLogUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.UserNotificationLog.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*UserNotificationLogUpsertBulk) SetExpectedDeliveryTime

func (u *UserNotificationLogUpsertBulk) SetExpectedDeliveryTime(v time.Time) *UserNotificationLogUpsertBulk

SetExpectedDeliveryTime sets the "expected_delivery_time" field.

func (*UserNotificationLogUpsertBulk) SetIsTest

func (u *UserNotificationLogUpsertBulk) SetIsTest(v bool) *UserNotificationLogUpsertBulk

SetIsTest sets the "is_test" field.

func (*UserNotificationLogUpsertBulk) SetReactNavigationMessage

func (u *UserNotificationLogUpsertBulk) SetReactNavigationMessage(v jsonfields.ReactNavigationPush) *UserNotificationLogUpsertBulk

SetReactNavigationMessage sets the "react_navigation_message" field.

func (*UserNotificationLogUpsertBulk) SetStatus

func (u *UserNotificationLogUpsertBulk) SetStatus(v enums.UserNotificationStatus) *UserNotificationLogUpsertBulk

SetStatus sets the "status" field.

func (*UserNotificationLogUpsertBulk) SetStatusMessage

func (u *UserNotificationLogUpsertBulk) SetStatusMessage(v string) *UserNotificationLogUpsertBulk

SetStatusMessage sets the "status_message" field.

func (*UserNotificationLogUpsertBulk) SetUpdatedAt

func (u *UserNotificationLogUpsertBulk) SetUpdatedAt(v time.Time) *UserNotificationLogUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationLogUpsertBulk) Update

func (u *UserNotificationLogUpsertBulk) Update(set func(*UserNotificationLogUpsert)) *UserNotificationLogUpsertBulk

Update allows overriding fields `UPDATE` values. See the UserNotificationLogCreateBulk.OnConflict documentation for more info.

func (*UserNotificationLogUpsertBulk) UpdateExpectedDeliveryTime

func (u *UserNotificationLogUpsertBulk) UpdateExpectedDeliveryTime() *UserNotificationLogUpsertBulk

UpdateExpectedDeliveryTime sets the "expected_delivery_time" field to the value that was provided on create.

func (*UserNotificationLogUpsertBulk) UpdateIsTest

func (u *UserNotificationLogUpsertBulk) UpdateIsTest() *UserNotificationLogUpsertBulk

UpdateIsTest sets the "is_test" field to the value that was provided on create.

func (*UserNotificationLogUpsertBulk) UpdateNewValues

func (u *UserNotificationLogUpsertBulk) UpdateNewValues() *UserNotificationLogUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.UserNotificationLog.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*UserNotificationLogUpsertBulk) UpdateReactNavigationMessage

func (u *UserNotificationLogUpsertBulk) UpdateReactNavigationMessage() *UserNotificationLogUpsertBulk

UpdateReactNavigationMessage sets the "react_navigation_message" field to the value that was provided on create.

func (*UserNotificationLogUpsertBulk) UpdateStatus

func (u *UserNotificationLogUpsertBulk) UpdateStatus() *UserNotificationLogUpsertBulk

UpdateStatus sets the "status" field to the value that was provided on create.

func (*UserNotificationLogUpsertBulk) UpdateStatusMessage

func (u *UserNotificationLogUpsertBulk) UpdateStatusMessage() *UserNotificationLogUpsertBulk

UpdateStatusMessage sets the "status_message" field to the value that was provided on create.

func (*UserNotificationLogUpsertBulk) UpdateUpdatedAt

func (u *UserNotificationLogUpsertBulk) UpdateUpdatedAt() *UserNotificationLogUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserNotificationLogUpsertOne

UserNotificationLogUpsertOne is the builder for "upsert"-ing

one UserNotificationLog node.
type UserNotificationLogUpsertOne struct {
    // contains filtered or unexported fields
}

func (*UserNotificationLogUpsertOne) ClearUpdatedAt

func (u *UserNotificationLogUpsertOne) ClearUpdatedAt() *UserNotificationLogUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationLogUpsertOne) DoNothing

func (u *UserNotificationLogUpsertOne) DoNothing() *UserNotificationLogUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserNotificationLogUpsertOne) Exec

func (u *UserNotificationLogUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationLogUpsertOne) ExecX

func (u *UserNotificationLogUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationLogUpsertOne) ID

func (u *UserNotificationLogUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*UserNotificationLogUpsertOne) IDX

func (u *UserNotificationLogUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*UserNotificationLogUpsertOne) Ignore

func (u *UserNotificationLogUpsertOne) Ignore() *UserNotificationLogUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.UserNotificationLog.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*UserNotificationLogUpsertOne) SetExpectedDeliveryTime

func (u *UserNotificationLogUpsertOne) SetExpectedDeliveryTime(v time.Time) *UserNotificationLogUpsertOne

SetExpectedDeliveryTime sets the "expected_delivery_time" field.

func (*UserNotificationLogUpsertOne) SetIsTest

func (u *UserNotificationLogUpsertOne) SetIsTest(v bool) *UserNotificationLogUpsertOne

SetIsTest sets the "is_test" field.

func (*UserNotificationLogUpsertOne) SetReactNavigationMessage

func (u *UserNotificationLogUpsertOne) SetReactNavigationMessage(v jsonfields.ReactNavigationPush) *UserNotificationLogUpsertOne

SetReactNavigationMessage sets the "react_navigation_message" field.

func (*UserNotificationLogUpsertOne) SetStatus

func (u *UserNotificationLogUpsertOne) SetStatus(v enums.UserNotificationStatus) *UserNotificationLogUpsertOne

SetStatus sets the "status" field.

func (*UserNotificationLogUpsertOne) SetStatusMessage

func (u *UserNotificationLogUpsertOne) SetStatusMessage(v string) *UserNotificationLogUpsertOne

SetStatusMessage sets the "status_message" field.

func (*UserNotificationLogUpsertOne) SetUpdatedAt

func (u *UserNotificationLogUpsertOne) SetUpdatedAt(v time.Time) *UserNotificationLogUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationLogUpsertOne) Update

func (u *UserNotificationLogUpsertOne) Update(set func(*UserNotificationLogUpsert)) *UserNotificationLogUpsertOne

Update allows overriding fields `UPDATE` values. See the UserNotificationLogCreate.OnConflict documentation for more info.

func (*UserNotificationLogUpsertOne) UpdateExpectedDeliveryTime

func (u *UserNotificationLogUpsertOne) UpdateExpectedDeliveryTime() *UserNotificationLogUpsertOne

UpdateExpectedDeliveryTime sets the "expected_delivery_time" field to the value that was provided on create.

func (*UserNotificationLogUpsertOne) UpdateIsTest

func (u *UserNotificationLogUpsertOne) UpdateIsTest() *UserNotificationLogUpsertOne

UpdateIsTest sets the "is_test" field to the value that was provided on create.

func (*UserNotificationLogUpsertOne) UpdateNewValues

func (u *UserNotificationLogUpsertOne) UpdateNewValues() *UserNotificationLogUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.UserNotificationLog.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*UserNotificationLogUpsertOne) UpdateReactNavigationMessage

func (u *UserNotificationLogUpsertOne) UpdateReactNavigationMessage() *UserNotificationLogUpsertOne

UpdateReactNavigationMessage sets the "react_navigation_message" field to the value that was provided on create.

func (*UserNotificationLogUpsertOne) UpdateStatus

func (u *UserNotificationLogUpsertOne) UpdateStatus() *UserNotificationLogUpsertOne

UpdateStatus sets the "status" field to the value that was provided on create.

func (*UserNotificationLogUpsertOne) UpdateStatusMessage

func (u *UserNotificationLogUpsertOne) UpdateStatusMessage() *UserNotificationLogUpsertOne

UpdateStatusMessage sets the "status_message" field to the value that was provided on create.

func (*UserNotificationLogUpsertOne) UpdateUpdatedAt

func (u *UserNotificationLogUpsertOne) UpdateUpdatedAt() *UserNotificationLogUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserNotificationLogs

UserNotificationLogs is a parsable slice of UserNotificationLog.

type UserNotificationLogs []*UserNotificationLog

type UserNotificationSetting

UserNotificationSetting is the model entity for the UserNotificationSetting schema.

type UserNotificationSetting struct {

    // ID of the ent.
    ID int `json:"id,omitempty"`
    // CreatedAt holds the value of the "created_at" field.
    CreatedAt time.Time `json:"created_at,omitempty"`
    // UpdatedAt holds the value of the "updated_at" field.
    UpdatedAt time.Time `json:"updated_at,omitempty"`
    // expo token
    Token string `json:"token,omitempty"`
    // expo slug value (project name)
    Slug string `json:"slug,omitempty"`
    // human friendly name (taken on client side)
    Name string `json:"name,omitempty"`
    // notify when a new post is created
    EnableNewPosts bool `json:"enable_new_posts,omitempty"`
    // notify when a payment is started
    EnablePaymentStart bool `json:"enable_payment_start,omitempty"`
    // notify when a payment due date is close
    EnablePaymentDue bool `json:"enable_payment_due,omitempty"`
    // OwnerUserID holds the value of the "owner_user_id" field.
    OwnerUserID *int `json:"owner_user_id,omitempty"`
    // Edges holds the relations/edges for other nodes in the graph.
    // The values are being populated by the UserNotificationSettingQuery when eager-loading is set.
    Edges UserNotificationSettingEdges `json:"edges"`
    // contains filtered or unexported fields
}

func (*UserNotificationSetting) IsNode

func (n *UserNotificationSetting) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*UserNotificationSetting) NamedNotificationLogs

func (uns *UserNotificationSetting) NamedNotificationLogs(name string) ([]*UserNotificationLog, error)

NamedNotificationLogs returns the NotificationLogs named value or an error if the edge was not loaded in eager-loading with this name.

func (*UserNotificationSetting) QueryNotificationLogs

func (uns *UserNotificationSetting) QueryNotificationLogs() *UserNotificationLogQuery

QueryNotificationLogs queries the "notification_logs" edge of the UserNotificationSetting entity.

func (*UserNotificationSetting) QueryUser

func (uns *UserNotificationSetting) QueryUser() *UserQuery

QueryUser queries the "user" edge of the UserNotificationSetting entity.

func (*UserNotificationSetting) String

func (uns *UserNotificationSetting) String() string

String implements the fmt.Stringer.

func (*UserNotificationSetting) ToEdge

func (uns *UserNotificationSetting) ToEdge(order *UserNotificationSettingOrder) *UserNotificationSettingEdge

ToEdge converts UserNotificationSetting into UserNotificationSettingEdge.

func (*UserNotificationSetting) Unwrap

func (uns *UserNotificationSetting) Unwrap() *UserNotificationSetting

Unwrap unwraps the UserNotificationSetting entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*UserNotificationSetting) Update

func (uns *UserNotificationSetting) Update() *UserNotificationSettingUpdateOne

Update returns a builder for updating this UserNotificationSetting. Note that you need to call UserNotificationSetting.Unwrap() before calling this method if this UserNotificationSetting was returned from a transaction, and the transaction was committed or rolled back.

func (*UserNotificationSetting) User

func (uns *UserNotificationSetting) User(ctx context.Context) (*User, error)

func (*UserNotificationSetting) Value

func (uns *UserNotificationSetting) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the UserNotificationSetting. This includes values selected through modifiers, order, etc.

type UserNotificationSettingClient

UserNotificationSettingClient is a client for the UserNotificationSetting schema.

type UserNotificationSettingClient struct {
    // contains filtered or unexported fields
}

func NewUserNotificationSettingClient

func NewUserNotificationSettingClient(c config) *UserNotificationSettingClient

NewUserNotificationSettingClient returns a client for the UserNotificationSetting from the given config.

func (*UserNotificationSettingClient) Create

func (c *UserNotificationSettingClient) Create() *UserNotificationSettingCreate

Create returns a builder for creating a UserNotificationSetting entity.

func (*UserNotificationSettingClient) CreateBulk

func (c *UserNotificationSettingClient) CreateBulk(builders ...*UserNotificationSettingCreate) *UserNotificationSettingCreateBulk

CreateBulk returns a builder for creating a bulk of UserNotificationSetting entities.

func (*UserNotificationSettingClient) Delete

func (c *UserNotificationSettingClient) Delete() *UserNotificationSettingDelete

Delete returns a delete builder for UserNotificationSetting.

func (*UserNotificationSettingClient) DeleteOne

func (c *UserNotificationSettingClient) DeleteOne(uns *UserNotificationSetting) *UserNotificationSettingDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserNotificationSettingClient) DeleteOneID

func (c *UserNotificationSettingClient) DeleteOneID(id int) *UserNotificationSettingDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*UserNotificationSettingClient) Get

func (c *UserNotificationSettingClient) Get(ctx context.Context, id int) (*UserNotificationSetting, error)

Get returns a UserNotificationSetting entity by its id.

func (*UserNotificationSettingClient) GetX

func (c *UserNotificationSettingClient) GetX(ctx context.Context, id int) *UserNotificationSetting

GetX is like Get, but panics if an error occurs.

func (*UserNotificationSettingClient) Hooks

func (c *UserNotificationSettingClient) Hooks() []Hook

Hooks returns the client hooks.

func (*UserNotificationSettingClient) Intercept

func (c *UserNotificationSettingClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usernotificationsetting.Intercept(f(g(h())))`.

func (*UserNotificationSettingClient) Interceptors

func (c *UserNotificationSettingClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*UserNotificationSettingClient) Query

func (c *UserNotificationSettingClient) Query() *UserNotificationSettingQuery

Query returns a query builder for UserNotificationSetting.

func (*UserNotificationSettingClient) QueryNotificationLogs

func (c *UserNotificationSettingClient) QueryNotificationLogs(uns *UserNotificationSetting) *UserNotificationLogQuery

QueryNotificationLogs queries the notification_logs edge of a UserNotificationSetting.

func (*UserNotificationSettingClient) QueryUser

func (c *UserNotificationSettingClient) QueryUser(uns *UserNotificationSetting) *UserQuery

QueryUser queries the user edge of a UserNotificationSetting.

func (*UserNotificationSettingClient) Update

func (c *UserNotificationSettingClient) Update() *UserNotificationSettingUpdate

Update returns an update builder for UserNotificationSetting.

func (*UserNotificationSettingClient) UpdateOne

func (c *UserNotificationSettingClient) UpdateOne(uns *UserNotificationSetting) *UserNotificationSettingUpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserNotificationSettingClient) UpdateOneID

func (c *UserNotificationSettingClient) UpdateOneID(id int) *UserNotificationSettingUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserNotificationSettingClient) Use

func (c *UserNotificationSettingClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usernotificationsetting.Hooks(f(g(h())))`.

type UserNotificationSettingConnection

UserNotificationSettingConnection is the connection containing edges to UserNotificationSetting.

type UserNotificationSettingConnection struct {
    Edges      []*UserNotificationSettingEdge `json:"edges"`
    PageInfo   PageInfo                       `json:"pageInfo"`
    TotalCount int                            `json:"totalCount"`
}

type UserNotificationSettingCreate

UserNotificationSettingCreate is the builder for creating a UserNotificationSetting entity.

type UserNotificationSettingCreate struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingCreate) AddNotificationLogIDs

func (unsc *UserNotificationSettingCreate) AddNotificationLogIDs(ids ...int) *UserNotificationSettingCreate

AddNotificationLogIDs adds the "notification_logs" edge to the UserNotificationLog entity by IDs.

func (*UserNotificationSettingCreate) AddNotificationLogs

func (unsc *UserNotificationSettingCreate) AddNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingCreate

AddNotificationLogs adds the "notification_logs" edges to the UserNotificationLog entity.

func (*UserNotificationSettingCreate) Exec

func (unsc *UserNotificationSettingCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationSettingCreate) ExecX

func (unsc *UserNotificationSettingCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingCreate) Mutation

func (unsc *UserNotificationSettingCreate) Mutation() *UserNotificationSettingMutation

Mutation returns the UserNotificationSettingMutation object of the builder.

func (*UserNotificationSettingCreate) OnConflict

func (unsc *UserNotificationSettingCreate) OnConflict(opts ...sql.ConflictOption) *UserNotificationSettingUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.UserNotificationSetting.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserNotificationSettingUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserNotificationSettingCreate) OnConflictColumns

func (unsc *UserNotificationSettingCreate) OnConflictColumns(columns ...string) *UserNotificationSettingUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.UserNotificationSetting.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserNotificationSettingCreate) Save

func (unsc *UserNotificationSettingCreate) Save(ctx context.Context) (*UserNotificationSetting, error)

Save creates the UserNotificationSetting in the database.

func (*UserNotificationSettingCreate) SaveX

func (unsc *UserNotificationSettingCreate) SaveX(ctx context.Context) *UserNotificationSetting

SaveX calls Save and panics if Save returns an error.

func (*UserNotificationSettingCreate) SetCreatedAt

func (unsc *UserNotificationSettingCreate) SetCreatedAt(t time.Time) *UserNotificationSettingCreate

SetCreatedAt sets the "created_at" field.

func (*UserNotificationSettingCreate) SetEnableNewPosts

func (unsc *UserNotificationSettingCreate) SetEnableNewPosts(b bool) *UserNotificationSettingCreate

SetEnableNewPosts sets the "enable_new_posts" field.

func (*UserNotificationSettingCreate) SetEnablePaymentDue

func (unsc *UserNotificationSettingCreate) SetEnablePaymentDue(b bool) *UserNotificationSettingCreate

SetEnablePaymentDue sets the "enable_payment_due" field.

func (*UserNotificationSettingCreate) SetEnablePaymentStart

func (unsc *UserNotificationSettingCreate) SetEnablePaymentStart(b bool) *UserNotificationSettingCreate

SetEnablePaymentStart sets the "enable_payment_start" field.

func (*UserNotificationSettingCreate) SetName

func (unsc *UserNotificationSettingCreate) SetName(s string) *UserNotificationSettingCreate

SetName sets the "name" field.

func (*UserNotificationSettingCreate) SetNillableCreatedAt

func (unsc *UserNotificationSettingCreate) SetNillableCreatedAt(t *time.Time) *UserNotificationSettingCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*UserNotificationSettingCreate) SetNillableOwnerUserID

func (unsc *UserNotificationSettingCreate) SetNillableOwnerUserID(i *int) *UserNotificationSettingCreate

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*UserNotificationSettingCreate) SetNillableUpdatedAt

func (unsc *UserNotificationSettingCreate) SetNillableUpdatedAt(t *time.Time) *UserNotificationSettingCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserNotificationSettingCreate) SetNillableUserID

func (unsc *UserNotificationSettingCreate) SetNillableUserID(id *int) *UserNotificationSettingCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserNotificationSettingCreate) SetOwnerUserID

func (unsc *UserNotificationSettingCreate) SetOwnerUserID(i int) *UserNotificationSettingCreate

SetOwnerUserID sets the "owner_user_id" field.

func (*UserNotificationSettingCreate) SetSlug

func (unsc *UserNotificationSettingCreate) SetSlug(s string) *UserNotificationSettingCreate

SetSlug sets the "slug" field.

func (*UserNotificationSettingCreate) SetToken

func (unsc *UserNotificationSettingCreate) SetToken(s string) *UserNotificationSettingCreate

SetToken sets the "token" field.

func (*UserNotificationSettingCreate) SetUpdatedAt

func (unsc *UserNotificationSettingCreate) SetUpdatedAt(t time.Time) *UserNotificationSettingCreate

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationSettingCreate) SetUser

func (unsc *UserNotificationSettingCreate) SetUser(u *User) *UserNotificationSettingCreate

SetUser sets the "user" edge to the User entity.

func (*UserNotificationSettingCreate) SetUserID

func (unsc *UserNotificationSettingCreate) SetUserID(id int) *UserNotificationSettingCreate

SetUserID sets the "user" edge to the User entity by ID.

type UserNotificationSettingCreateBulk

UserNotificationSettingCreateBulk is the builder for creating many UserNotificationSetting entities in bulk.

type UserNotificationSettingCreateBulk struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingCreateBulk) Exec

func (unscb *UserNotificationSettingCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationSettingCreateBulk) ExecX

func (unscb *UserNotificationSettingCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingCreateBulk) OnConflict

func (unscb *UserNotificationSettingCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNotificationSettingUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.UserNotificationSetting.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserNotificationSettingUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserNotificationSettingCreateBulk) OnConflictColumns

func (unscb *UserNotificationSettingCreateBulk) OnConflictColumns(columns ...string) *UserNotificationSettingUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.UserNotificationSetting.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserNotificationSettingCreateBulk) Save

func (unscb *UserNotificationSettingCreateBulk) Save(ctx context.Context) ([]*UserNotificationSetting, error)

Save creates the UserNotificationSetting entities in the database.

func (*UserNotificationSettingCreateBulk) SaveX

func (unscb *UserNotificationSettingCreateBulk) SaveX(ctx context.Context) []*UserNotificationSetting

SaveX is like Save, but panics if an error occurs.

type UserNotificationSettingDelete

UserNotificationSettingDelete is the builder for deleting a UserNotificationSetting entity.

type UserNotificationSettingDelete struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingDelete) Exec

func (unsd *UserNotificationSettingDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*UserNotificationSettingDelete) ExecX

func (unsd *UserNotificationSettingDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingDelete) Where

func (unsd *UserNotificationSettingDelete) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingDelete

Where appends a list predicates to the UserNotificationSettingDelete builder.

type UserNotificationSettingDeleteOne

UserNotificationSettingDeleteOne is the builder for deleting a single UserNotificationSetting entity.

type UserNotificationSettingDeleteOne struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingDeleteOne) Exec

func (unsdo *UserNotificationSettingDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserNotificationSettingDeleteOne) ExecX

func (unsdo *UserNotificationSettingDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingDeleteOne) Where

func (unsdo *UserNotificationSettingDeleteOne) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingDeleteOne

Where appends a list predicates to the UserNotificationSettingDelete builder.

type UserNotificationSettingEdge

UserNotificationSettingEdge is the edge representation of UserNotificationSetting.

type UserNotificationSettingEdge struct {
    Node   *UserNotificationSetting `json:"node"`
    Cursor Cursor                   `json:"cursor"`
}

type UserNotificationSettingEdges

UserNotificationSettingEdges holds the relations/edges for other nodes in the graph.

type UserNotificationSettingEdges struct {
    // User holds the value of the user edge.
    User *User `json:"user,omitempty"`
    // NotificationLogs holds the value of the notification_logs edge.
    NotificationLogs []*UserNotificationLog `json:"notification_logs,omitempty"`
    // contains filtered or unexported fields
}

func (UserNotificationSettingEdges) NotificationLogsOrErr

func (e UserNotificationSettingEdges) NotificationLogsOrErr() ([]*UserNotificationLog, error)

NotificationLogsOrErr returns the NotificationLogs value or an error if the edge was not loaded in eager-loading.

func (UserNotificationSettingEdges) UserOrErr

func (e UserNotificationSettingEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type UserNotificationSettingFilter

UserNotificationSettingFilter provides a generic filtering capability at runtime for UserNotificationSettingQuery.

type UserNotificationSettingFilter struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingFilter) Where

func (f *UserNotificationSettingFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*UserNotificationSettingFilter) WhereCreatedAt

func (f *UserNotificationSettingFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*UserNotificationSettingFilter) WhereEnableNewPosts

func (f *UserNotificationSettingFilter) WhereEnableNewPosts(p entql.BoolP)

WhereEnableNewPosts applies the entql bool predicate on the enable_new_posts field.

func (*UserNotificationSettingFilter) WhereEnablePaymentDue

func (f *UserNotificationSettingFilter) WhereEnablePaymentDue(p entql.BoolP)

WhereEnablePaymentDue applies the entql bool predicate on the enable_payment_due field.

func (*UserNotificationSettingFilter) WhereEnablePaymentStart

func (f *UserNotificationSettingFilter) WhereEnablePaymentStart(p entql.BoolP)

WhereEnablePaymentStart applies the entql bool predicate on the enable_payment_start field.

func (*UserNotificationSettingFilter) WhereHasNotificationLogs

func (f *UserNotificationSettingFilter) WhereHasNotificationLogs()

WhereHasNotificationLogs applies a predicate to check if query has an edge notification_logs.

func (*UserNotificationSettingFilter) WhereHasNotificationLogsWith

func (f *UserNotificationSettingFilter) WhereHasNotificationLogsWith(preds ...predicate.UserNotificationLog)

WhereHasNotificationLogsWith applies a predicate to check if query has an edge notification_logs with a given conditions (other predicates).

func (*UserNotificationSettingFilter) WhereHasUser

func (f *UserNotificationSettingFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*UserNotificationSettingFilter) WhereHasUserWith

func (f *UserNotificationSettingFilter) WhereHasUserWith(preds ...predicate.User)

WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates).

func (*UserNotificationSettingFilter) WhereID

func (f *UserNotificationSettingFilter) WhereID(p entql.IntP)

WhereID applies the entql int predicate on the id field.

func (*UserNotificationSettingFilter) WhereName

func (f *UserNotificationSettingFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*UserNotificationSettingFilter) WhereOwnerUserID

func (f *UserNotificationSettingFilter) WhereOwnerUserID(p entql.IntP)

WhereOwnerUserID applies the entql int predicate on the owner_user_id field.

func (*UserNotificationSettingFilter) WhereSlug

func (f *UserNotificationSettingFilter) WhereSlug(p entql.StringP)

WhereSlug applies the entql string predicate on the slug field.

func (*UserNotificationSettingFilter) WhereToken

func (f *UserNotificationSettingFilter) WhereToken(p entql.StringP)

WhereToken applies the entql string predicate on the token field.

func (*UserNotificationSettingFilter) WhereUpdatedAt

func (f *UserNotificationSettingFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

type UserNotificationSettingGroupBy

UserNotificationSettingGroupBy is the group-by builder for UserNotificationSetting entities.

type UserNotificationSettingGroupBy struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingGroupBy) Aggregate

func (unsgb *UserNotificationSettingGroupBy) Aggregate(fns ...AggregateFunc) *UserNotificationSettingGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*UserNotificationSettingGroupBy) Bool

func (s *UserNotificationSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) BoolX

func (s *UserNotificationSettingGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) Bools

func (s *UserNotificationSettingGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) BoolsX

func (s *UserNotificationSettingGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) Float64

func (s *UserNotificationSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) Float64X

func (s *UserNotificationSettingGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) Float64s

func (s *UserNotificationSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) Float64sX

func (s *UserNotificationSettingGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) Int

func (s *UserNotificationSettingGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) IntX

func (s *UserNotificationSettingGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) Ints

func (s *UserNotificationSettingGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) IntsX

func (s *UserNotificationSettingGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) Scan

func (unsgb *UserNotificationSettingGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserNotificationSettingGroupBy) ScanX

func (s *UserNotificationSettingGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) String

func (s *UserNotificationSettingGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) StringX

func (s *UserNotificationSettingGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserNotificationSettingGroupBy) Strings

func (s *UserNotificationSettingGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingGroupBy) StringsX

func (s *UserNotificationSettingGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserNotificationSettingMutation

UserNotificationSettingMutation represents an operation that mutates the UserNotificationSetting nodes in the graph.

type UserNotificationSettingMutation struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingMutation) AddField

func (m *UserNotificationSettingMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserNotificationSettingMutation) AddNotificationLogIDs

func (m *UserNotificationSettingMutation) AddNotificationLogIDs(ids ...int)

AddNotificationLogIDs adds the "notification_logs" edge to the UserNotificationLog entity by ids.

func (*UserNotificationSettingMutation) AddedEdges

func (m *UserNotificationSettingMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*UserNotificationSettingMutation) AddedField

func (m *UserNotificationSettingMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserNotificationSettingMutation) AddedFields

func (m *UserNotificationSettingMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*UserNotificationSettingMutation) AddedIDs

func (m *UserNotificationSettingMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*UserNotificationSettingMutation) ClearCreatedAt

func (m *UserNotificationSettingMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*UserNotificationSettingMutation) ClearEdge

func (m *UserNotificationSettingMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*UserNotificationSettingMutation) ClearField

func (m *UserNotificationSettingMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserNotificationSettingMutation) ClearNotificationLogs

func (m *UserNotificationSettingMutation) ClearNotificationLogs()

ClearNotificationLogs clears the "notification_logs" edge to the UserNotificationLog entity.

func (*UserNotificationSettingMutation) ClearOwnerUserID

func (m *UserNotificationSettingMutation) ClearOwnerUserID()

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*UserNotificationSettingMutation) ClearUpdatedAt

func (m *UserNotificationSettingMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationSettingMutation) ClearUser

func (m *UserNotificationSettingMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*UserNotificationSettingMutation) ClearedEdges

func (m *UserNotificationSettingMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*UserNotificationSettingMutation) ClearedFields

func (m *UserNotificationSettingMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (UserNotificationSettingMutation) Client

func (m UserNotificationSettingMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*UserNotificationSettingMutation) CreatedAt

func (m *UserNotificationSettingMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserNotificationSettingMutation) CreatedAtCleared

func (m *UserNotificationSettingMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*UserNotificationSettingMutation) EdgeCleared

func (m *UserNotificationSettingMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*UserNotificationSettingMutation) EnableNewPosts

func (m *UserNotificationSettingMutation) EnableNewPosts() (r bool, exists bool)

EnableNewPosts returns the value of the "enable_new_posts" field in the mutation.

func (*UserNotificationSettingMutation) EnablePaymentDue

func (m *UserNotificationSettingMutation) EnablePaymentDue() (r bool, exists bool)

EnablePaymentDue returns the value of the "enable_payment_due" field in the mutation.

func (*UserNotificationSettingMutation) EnablePaymentStart

func (m *UserNotificationSettingMutation) EnablePaymentStart() (r bool, exists bool)

EnablePaymentStart returns the value of the "enable_payment_start" field in the mutation.

func (*UserNotificationSettingMutation) Field

func (m *UserNotificationSettingMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserNotificationSettingMutation) FieldCleared

func (m *UserNotificationSettingMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*UserNotificationSettingMutation) Fields

func (m *UserNotificationSettingMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*UserNotificationSettingMutation) Filter

func (m *UserNotificationSettingMutation) Filter() *UserNotificationSettingFilter

Filter returns an entql.Where implementation to apply filters on the UserNotificationSettingMutation builder.

func (*UserNotificationSettingMutation) ID

func (m *UserNotificationSettingMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*UserNotificationSettingMutation) IDs

func (m *UserNotificationSettingMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*UserNotificationSettingMutation) Name

func (m *UserNotificationSettingMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*UserNotificationSettingMutation) NotificationLogsCleared

func (m *UserNotificationSettingMutation) NotificationLogsCleared() bool

NotificationLogsCleared reports if the "notification_logs" edge to the UserNotificationLog entity was cleared.

func (*UserNotificationSettingMutation) NotificationLogsIDs

func (m *UserNotificationSettingMutation) NotificationLogsIDs() (ids []int)

NotificationLogsIDs returns the "notification_logs" edge IDs in the mutation.

func (*UserNotificationSettingMutation) OldCreatedAt

func (m *UserNotificationSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldEnableNewPosts

func (m *UserNotificationSettingMutation) OldEnableNewPosts(ctx context.Context) (v bool, err error)

OldEnableNewPosts returns the old "enable_new_posts" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldEnablePaymentDue

func (m *UserNotificationSettingMutation) OldEnablePaymentDue(ctx context.Context) (v bool, err error)

OldEnablePaymentDue returns the old "enable_payment_due" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldEnablePaymentStart

func (m *UserNotificationSettingMutation) OldEnablePaymentStart(ctx context.Context) (v bool, err error)

OldEnablePaymentStart returns the old "enable_payment_start" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldField

func (m *UserNotificationSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*UserNotificationSettingMutation) OldName

func (m *UserNotificationSettingMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldOwnerUserID

func (m *UserNotificationSettingMutation) OldOwnerUserID(ctx context.Context) (v *int, err error)

OldOwnerUserID returns the old "owner_user_id" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldSlug

func (m *UserNotificationSettingMutation) OldSlug(ctx context.Context) (v string, err error)

OldSlug returns the old "slug" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldToken

func (m *UserNotificationSettingMutation) OldToken(ctx context.Context) (v string, err error)

OldToken returns the old "token" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) OldUpdatedAt

func (m *UserNotificationSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the UserNotificationSetting entity. If the UserNotificationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserNotificationSettingMutation) Op

func (m *UserNotificationSettingMutation) Op() Op

Op returns the operation name.

func (*UserNotificationSettingMutation) OwnerUserID

func (m *UserNotificationSettingMutation) OwnerUserID() (r int, exists bool)

OwnerUserID returns the value of the "owner_user_id" field in the mutation.

func (*UserNotificationSettingMutation) OwnerUserIDCleared

func (m *UserNotificationSettingMutation) OwnerUserIDCleared() bool

OwnerUserIDCleared returns if the "owner_user_id" field was cleared in this mutation.

func (*UserNotificationSettingMutation) RemoveNotificationLogIDs

func (m *UserNotificationSettingMutation) RemoveNotificationLogIDs(ids ...int)

RemoveNotificationLogIDs removes the "notification_logs" edge to the UserNotificationLog entity by IDs.

func (*UserNotificationSettingMutation) RemovedEdges

func (m *UserNotificationSettingMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*UserNotificationSettingMutation) RemovedIDs

func (m *UserNotificationSettingMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*UserNotificationSettingMutation) RemovedNotificationLogsIDs

func (m *UserNotificationSettingMutation) RemovedNotificationLogsIDs() (ids []int)

RemovedNotificationLogs returns the removed IDs of the "notification_logs" edge to the UserNotificationLog entity.

func (*UserNotificationSettingMutation) ResetCreatedAt

func (m *UserNotificationSettingMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserNotificationSettingMutation) ResetEdge

func (m *UserNotificationSettingMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*UserNotificationSettingMutation) ResetEnableNewPosts

func (m *UserNotificationSettingMutation) ResetEnableNewPosts()

ResetEnableNewPosts resets all changes to the "enable_new_posts" field.

func (*UserNotificationSettingMutation) ResetEnablePaymentDue

func (m *UserNotificationSettingMutation) ResetEnablePaymentDue()

ResetEnablePaymentDue resets all changes to the "enable_payment_due" field.

func (*UserNotificationSettingMutation) ResetEnablePaymentStart

func (m *UserNotificationSettingMutation) ResetEnablePaymentStart()

ResetEnablePaymentStart resets all changes to the "enable_payment_start" field.

func (*UserNotificationSettingMutation) ResetField

func (m *UserNotificationSettingMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserNotificationSettingMutation) ResetName

func (m *UserNotificationSettingMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*UserNotificationSettingMutation) ResetNotificationLogs

func (m *UserNotificationSettingMutation) ResetNotificationLogs()

ResetNotificationLogs resets all changes to the "notification_logs" edge.

func (*UserNotificationSettingMutation) ResetOwnerUserID

func (m *UserNotificationSettingMutation) ResetOwnerUserID()

ResetOwnerUserID resets all changes to the "owner_user_id" field.

func (*UserNotificationSettingMutation) ResetSlug

func (m *UserNotificationSettingMutation) ResetSlug()

ResetSlug resets all changes to the "slug" field.

func (*UserNotificationSettingMutation) ResetToken

func (m *UserNotificationSettingMutation) ResetToken()

ResetToken resets all changes to the "token" field.

func (*UserNotificationSettingMutation) ResetUpdatedAt

func (m *UserNotificationSettingMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserNotificationSettingMutation) ResetUser

func (m *UserNotificationSettingMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*UserNotificationSettingMutation) SetCreatedAt

func (m *UserNotificationSettingMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserNotificationSettingMutation) SetEnableNewPosts

func (m *UserNotificationSettingMutation) SetEnableNewPosts(b bool)

SetEnableNewPosts sets the "enable_new_posts" field.

func (*UserNotificationSettingMutation) SetEnablePaymentDue

func (m *UserNotificationSettingMutation) SetEnablePaymentDue(b bool)

SetEnablePaymentDue sets the "enable_payment_due" field.

func (*UserNotificationSettingMutation) SetEnablePaymentStart

func (m *UserNotificationSettingMutation) SetEnablePaymentStart(b bool)

SetEnablePaymentStart sets the "enable_payment_start" field.

func (*UserNotificationSettingMutation) SetField

func (m *UserNotificationSettingMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserNotificationSettingMutation) SetName

func (m *UserNotificationSettingMutation) SetName(s string)

SetName sets the "name" field.

func (*UserNotificationSettingMutation) SetOp

func (m *UserNotificationSettingMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserNotificationSettingMutation) SetOwnerUserID

func (m *UserNotificationSettingMutation) SetOwnerUserID(i int)

SetOwnerUserID sets the "owner_user_id" field.

func (*UserNotificationSettingMutation) SetSlug

func (m *UserNotificationSettingMutation) SetSlug(s string)

SetSlug sets the "slug" field.

func (*UserNotificationSettingMutation) SetToken

func (m *UserNotificationSettingMutation) SetToken(s string)

SetToken sets the "token" field.

func (*UserNotificationSettingMutation) SetUpdatedAt

func (m *UserNotificationSettingMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationSettingMutation) SetUserID

func (m *UserNotificationSettingMutation) SetUserID(id int)

SetUserID sets the "user" edge to the User entity by id.

func (*UserNotificationSettingMutation) Slug

func (m *UserNotificationSettingMutation) Slug() (r string, exists bool)

Slug returns the value of the "slug" field in the mutation.

func (*UserNotificationSettingMutation) Token

func (m *UserNotificationSettingMutation) Token() (r string, exists bool)

Token returns the value of the "token" field in the mutation.

func (UserNotificationSettingMutation) Tx

func (m UserNotificationSettingMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*UserNotificationSettingMutation) Type

func (m *UserNotificationSettingMutation) Type() string

Type returns the node type of this mutation (UserNotificationSetting).

func (*UserNotificationSettingMutation) UpdatedAt

func (m *UserNotificationSettingMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*UserNotificationSettingMutation) UpdatedAtCleared

func (m *UserNotificationSettingMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*UserNotificationSettingMutation) UserCleared

func (m *UserNotificationSettingMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*UserNotificationSettingMutation) UserID

func (m *UserNotificationSettingMutation) UserID() (id int, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*UserNotificationSettingMutation) UserIDs

func (m *UserNotificationSettingMutation) UserIDs() (ids []int)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*UserNotificationSettingMutation) Where

func (m *UserNotificationSettingMutation) Where(ps ...predicate.UserNotificationSetting)

Where appends a list predicates to the UserNotificationSettingMutation builder.

func (*UserNotificationSettingMutation) WhereP

func (m *UserNotificationSettingMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the UserNotificationSettingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type UserNotificationSettingOrder

UserNotificationSettingOrder defines the ordering of UserNotificationSetting.

type UserNotificationSettingOrder struct {
    Direction OrderDirection                     `json:"direction"`
    Field     *UserNotificationSettingOrderField `json:"field"`
}

type UserNotificationSettingOrderField

UserNotificationSettingOrderField defines the ordering field of UserNotificationSetting.

type UserNotificationSettingOrderField struct {
    // contains filtered or unexported fields
}

type UserNotificationSettingPaginateOption

UserNotificationSettingPaginateOption enables pagination customization.

type UserNotificationSettingPaginateOption func(*usernotificationsettingPager) error

func WithUserNotificationSettingFilter

func WithUserNotificationSettingFilter(filter func(*UserNotificationSettingQuery) (*UserNotificationSettingQuery, error)) UserNotificationSettingPaginateOption

WithUserNotificationSettingFilter configures pagination filter.

func WithUserNotificationSettingOrder

func WithUserNotificationSettingOrder(order *UserNotificationSettingOrder) UserNotificationSettingPaginateOption

WithUserNotificationSettingOrder configures pagination ordering.

type UserNotificationSettingQuery

UserNotificationSettingQuery is the builder for querying UserNotificationSetting entities.

type UserNotificationSettingQuery struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingQuery) Aggregate

func (unsq *UserNotificationSettingQuery) Aggregate(fns ...AggregateFunc) *UserNotificationSettingSelect

Aggregate returns a UserNotificationSettingSelect configured with the given aggregations.

func (*UserNotificationSettingQuery) All

func (unsq *UserNotificationSettingQuery) All(ctx context.Context) ([]*UserNotificationSetting, error)

All executes the query and returns a list of UserNotificationSettings.

func (*UserNotificationSettingQuery) AllX

func (unsq *UserNotificationSettingQuery) AllX(ctx context.Context) []*UserNotificationSetting

AllX is like All, but panics if an error occurs.

func (*UserNotificationSettingQuery) Clone

func (unsq *UserNotificationSettingQuery) Clone() *UserNotificationSettingQuery

Clone returns a duplicate of the UserNotificationSettingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*UserNotificationSettingQuery) CollectFields

func (uns *UserNotificationSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserNotificationSettingQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*UserNotificationSettingQuery) Count

func (unsq *UserNotificationSettingQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserNotificationSettingQuery) CountX

func (unsq *UserNotificationSettingQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*UserNotificationSettingQuery) Exist

func (unsq *UserNotificationSettingQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*UserNotificationSettingQuery) ExistX

func (unsq *UserNotificationSettingQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*UserNotificationSettingQuery) Filter

func (unsq *UserNotificationSettingQuery) Filter() *UserNotificationSettingFilter

Filter returns a Filter implementation to apply filters on the UserNotificationSettingQuery builder.

func (*UserNotificationSettingQuery) First

func (unsq *UserNotificationSettingQuery) First(ctx context.Context) (*UserNotificationSetting, error)

First returns the first UserNotificationSetting entity from the query. Returns a *NotFoundError when no UserNotificationSetting was found.

func (*UserNotificationSettingQuery) FirstID

func (unsq *UserNotificationSettingQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first UserNotificationSetting ID from the query. Returns a *NotFoundError when no UserNotificationSetting ID was found.

func (*UserNotificationSettingQuery) FirstIDX

func (unsq *UserNotificationSettingQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*UserNotificationSettingQuery) FirstX

func (unsq *UserNotificationSettingQuery) FirstX(ctx context.Context) *UserNotificationSetting

FirstX is like First, but panics if an error occurs.

func (*UserNotificationSettingQuery) GroupBy

func (unsq *UserNotificationSettingQuery) GroupBy(field string, fields ...string) *UserNotificationSettingGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.UserNotificationSetting.Query().
	GroupBy(usernotificationsetting.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*UserNotificationSettingQuery) IDs

func (unsq *UserNotificationSettingQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of UserNotificationSetting IDs.

func (*UserNotificationSettingQuery) IDsX

func (unsq *UserNotificationSettingQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*UserNotificationSettingQuery) Limit

func (unsq *UserNotificationSettingQuery) Limit(limit int) *UserNotificationSettingQuery

Limit the number of records to be returned by this query.

func (*UserNotificationSettingQuery) Offset

func (unsq *UserNotificationSettingQuery) Offset(offset int) *UserNotificationSettingQuery

Offset to start from.

func (*UserNotificationSettingQuery) Only

func (unsq *UserNotificationSettingQuery) Only(ctx context.Context) (*UserNotificationSetting, error)

Only returns a single UserNotificationSetting entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserNotificationSetting entity is found. Returns a *NotFoundError when no UserNotificationSetting entities are found.

func (*UserNotificationSettingQuery) OnlyID

func (unsq *UserNotificationSettingQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only UserNotificationSetting ID in the query. Returns a *NotSingularError when more than one UserNotificationSetting ID is found. Returns a *NotFoundError when no entities are found.

func (*UserNotificationSettingQuery) OnlyIDX

func (unsq *UserNotificationSettingQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*UserNotificationSettingQuery) OnlyX

func (unsq *UserNotificationSettingQuery) OnlyX(ctx context.Context) *UserNotificationSetting

OnlyX is like Only, but panics if an error occurs.

func (*UserNotificationSettingQuery) Order

func (unsq *UserNotificationSettingQuery) Order(o ...usernotificationsetting.Order) *UserNotificationSettingQuery

Order specifies how the records should be ordered.

func (*UserNotificationSettingQuery) Paginate

func (uns *UserNotificationSettingQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...UserNotificationSettingPaginateOption,
) (*UserNotificationSettingConnection, error)

Paginate executes the query and returns a relay based cursor connection to UserNotificationSetting.

func (*UserNotificationSettingQuery) QueryNotificationLogs

func (unsq *UserNotificationSettingQuery) QueryNotificationLogs() *UserNotificationLogQuery

QueryNotificationLogs chains the current query on the "notification_logs" edge.

func (*UserNotificationSettingQuery) QueryUser

func (unsq *UserNotificationSettingQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*UserNotificationSettingQuery) Select

func (unsq *UserNotificationSettingQuery) Select(fields ...string) *UserNotificationSettingSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.UserNotificationSetting.Query().
	Select(usernotificationsetting.FieldCreatedAt).
	Scan(ctx, &v)

func (*UserNotificationSettingQuery) Unique

func (unsq *UserNotificationSettingQuery) Unique(unique bool) *UserNotificationSettingQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*UserNotificationSettingQuery) Where

func (unsq *UserNotificationSettingQuery) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingQuery

Where adds a new predicate for the UserNotificationSettingQuery builder.

func (*UserNotificationSettingQuery) WithNamedNotificationLogs

func (unsq *UserNotificationSettingQuery) WithNamedNotificationLogs(name string, opts ...func(*UserNotificationLogQuery)) *UserNotificationSettingQuery

WithNamedNotificationLogs tells the query-builder to eager-load the nodes that are connected to the "notification_logs" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserNotificationSettingQuery) WithNotificationLogs

func (unsq *UserNotificationSettingQuery) WithNotificationLogs(opts ...func(*UserNotificationLogQuery)) *UserNotificationSettingQuery

WithNotificationLogs tells the query-builder to eager-load the nodes that are connected to the "notification_logs" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserNotificationSettingQuery) WithUser

func (unsq *UserNotificationSettingQuery) WithUser(opts ...func(*UserQuery)) *UserNotificationSettingQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type UserNotificationSettingSelect

UserNotificationSettingSelect is the builder for selecting fields of UserNotificationSetting entities.

type UserNotificationSettingSelect struct {
    *UserNotificationSettingQuery
    // contains filtered or unexported fields
}

func (*UserNotificationSettingSelect) Aggregate

func (unss *UserNotificationSettingSelect) Aggregate(fns ...AggregateFunc) *UserNotificationSettingSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserNotificationSettingSelect) Bool

func (s *UserNotificationSettingSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) BoolX

func (s *UserNotificationSettingSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserNotificationSettingSelect) Bools

func (s *UserNotificationSettingSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) BoolsX

func (s *UserNotificationSettingSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserNotificationSettingSelect) Float64

func (s *UserNotificationSettingSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) Float64X

func (s *UserNotificationSettingSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserNotificationSettingSelect) Float64s

func (s *UserNotificationSettingSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) Float64sX

func (s *UserNotificationSettingSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserNotificationSettingSelect) Int

func (s *UserNotificationSettingSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) IntX

func (s *UserNotificationSettingSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserNotificationSettingSelect) Ints

func (s *UserNotificationSettingSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) IntsX

func (s *UserNotificationSettingSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserNotificationSettingSelect) Scan

func (unss *UserNotificationSettingSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserNotificationSettingSelect) ScanX

func (s *UserNotificationSettingSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserNotificationSettingSelect) String

func (s *UserNotificationSettingSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) StringX

func (s *UserNotificationSettingSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserNotificationSettingSelect) Strings

func (s *UserNotificationSettingSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserNotificationSettingSelect) StringsX

func (s *UserNotificationSettingSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserNotificationSettingUpdate

UserNotificationSettingUpdate is the builder for updating UserNotificationSetting entities.

type UserNotificationSettingUpdate struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingUpdate) AddNotificationLogIDs

func (unsu *UserNotificationSettingUpdate) AddNotificationLogIDs(ids ...int) *UserNotificationSettingUpdate

AddNotificationLogIDs adds the "notification_logs" edge to the UserNotificationLog entity by IDs.

func (*UserNotificationSettingUpdate) AddNotificationLogs

func (unsu *UserNotificationSettingUpdate) AddNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdate

AddNotificationLogs adds the "notification_logs" edges to the UserNotificationLog entity.

func (*UserNotificationSettingUpdate) ClearNotificationLogs

func (unsu *UserNotificationSettingUpdate) ClearNotificationLogs() *UserNotificationSettingUpdate

ClearNotificationLogs clears all "notification_logs" edges to the UserNotificationLog entity.

func (*UserNotificationSettingUpdate) ClearOwnerUserID

func (unsu *UserNotificationSettingUpdate) ClearOwnerUserID() *UserNotificationSettingUpdate

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*UserNotificationSettingUpdate) ClearUpdatedAt

func (unsu *UserNotificationSettingUpdate) ClearUpdatedAt() *UserNotificationSettingUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationSettingUpdate) ClearUser

func (unsu *UserNotificationSettingUpdate) ClearUser() *UserNotificationSettingUpdate

ClearUser clears the "user" edge to the User entity.

func (*UserNotificationSettingUpdate) Exec

func (unsu *UserNotificationSettingUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationSettingUpdate) ExecX

func (unsu *UserNotificationSettingUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingUpdate) Mutation

func (unsu *UserNotificationSettingUpdate) Mutation() *UserNotificationSettingMutation

Mutation returns the UserNotificationSettingMutation object of the builder.

func (*UserNotificationSettingUpdate) RemoveNotificationLogIDs

func (unsu *UserNotificationSettingUpdate) RemoveNotificationLogIDs(ids ...int) *UserNotificationSettingUpdate

RemoveNotificationLogIDs removes the "notification_logs" edge to UserNotificationLog entities by IDs.

func (*UserNotificationSettingUpdate) RemoveNotificationLogs

func (unsu *UserNotificationSettingUpdate) RemoveNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdate

RemoveNotificationLogs removes "notification_logs" edges to UserNotificationLog entities.

func (*UserNotificationSettingUpdate) Save

func (unsu *UserNotificationSettingUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*UserNotificationSettingUpdate) SaveX

func (unsu *UserNotificationSettingUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*UserNotificationSettingUpdate) SetEnableNewPosts

func (unsu *UserNotificationSettingUpdate) SetEnableNewPosts(b bool) *UserNotificationSettingUpdate

SetEnableNewPosts sets the "enable_new_posts" field.

func (*UserNotificationSettingUpdate) SetEnablePaymentDue

func (unsu *UserNotificationSettingUpdate) SetEnablePaymentDue(b bool) *UserNotificationSettingUpdate

SetEnablePaymentDue sets the "enable_payment_due" field.

func (*UserNotificationSettingUpdate) SetEnablePaymentStart

func (unsu *UserNotificationSettingUpdate) SetEnablePaymentStart(b bool) *UserNotificationSettingUpdate

SetEnablePaymentStart sets the "enable_payment_start" field.

func (*UserNotificationSettingUpdate) SetName

func (unsu *UserNotificationSettingUpdate) SetName(s string) *UserNotificationSettingUpdate

SetName sets the "name" field.

func (*UserNotificationSettingUpdate) SetNillableOwnerUserID

func (unsu *UserNotificationSettingUpdate) SetNillableOwnerUserID(i *int) *UserNotificationSettingUpdate

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*UserNotificationSettingUpdate) SetNillableUpdatedAt

func (unsu *UserNotificationSettingUpdate) SetNillableUpdatedAt(t *time.Time) *UserNotificationSettingUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserNotificationSettingUpdate) SetNillableUserID

func (unsu *UserNotificationSettingUpdate) SetNillableUserID(id *int) *UserNotificationSettingUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserNotificationSettingUpdate) SetOwnerUserID

func (unsu *UserNotificationSettingUpdate) SetOwnerUserID(i int) *UserNotificationSettingUpdate

SetOwnerUserID sets the "owner_user_id" field.

func (*UserNotificationSettingUpdate) SetSlug

func (unsu *UserNotificationSettingUpdate) SetSlug(s string) *UserNotificationSettingUpdate

SetSlug sets the "slug" field.

func (*UserNotificationSettingUpdate) SetToken

func (unsu *UserNotificationSettingUpdate) SetToken(s string) *UserNotificationSettingUpdate

SetToken sets the "token" field.

func (*UserNotificationSettingUpdate) SetUpdatedAt

func (unsu *UserNotificationSettingUpdate) SetUpdatedAt(t time.Time) *UserNotificationSettingUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationSettingUpdate) SetUser

func (unsu *UserNotificationSettingUpdate) SetUser(u *User) *UserNotificationSettingUpdate

SetUser sets the "user" edge to the User entity.

func (*UserNotificationSettingUpdate) SetUserID

func (unsu *UserNotificationSettingUpdate) SetUserID(id int) *UserNotificationSettingUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*UserNotificationSettingUpdate) Where

func (unsu *UserNotificationSettingUpdate) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingUpdate

Where appends a list predicates to the UserNotificationSettingUpdate builder.

type UserNotificationSettingUpdateOne

UserNotificationSettingUpdateOne is the builder for updating a single UserNotificationSetting entity.

type UserNotificationSettingUpdateOne struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingUpdateOne) AddNotificationLogIDs

func (unsuo *UserNotificationSettingUpdateOne) AddNotificationLogIDs(ids ...int) *UserNotificationSettingUpdateOne

AddNotificationLogIDs adds the "notification_logs" edge to the UserNotificationLog entity by IDs.

func (*UserNotificationSettingUpdateOne) AddNotificationLogs

func (unsuo *UserNotificationSettingUpdateOne) AddNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdateOne

AddNotificationLogs adds the "notification_logs" edges to the UserNotificationLog entity.

func (*UserNotificationSettingUpdateOne) ClearNotificationLogs

func (unsuo *UserNotificationSettingUpdateOne) ClearNotificationLogs() *UserNotificationSettingUpdateOne

ClearNotificationLogs clears all "notification_logs" edges to the UserNotificationLog entity.

func (*UserNotificationSettingUpdateOne) ClearOwnerUserID

func (unsuo *UserNotificationSettingUpdateOne) ClearOwnerUserID() *UserNotificationSettingUpdateOne

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*UserNotificationSettingUpdateOne) ClearUpdatedAt

func (unsuo *UserNotificationSettingUpdateOne) ClearUpdatedAt() *UserNotificationSettingUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationSettingUpdateOne) ClearUser

func (unsuo *UserNotificationSettingUpdateOne) ClearUser() *UserNotificationSettingUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*UserNotificationSettingUpdateOne) Exec

func (unsuo *UserNotificationSettingUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserNotificationSettingUpdateOne) ExecX

func (unsuo *UserNotificationSettingUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingUpdateOne) Mutation

func (unsuo *UserNotificationSettingUpdateOne) Mutation() *UserNotificationSettingMutation

Mutation returns the UserNotificationSettingMutation object of the builder.

func (*UserNotificationSettingUpdateOne) RemoveNotificationLogIDs

func (unsuo *UserNotificationSettingUpdateOne) RemoveNotificationLogIDs(ids ...int) *UserNotificationSettingUpdateOne

RemoveNotificationLogIDs removes the "notification_logs" edge to UserNotificationLog entities by IDs.

func (*UserNotificationSettingUpdateOne) RemoveNotificationLogs

func (unsuo *UserNotificationSettingUpdateOne) RemoveNotificationLogs(u ...*UserNotificationLog) *UserNotificationSettingUpdateOne

RemoveNotificationLogs removes "notification_logs" edges to UserNotificationLog entities.

func (*UserNotificationSettingUpdateOne) Save

func (unsuo *UserNotificationSettingUpdateOne) Save(ctx context.Context) (*UserNotificationSetting, error)

Save executes the query and returns the updated UserNotificationSetting entity.

func (*UserNotificationSettingUpdateOne) SaveX

func (unsuo *UserNotificationSettingUpdateOne) SaveX(ctx context.Context) *UserNotificationSetting

SaveX is like Save, but panics if an error occurs.

func (*UserNotificationSettingUpdateOne) Select

func (unsuo *UserNotificationSettingUpdateOne) Select(field string, fields ...string) *UserNotificationSettingUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*UserNotificationSettingUpdateOne) SetEnableNewPosts

func (unsuo *UserNotificationSettingUpdateOne) SetEnableNewPosts(b bool) *UserNotificationSettingUpdateOne

SetEnableNewPosts sets the "enable_new_posts" field.

func (*UserNotificationSettingUpdateOne) SetEnablePaymentDue

func (unsuo *UserNotificationSettingUpdateOne) SetEnablePaymentDue(b bool) *UserNotificationSettingUpdateOne

SetEnablePaymentDue sets the "enable_payment_due" field.

func (*UserNotificationSettingUpdateOne) SetEnablePaymentStart

func (unsuo *UserNotificationSettingUpdateOne) SetEnablePaymentStart(b bool) *UserNotificationSettingUpdateOne

SetEnablePaymentStart sets the "enable_payment_start" field.

func (*UserNotificationSettingUpdateOne) SetName

func (unsuo *UserNotificationSettingUpdateOne) SetName(s string) *UserNotificationSettingUpdateOne

SetName sets the "name" field.

func (*UserNotificationSettingUpdateOne) SetNillableOwnerUserID

func (unsuo *UserNotificationSettingUpdateOne) SetNillableOwnerUserID(i *int) *UserNotificationSettingUpdateOne

SetNillableOwnerUserID sets the "owner_user_id" field if the given value is not nil.

func (*UserNotificationSettingUpdateOne) SetNillableUpdatedAt

func (unsuo *UserNotificationSettingUpdateOne) SetNillableUpdatedAt(t *time.Time) *UserNotificationSettingUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserNotificationSettingUpdateOne) SetNillableUserID

func (unsuo *UserNotificationSettingUpdateOne) SetNillableUserID(id *int) *UserNotificationSettingUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserNotificationSettingUpdateOne) SetOwnerUserID

func (unsuo *UserNotificationSettingUpdateOne) SetOwnerUserID(i int) *UserNotificationSettingUpdateOne

SetOwnerUserID sets the "owner_user_id" field.

func (*UserNotificationSettingUpdateOne) SetSlug

func (unsuo *UserNotificationSettingUpdateOne) SetSlug(s string) *UserNotificationSettingUpdateOne

SetSlug sets the "slug" field.

func (*UserNotificationSettingUpdateOne) SetToken

func (unsuo *UserNotificationSettingUpdateOne) SetToken(s string) *UserNotificationSettingUpdateOne

SetToken sets the "token" field.

func (*UserNotificationSettingUpdateOne) SetUpdatedAt

func (unsuo *UserNotificationSettingUpdateOne) SetUpdatedAt(t time.Time) *UserNotificationSettingUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationSettingUpdateOne) SetUser

func (unsuo *UserNotificationSettingUpdateOne) SetUser(u *User) *UserNotificationSettingUpdateOne

SetUser sets the "user" edge to the User entity.

func (*UserNotificationSettingUpdateOne) SetUserID

func (unsuo *UserNotificationSettingUpdateOne) SetUserID(id int) *UserNotificationSettingUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*UserNotificationSettingUpdateOne) Where

func (unsuo *UserNotificationSettingUpdateOne) Where(ps ...predicate.UserNotificationSetting) *UserNotificationSettingUpdateOne

Where appends a list predicates to the UserNotificationSettingUpdate builder.

type UserNotificationSettingUpsert

UserNotificationSettingUpsert is the "OnConflict" setter.

type UserNotificationSettingUpsert struct {
    *sql.UpdateSet
}

func (*UserNotificationSettingUpsert) ClearOwnerUserID

func (u *UserNotificationSettingUpsert) ClearOwnerUserID() *UserNotificationSettingUpsert

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*UserNotificationSettingUpsert) ClearUpdatedAt

func (u *UserNotificationSettingUpsert) ClearUpdatedAt() *UserNotificationSettingUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationSettingUpsert) SetEnableNewPosts

func (u *UserNotificationSettingUpsert) SetEnableNewPosts(v bool) *UserNotificationSettingUpsert

SetEnableNewPosts sets the "enable_new_posts" field.

func (*UserNotificationSettingUpsert) SetEnablePaymentDue

func (u *UserNotificationSettingUpsert) SetEnablePaymentDue(v bool) *UserNotificationSettingUpsert

SetEnablePaymentDue sets the "enable_payment_due" field.

func (*UserNotificationSettingUpsert) SetEnablePaymentStart

func (u *UserNotificationSettingUpsert) SetEnablePaymentStart(v bool) *UserNotificationSettingUpsert

SetEnablePaymentStart sets the "enable_payment_start" field.

func (*UserNotificationSettingUpsert) SetName

func (u *UserNotificationSettingUpsert) SetName(v string) *UserNotificationSettingUpsert

SetName sets the "name" field.

func (*UserNotificationSettingUpsert) SetOwnerUserID

func (u *UserNotificationSettingUpsert) SetOwnerUserID(v int) *UserNotificationSettingUpsert

SetOwnerUserID sets the "owner_user_id" field.

func (*UserNotificationSettingUpsert) SetSlug

func (u *UserNotificationSettingUpsert) SetSlug(v string) *UserNotificationSettingUpsert

SetSlug sets the "slug" field.

func (*UserNotificationSettingUpsert) SetToken

func (u *UserNotificationSettingUpsert) SetToken(v string) *UserNotificationSettingUpsert

SetToken sets the "token" field.

func (*UserNotificationSettingUpsert) SetUpdatedAt

func (u *UserNotificationSettingUpsert) SetUpdatedAt(v time.Time) *UserNotificationSettingUpsert

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationSettingUpsert) UpdateEnableNewPosts

func (u *UserNotificationSettingUpsert) UpdateEnableNewPosts() *UserNotificationSettingUpsert

UpdateEnableNewPosts sets the "enable_new_posts" field to the value that was provided on create.

func (*UserNotificationSettingUpsert) UpdateEnablePaymentDue

func (u *UserNotificationSettingUpsert) UpdateEnablePaymentDue() *UserNotificationSettingUpsert

UpdateEnablePaymentDue sets the "enable_payment_due" field to the value that was provided on create.

func (*UserNotificationSettingUpsert) UpdateEnablePaymentStart

func (u *UserNotificationSettingUpsert) UpdateEnablePaymentStart() *UserNotificationSettingUpsert

UpdateEnablePaymentStart sets the "enable_payment_start" field to the value that was provided on create.

func (*UserNotificationSettingUpsert) UpdateName

func (u *UserNotificationSettingUpsert) UpdateName() *UserNotificationSettingUpsert

UpdateName sets the "name" field to the value that was provided on create.

func (*UserNotificationSettingUpsert) UpdateOwnerUserID

func (u *UserNotificationSettingUpsert) UpdateOwnerUserID() *UserNotificationSettingUpsert

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*UserNotificationSettingUpsert) UpdateSlug

func (u *UserNotificationSettingUpsert) UpdateSlug() *UserNotificationSettingUpsert

UpdateSlug sets the "slug" field to the value that was provided on create.

func (*UserNotificationSettingUpsert) UpdateToken

func (u *UserNotificationSettingUpsert) UpdateToken() *UserNotificationSettingUpsert

UpdateToken sets the "token" field to the value that was provided on create.

func (*UserNotificationSettingUpsert) UpdateUpdatedAt

func (u *UserNotificationSettingUpsert) UpdateUpdatedAt() *UserNotificationSettingUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserNotificationSettingUpsertBulk

UserNotificationSettingUpsertBulk is the builder for "upsert"-ing a bulk of UserNotificationSetting nodes.

type UserNotificationSettingUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingUpsertBulk) ClearOwnerUserID

func (u *UserNotificationSettingUpsertBulk) ClearOwnerUserID() *UserNotificationSettingUpsertBulk

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*UserNotificationSettingUpsertBulk) ClearUpdatedAt

func (u *UserNotificationSettingUpsertBulk) ClearUpdatedAt() *UserNotificationSettingUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationSettingUpsertBulk) DoNothing

func (u *UserNotificationSettingUpsertBulk) DoNothing() *UserNotificationSettingUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserNotificationSettingUpsertBulk) Exec

func (u *UserNotificationSettingUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationSettingUpsertBulk) ExecX

func (u *UserNotificationSettingUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingUpsertBulk) Ignore

func (u *UserNotificationSettingUpsertBulk) Ignore() *UserNotificationSettingUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.UserNotificationSetting.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*UserNotificationSettingUpsertBulk) SetEnableNewPosts

func (u *UserNotificationSettingUpsertBulk) SetEnableNewPosts(v bool) *UserNotificationSettingUpsertBulk

SetEnableNewPosts sets the "enable_new_posts" field.

func (*UserNotificationSettingUpsertBulk) SetEnablePaymentDue

func (u *UserNotificationSettingUpsertBulk) SetEnablePaymentDue(v bool) *UserNotificationSettingUpsertBulk

SetEnablePaymentDue sets the "enable_payment_due" field.

func (*UserNotificationSettingUpsertBulk) SetEnablePaymentStart

func (u *UserNotificationSettingUpsertBulk) SetEnablePaymentStart(v bool) *UserNotificationSettingUpsertBulk

SetEnablePaymentStart sets the "enable_payment_start" field.

func (*UserNotificationSettingUpsertBulk) SetName

func (u *UserNotificationSettingUpsertBulk) SetName(v string) *UserNotificationSettingUpsertBulk

SetName sets the "name" field.

func (*UserNotificationSettingUpsertBulk) SetOwnerUserID

func (u *UserNotificationSettingUpsertBulk) SetOwnerUserID(v int) *UserNotificationSettingUpsertBulk

SetOwnerUserID sets the "owner_user_id" field.

func (*UserNotificationSettingUpsertBulk) SetSlug

func (u *UserNotificationSettingUpsertBulk) SetSlug(v string) *UserNotificationSettingUpsertBulk

SetSlug sets the "slug" field.

func (*UserNotificationSettingUpsertBulk) SetToken

func (u *UserNotificationSettingUpsertBulk) SetToken(v string) *UserNotificationSettingUpsertBulk

SetToken sets the "token" field.

func (*UserNotificationSettingUpsertBulk) SetUpdatedAt

func (u *UserNotificationSettingUpsertBulk) SetUpdatedAt(v time.Time) *UserNotificationSettingUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationSettingUpsertBulk) Update

func (u *UserNotificationSettingUpsertBulk) Update(set func(*UserNotificationSettingUpsert)) *UserNotificationSettingUpsertBulk

Update allows overriding fields `UPDATE` values. See the UserNotificationSettingCreateBulk.OnConflict documentation for more info.

func (*UserNotificationSettingUpsertBulk) UpdateEnableNewPosts

func (u *UserNotificationSettingUpsertBulk) UpdateEnableNewPosts() *UserNotificationSettingUpsertBulk

UpdateEnableNewPosts sets the "enable_new_posts" field to the value that was provided on create.

func (*UserNotificationSettingUpsertBulk) UpdateEnablePaymentDue

func (u *UserNotificationSettingUpsertBulk) UpdateEnablePaymentDue() *UserNotificationSettingUpsertBulk

UpdateEnablePaymentDue sets the "enable_payment_due" field to the value that was provided on create.

func (*UserNotificationSettingUpsertBulk) UpdateEnablePaymentStart

func (u *UserNotificationSettingUpsertBulk) UpdateEnablePaymentStart() *UserNotificationSettingUpsertBulk

UpdateEnablePaymentStart sets the "enable_payment_start" field to the value that was provided on create.

func (*UserNotificationSettingUpsertBulk) UpdateName

func (u *UserNotificationSettingUpsertBulk) UpdateName() *UserNotificationSettingUpsertBulk

UpdateName sets the "name" field to the value that was provided on create.

func (*UserNotificationSettingUpsertBulk) UpdateNewValues

func (u *UserNotificationSettingUpsertBulk) UpdateNewValues() *UserNotificationSettingUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.UserNotificationSetting.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*UserNotificationSettingUpsertBulk) UpdateOwnerUserID

func (u *UserNotificationSettingUpsertBulk) UpdateOwnerUserID() *UserNotificationSettingUpsertBulk

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*UserNotificationSettingUpsertBulk) UpdateSlug

func (u *UserNotificationSettingUpsertBulk) UpdateSlug() *UserNotificationSettingUpsertBulk

UpdateSlug sets the "slug" field to the value that was provided on create.

func (*UserNotificationSettingUpsertBulk) UpdateToken

func (u *UserNotificationSettingUpsertBulk) UpdateToken() *UserNotificationSettingUpsertBulk

UpdateToken sets the "token" field to the value that was provided on create.

func (*UserNotificationSettingUpsertBulk) UpdateUpdatedAt

func (u *UserNotificationSettingUpsertBulk) UpdateUpdatedAt() *UserNotificationSettingUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserNotificationSettingUpsertOne

UserNotificationSettingUpsertOne is the builder for "upsert"-ing

one UserNotificationSetting node.
type UserNotificationSettingUpsertOne struct {
    // contains filtered or unexported fields
}

func (*UserNotificationSettingUpsertOne) ClearOwnerUserID

func (u *UserNotificationSettingUpsertOne) ClearOwnerUserID() *UserNotificationSettingUpsertOne

ClearOwnerUserID clears the value of the "owner_user_id" field.

func (*UserNotificationSettingUpsertOne) ClearUpdatedAt

func (u *UserNotificationSettingUpsertOne) ClearUpdatedAt() *UserNotificationSettingUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserNotificationSettingUpsertOne) DoNothing

func (u *UserNotificationSettingUpsertOne) DoNothing() *UserNotificationSettingUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserNotificationSettingUpsertOne) Exec

func (u *UserNotificationSettingUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*UserNotificationSettingUpsertOne) ExecX

func (u *UserNotificationSettingUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserNotificationSettingUpsertOne) ID

func (u *UserNotificationSettingUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*UserNotificationSettingUpsertOne) IDX

func (u *UserNotificationSettingUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*UserNotificationSettingUpsertOne) Ignore

func (u *UserNotificationSettingUpsertOne) Ignore() *UserNotificationSettingUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.UserNotificationSetting.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*UserNotificationSettingUpsertOne) SetEnableNewPosts

func (u *UserNotificationSettingUpsertOne) SetEnableNewPosts(v bool) *UserNotificationSettingUpsertOne

SetEnableNewPosts sets the "enable_new_posts" field.

func (*UserNotificationSettingUpsertOne) SetEnablePaymentDue

func (u *UserNotificationSettingUpsertOne) SetEnablePaymentDue(v bool) *UserNotificationSettingUpsertOne

SetEnablePaymentDue sets the "enable_payment_due" field.

func (*UserNotificationSettingUpsertOne) SetEnablePaymentStart

func (u *UserNotificationSettingUpsertOne) SetEnablePaymentStart(v bool) *UserNotificationSettingUpsertOne

SetEnablePaymentStart sets the "enable_payment_start" field.

func (*UserNotificationSettingUpsertOne) SetName

func (u *UserNotificationSettingUpsertOne) SetName(v string) *UserNotificationSettingUpsertOne

SetName sets the "name" field.

func (*UserNotificationSettingUpsertOne) SetOwnerUserID

func (u *UserNotificationSettingUpsertOne) SetOwnerUserID(v int) *UserNotificationSettingUpsertOne

SetOwnerUserID sets the "owner_user_id" field.

func (*UserNotificationSettingUpsertOne) SetSlug

func (u *UserNotificationSettingUpsertOne) SetSlug(v string) *UserNotificationSettingUpsertOne

SetSlug sets the "slug" field.

func (*UserNotificationSettingUpsertOne) SetToken

func (u *UserNotificationSettingUpsertOne) SetToken(v string) *UserNotificationSettingUpsertOne

SetToken sets the "token" field.

func (*UserNotificationSettingUpsertOne) SetUpdatedAt

func (u *UserNotificationSettingUpsertOne) SetUpdatedAt(v time.Time) *UserNotificationSettingUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*UserNotificationSettingUpsertOne) Update

func (u *UserNotificationSettingUpsertOne) Update(set func(*UserNotificationSettingUpsert)) *UserNotificationSettingUpsertOne

Update allows overriding fields `UPDATE` values. See the UserNotificationSettingCreate.OnConflict documentation for more info.

func (*UserNotificationSettingUpsertOne) UpdateEnableNewPosts

func (u *UserNotificationSettingUpsertOne) UpdateEnableNewPosts() *UserNotificationSettingUpsertOne

UpdateEnableNewPosts sets the "enable_new_posts" field to the value that was provided on create.

func (*UserNotificationSettingUpsertOne) UpdateEnablePaymentDue

func (u *UserNotificationSettingUpsertOne) UpdateEnablePaymentDue() *UserNotificationSettingUpsertOne

UpdateEnablePaymentDue sets the "enable_payment_due" field to the value that was provided on create.

func (*UserNotificationSettingUpsertOne) UpdateEnablePaymentStart

func (u *UserNotificationSettingUpsertOne) UpdateEnablePaymentStart() *UserNotificationSettingUpsertOne

UpdateEnablePaymentStart sets the "enable_payment_start" field to the value that was provided on create.

func (*UserNotificationSettingUpsertOne) UpdateName

func (u *UserNotificationSettingUpsertOne) UpdateName() *UserNotificationSettingUpsertOne

UpdateName sets the "name" field to the value that was provided on create.

func (*UserNotificationSettingUpsertOne) UpdateNewValues

func (u *UserNotificationSettingUpsertOne) UpdateNewValues() *UserNotificationSettingUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.UserNotificationSetting.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*UserNotificationSettingUpsertOne) UpdateOwnerUserID

func (u *UserNotificationSettingUpsertOne) UpdateOwnerUserID() *UserNotificationSettingUpsertOne

UpdateOwnerUserID sets the "owner_user_id" field to the value that was provided on create.

func (*UserNotificationSettingUpsertOne) UpdateSlug

func (u *UserNotificationSettingUpsertOne) UpdateSlug() *UserNotificationSettingUpsertOne

UpdateSlug sets the "slug" field to the value that was provided on create.

func (*UserNotificationSettingUpsertOne) UpdateToken

func (u *UserNotificationSettingUpsertOne) UpdateToken() *UserNotificationSettingUpsertOne

UpdateToken sets the "token" field to the value that was provided on create.

func (*UserNotificationSettingUpsertOne) UpdateUpdatedAt

func (u *UserNotificationSettingUpsertOne) UpdateUpdatedAt() *UserNotificationSettingUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserNotificationSettings

UserNotificationSettings is a parsable slice of UserNotificationSetting.

type UserNotificationSettings []*UserNotificationSetting

type UserOrder

UserOrder defines the ordering of User.

type UserOrder struct {
    Direction OrderDirection  `json:"direction"`
    Field     *UserOrderField `json:"field"`
}

type UserOrderField

UserOrderField defines the ordering field of User.

type UserOrderField struct {
    // contains filtered or unexported fields
}

type UserPaginateOption

UserPaginateOption enables pagination customization.

type UserPaginateOption func(*userPager) error

func WithUserFilter

func WithUserFilter(filter func(*UserQuery) (*UserQuery, error)) UserPaginateOption

WithUserFilter configures pagination filter.

func WithUserOrder

func WithUserOrder(order *UserOrder) UserPaginateOption

WithUserOrder configures pagination ordering.

type UserQuery

UserQuery is the builder for querying User entities.

type UserQuery struct {
    // contains filtered or unexported fields
}

func (*UserQuery) Aggregate

func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate returns a UserSelect configured with the given aggregations.

func (*UserQuery) All

func (uq *UserQuery) All(ctx context.Context) ([]*User, error)

All executes the query and returns a list of Users.

func (*UserQuery) AllX

func (uq *UserQuery) AllX(ctx context.Context) []*User

AllX is like All, but panics if an error occurs.

func (*UserQuery) Clone

func (uq *UserQuery) Clone() *UserQuery

Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*UserQuery) CollectFields

func (u *UserQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*UserQuery) Count

func (uq *UserQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserQuery) CountX

func (uq *UserQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*UserQuery) Exist

func (uq *UserQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*UserQuery) ExistX

func (uq *UserQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*UserQuery) Filter

func (uq *UserQuery) Filter() *UserFilter

Filter returns a Filter implementation to apply filters on the UserQuery builder.

func (*UserQuery) First

func (uq *UserQuery) First(ctx context.Context) (*User, error)

First returns the first User entity from the query. Returns a *NotFoundError when no User was found.

func (*UserQuery) FirstID

func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.

func (*UserQuery) FirstIDX

func (uq *UserQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*UserQuery) FirstX

func (uq *UserQuery) FirstX(ctx context.Context) *User

FirstX is like First, but panics if an error occurs.

func (*UserQuery) GroupBy

func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.User.Query().
	GroupBy(user.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*UserQuery) IDs

func (uq *UserQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of User IDs.

func (*UserQuery) IDsX

func (uq *UserQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*UserQuery) Limit

func (uq *UserQuery) Limit(limit int) *UserQuery

Limit the number of records to be returned by this query.

func (*UserQuery) Offset

func (uq *UserQuery) Offset(offset int) *UserQuery

Offset to start from.

func (*UserQuery) Only

func (uq *UserQuery) Only(ctx context.Context) (*User, error)

Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.

func (*UserQuery) OnlyID

func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.

func (*UserQuery) OnlyIDX

func (uq *UserQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*UserQuery) OnlyX

func (uq *UserQuery) OnlyX(ctx context.Context) *User

OnlyX is like Only, but panics if an error occurs.

func (*UserQuery) Order

func (uq *UserQuery) Order(o ...user.Order) *UserQuery

Order specifies how the records should be ordered.

func (*UserQuery) Paginate

func (u *UserQuery) Paginate(
    ctx context.Context, after *Cursor, first *int,
    before *Cursor, last *int, opts ...UserPaginateOption,
) (*UserConnection, error)

Paginate executes the query and returns a relay based cursor connection to User.

func (*UserQuery) QueryAuth

func (uq *UserQuery) QueryAuth() *AuthQuery

QueryAuth chains the current query on the "auth" edge.

func (*UserQuery) QueryHpfcEventTickets

func (uq *UserQuery) QueryHpfcEventTickets() *HPFCEventTicketQuery

QueryHpfcEventTickets chains the current query on the "hpfc_event_tickets" edge.

func (*UserQuery) QueryHpmemberFollowing

func (uq *UserQuery) QueryHpmemberFollowing() *HPFollowQuery

QueryHpmemberFollowing chains the current query on the "hpmember_following" edge.

func (*UserQuery) QueryHpsortHistory

func (uq *UserQuery) QueryHpsortHistory() *HPSortHistoryQuery

QueryHpsortHistory chains the current query on the "hpsort_history" edge.

func (*UserQuery) QueryHpviewHistory

func (uq *UserQuery) QueryHpviewHistory() *HPViewHistoryQuery

QueryHpviewHistory chains the current query on the "hpview_history" edge.

func (*UserQuery) QueryNotificationSettings

func (uq *UserQuery) QueryNotificationSettings() *UserNotificationSettingQuery

QueryNotificationSettings chains the current query on the "notification_settings" edge.

func (*UserQuery) Select

func (uq *UserQuery) Select(fields ...string) *UserSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.User.Query().
	Select(user.FieldCreatedAt).
	Scan(ctx, &v)

func (*UserQuery) Unique

func (uq *UserQuery) Unique(unique bool) *UserQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*UserQuery) Where

func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery

Where adds a new predicate for the UserQuery builder.

func (*UserQuery) WithAuth

func (uq *UserQuery) WithAuth(opts ...func(*AuthQuery)) *UserQuery

WithAuth tells the query-builder to eager-load the nodes that are connected to the "auth" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithHpfcEventTickets

func (uq *UserQuery) WithHpfcEventTickets(opts ...func(*HPFCEventTicketQuery)) *UserQuery

WithHpfcEventTickets tells the query-builder to eager-load the nodes that are connected to the "hpfc_event_tickets" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithHpmemberFollowing

func (uq *UserQuery) WithHpmemberFollowing(opts ...func(*HPFollowQuery)) *UserQuery

WithHpmemberFollowing tells the query-builder to eager-load the nodes that are connected to the "hpmember_following" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithHpsortHistory

func (uq *UserQuery) WithHpsortHistory(opts ...func(*HPSortHistoryQuery)) *UserQuery

WithHpsortHistory tells the query-builder to eager-load the nodes that are connected to the "hpsort_history" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithHpviewHistory

func (uq *UserQuery) WithHpviewHistory(opts ...func(*HPViewHistoryQuery)) *UserQuery

WithHpviewHistory tells the query-builder to eager-load the nodes that are connected to the "hpview_history" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedAuth

func (uq *UserQuery) WithNamedAuth(name string, opts ...func(*AuthQuery)) *UserQuery

WithNamedAuth tells the query-builder to eager-load the nodes that are connected to the "auth" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedHpfcEventTickets

func (uq *UserQuery) WithNamedHpfcEventTickets(name string, opts ...func(*HPFCEventTicketQuery)) *UserQuery

WithNamedHpfcEventTickets tells the query-builder to eager-load the nodes that are connected to the "hpfc_event_tickets" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedHpmemberFollowing

func (uq *UserQuery) WithNamedHpmemberFollowing(name string, opts ...func(*HPFollowQuery)) *UserQuery

WithNamedHpmemberFollowing tells the query-builder to eager-load the nodes that are connected to the "hpmember_following" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedHpsortHistory

func (uq *UserQuery) WithNamedHpsortHistory(name string, opts ...func(*HPSortHistoryQuery)) *UserQuery

WithNamedHpsortHistory tells the query-builder to eager-load the nodes that are connected to the "hpsort_history" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedHpviewHistory

func (uq *UserQuery) WithNamedHpviewHistory(name string, opts ...func(*HPViewHistoryQuery)) *UserQuery

WithNamedHpviewHistory tells the query-builder to eager-load the nodes that are connected to the "hpview_history" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedNotificationSettings

func (uq *UserQuery) WithNamedNotificationSettings(name string, opts ...func(*UserNotificationSettingQuery)) *UserQuery

WithNamedNotificationSettings tells the query-builder to eager-load the nodes that are connected to the "notification_settings" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNotificationSettings

func (uq *UserQuery) WithNotificationSettings(opts ...func(*UserNotificationSettingQuery)) *UserQuery

WithNotificationSettings tells the query-builder to eager-load the nodes that are connected to the "notification_settings" edge. The optional arguments are used to configure the query builder of the edge.

type UserSelect

UserSelect is the builder for selecting fields of User entities.

type UserSelect struct {
    *UserQuery
    // contains filtered or unexported fields
}

func (*UserSelect) Aggregate

func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserSelect) Bool

func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolX

func (s *UserSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserSelect) Bools

func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolsX

func (s *UserSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserSelect) Float64

func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64X

func (s *UserSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserSelect) Float64s

func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64sX

func (s *UserSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserSelect) Int

func (s *UserSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntX

func (s *UserSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserSelect) Ints

func (s *UserSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntsX

func (s *UserSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserSelect) Scan

func (us *UserSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserSelect) ScanX

func (s *UserSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserSelect) String

func (s *UserSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringX

func (s *UserSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserSelect) Strings

func (s *UserSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringsX

func (s *UserSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserUpdate

UserUpdate is the builder for updating User entities.

type UserUpdate struct {
    // contains filtered or unexported fields
}

func (*UserUpdate) AddAuth

func (uu *UserUpdate) AddAuth(a ...*Auth) *UserUpdate

AddAuth adds the "auth" edges to the Auth entity.

func (*UserUpdate) AddAuthIDs

func (uu *UserUpdate) AddAuthIDs(ids ...int) *UserUpdate

AddAuthIDs adds the "auth" edge to the Auth entity by IDs.

func (*UserUpdate) AddHpfcEventTicketIDs

func (uu *UserUpdate) AddHpfcEventTicketIDs(ids ...int) *UserUpdate

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*UserUpdate) AddHpfcEventTickets

func (uu *UserUpdate) AddHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdate

AddHpfcEventTickets adds the "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*UserUpdate) AddHpmemberFollowing

func (uu *UserUpdate) AddHpmemberFollowing(h ...*HPFollow) *UserUpdate

AddHpmemberFollowing adds the "hpmember_following" edges to the HPFollow entity.

func (*UserUpdate) AddHpmemberFollowingIDs

func (uu *UserUpdate) AddHpmemberFollowingIDs(ids ...int) *UserUpdate

AddHpmemberFollowingIDs adds the "hpmember_following" edge to the HPFollow entity by IDs.

func (*UserUpdate) AddHpsortHistory

func (uu *UserUpdate) AddHpsortHistory(h ...*HPSortHistory) *UserUpdate

AddHpsortHistory adds the "hpsort_history" edges to the HPSortHistory entity.

func (*UserUpdate) AddHpsortHistoryIDs

func (uu *UserUpdate) AddHpsortHistoryIDs(ids ...int) *UserUpdate

AddHpsortHistoryIDs adds the "hpsort_history" edge to the HPSortHistory entity by IDs.

func (*UserUpdate) AddHpviewHistory

func (uu *UserUpdate) AddHpviewHistory(h ...*HPViewHistory) *UserUpdate

AddHpviewHistory adds the "hpview_history" edges to the HPViewHistory entity.

func (*UserUpdate) AddHpviewHistoryIDs

func (uu *UserUpdate) AddHpviewHistoryIDs(ids ...int) *UserUpdate

AddHpviewHistoryIDs adds the "hpview_history" edge to the HPViewHistory entity by IDs.

func (*UserUpdate) AddNotificationSettingIDs

func (uu *UserUpdate) AddNotificationSettingIDs(ids ...int) *UserUpdate

AddNotificationSettingIDs adds the "notification_settings" edge to the UserNotificationSetting entity by IDs.

func (*UserUpdate) AddNotificationSettings

func (uu *UserUpdate) AddNotificationSettings(u ...*UserNotificationSetting) *UserUpdate

AddNotificationSettings adds the "notification_settings" edges to the UserNotificationSetting entity.

func (*UserUpdate) ClearAuth

func (uu *UserUpdate) ClearAuth() *UserUpdate

ClearAuth clears all "auth" edges to the Auth entity.

func (*UserUpdate) ClearHpfcEventTickets

func (uu *UserUpdate) ClearHpfcEventTickets() *UserUpdate

ClearHpfcEventTickets clears all "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*UserUpdate) ClearHpmemberFollowing

func (uu *UserUpdate) ClearHpmemberFollowing() *UserUpdate

ClearHpmemberFollowing clears all "hpmember_following" edges to the HPFollow entity.

func (*UserUpdate) ClearHpsortHistory

func (uu *UserUpdate) ClearHpsortHistory() *UserUpdate

ClearHpsortHistory clears all "hpsort_history" edges to the HPSortHistory entity.

func (*UserUpdate) ClearHpviewHistory

func (uu *UserUpdate) ClearHpviewHistory() *UserUpdate

ClearHpviewHistory clears all "hpview_history" edges to the HPViewHistory entity.

func (*UserUpdate) ClearNotificationSettings

func (uu *UserUpdate) ClearNotificationSettings() *UserUpdate

ClearNotificationSettings clears all "notification_settings" edges to the UserNotificationSetting entity.

func (*UserUpdate) ClearUpdatedAt

func (uu *UserUpdate) ClearUpdatedAt() *UserUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserUpdate) Exec

func (uu *UserUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpdate) ExecX

func (uu *UserUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdate) Mutation

func (uu *UserUpdate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdate) RemoveAuth

func (uu *UserUpdate) RemoveAuth(a ...*Auth) *UserUpdate

RemoveAuth removes "auth" edges to Auth entities.

func (*UserUpdate) RemoveAuthIDs

func (uu *UserUpdate) RemoveAuthIDs(ids ...int) *UserUpdate

RemoveAuthIDs removes the "auth" edge to Auth entities by IDs.

func (*UserUpdate) RemoveHpfcEventTicketIDs

func (uu *UserUpdate) RemoveHpfcEventTicketIDs(ids ...int) *UserUpdate

RemoveHpfcEventTicketIDs removes the "hpfc_event_tickets" edge to HPFCEventTicket entities by IDs.

func (*UserUpdate) RemoveHpfcEventTickets

func (uu *UserUpdate) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdate

RemoveHpfcEventTickets removes "hpfc_event_tickets" edges to HPFCEventTicket entities.

func (*UserUpdate) RemoveHpmemberFollowing

func (uu *UserUpdate) RemoveHpmemberFollowing(h ...*HPFollow) *UserUpdate

RemoveHpmemberFollowing removes "hpmember_following" edges to HPFollow entities.

func (*UserUpdate) RemoveHpmemberFollowingIDs

func (uu *UserUpdate) RemoveHpmemberFollowingIDs(ids ...int) *UserUpdate

RemoveHpmemberFollowingIDs removes the "hpmember_following" edge to HPFollow entities by IDs.

func (*UserUpdate) RemoveHpsortHistory

func (uu *UserUpdate) RemoveHpsortHistory(h ...*HPSortHistory) *UserUpdate

RemoveHpsortHistory removes "hpsort_history" edges to HPSortHistory entities.

func (*UserUpdate) RemoveHpsortHistoryIDs

func (uu *UserUpdate) RemoveHpsortHistoryIDs(ids ...int) *UserUpdate

RemoveHpsortHistoryIDs removes the "hpsort_history" edge to HPSortHistory entities by IDs.

func (*UserUpdate) RemoveHpviewHistory

func (uu *UserUpdate) RemoveHpviewHistory(h ...*HPViewHistory) *UserUpdate

RemoveHpviewHistory removes "hpview_history" edges to HPViewHistory entities.

func (*UserUpdate) RemoveHpviewHistoryIDs

func (uu *UserUpdate) RemoveHpviewHistoryIDs(ids ...int) *UserUpdate

RemoveHpviewHistoryIDs removes the "hpview_history" edge to HPViewHistory entities by IDs.

func (*UserUpdate) RemoveNotificationSettingIDs

func (uu *UserUpdate) RemoveNotificationSettingIDs(ids ...int) *UserUpdate

RemoveNotificationSettingIDs removes the "notification_settings" edge to UserNotificationSetting entities by IDs.

func (*UserUpdate) RemoveNotificationSettings

func (uu *UserUpdate) RemoveNotificationSettings(u ...*UserNotificationSetting) *UserUpdate

RemoveNotificationSettings removes "notification_settings" edges to UserNotificationSetting entities.

func (*UserUpdate) Save

func (uu *UserUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*UserUpdate) SaveX

func (uu *UserUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*UserUpdate) SetAccessToken

func (uu *UserUpdate) SetAccessToken(s string) *UserUpdate

SetAccessToken sets the "access_token" field.

func (*UserUpdate) SetNillableUpdatedAt

func (uu *UserUpdate) SetNillableUpdatedAt(t *time.Time) *UserUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserUpdate) SetUpdatedAt

func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdate) SetUsername

func (uu *UserUpdate) SetUsername(s string) *UserUpdate

SetUsername sets the "username" field.

func (*UserUpdate) Where

func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate

Where appends a list predicates to the UserUpdate builder.

type UserUpdateOne

UserUpdateOne is the builder for updating a single User entity.

type UserUpdateOne struct {
    // contains filtered or unexported fields
}

func (*UserUpdateOne) AddAuth

func (uuo *UserUpdateOne) AddAuth(a ...*Auth) *UserUpdateOne

AddAuth adds the "auth" edges to the Auth entity.

func (*UserUpdateOne) AddAuthIDs

func (uuo *UserUpdateOne) AddAuthIDs(ids ...int) *UserUpdateOne

AddAuthIDs adds the "auth" edge to the Auth entity by IDs.

func (*UserUpdateOne) AddHpfcEventTicketIDs

func (uuo *UserUpdateOne) AddHpfcEventTicketIDs(ids ...int) *UserUpdateOne

AddHpfcEventTicketIDs adds the "hpfc_event_tickets" edge to the HPFCEventTicket entity by IDs.

func (*UserUpdateOne) AddHpfcEventTickets

func (uuo *UserUpdateOne) AddHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdateOne

AddHpfcEventTickets adds the "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*UserUpdateOne) AddHpmemberFollowing

func (uuo *UserUpdateOne) AddHpmemberFollowing(h ...*HPFollow) *UserUpdateOne

AddHpmemberFollowing adds the "hpmember_following" edges to the HPFollow entity.

func (*UserUpdateOne) AddHpmemberFollowingIDs

func (uuo *UserUpdateOne) AddHpmemberFollowingIDs(ids ...int) *UserUpdateOne

AddHpmemberFollowingIDs adds the "hpmember_following" edge to the HPFollow entity by IDs.

func (*UserUpdateOne) AddHpsortHistory

func (uuo *UserUpdateOne) AddHpsortHistory(h ...*HPSortHistory) *UserUpdateOne

AddHpsortHistory adds the "hpsort_history" edges to the HPSortHistory entity.

func (*UserUpdateOne) AddHpsortHistoryIDs

func (uuo *UserUpdateOne) AddHpsortHistoryIDs(ids ...int) *UserUpdateOne

AddHpsortHistoryIDs adds the "hpsort_history" edge to the HPSortHistory entity by IDs.

func (*UserUpdateOne) AddHpviewHistory

func (uuo *UserUpdateOne) AddHpviewHistory(h ...*HPViewHistory) *UserUpdateOne

AddHpviewHistory adds the "hpview_history" edges to the HPViewHistory entity.

func (*UserUpdateOne) AddHpviewHistoryIDs

func (uuo *UserUpdateOne) AddHpviewHistoryIDs(ids ...int) *UserUpdateOne

AddHpviewHistoryIDs adds the "hpview_history" edge to the HPViewHistory entity by IDs.

func (*UserUpdateOne) AddNotificationSettingIDs

func (uuo *UserUpdateOne) AddNotificationSettingIDs(ids ...int) *UserUpdateOne

AddNotificationSettingIDs adds the "notification_settings" edge to the UserNotificationSetting entity by IDs.

func (*UserUpdateOne) AddNotificationSettings

func (uuo *UserUpdateOne) AddNotificationSettings(u ...*UserNotificationSetting) *UserUpdateOne

AddNotificationSettings adds the "notification_settings" edges to the UserNotificationSetting entity.

func (*UserUpdateOne) ClearAuth

func (uuo *UserUpdateOne) ClearAuth() *UserUpdateOne

ClearAuth clears all "auth" edges to the Auth entity.

func (*UserUpdateOne) ClearHpfcEventTickets

func (uuo *UserUpdateOne) ClearHpfcEventTickets() *UserUpdateOne

ClearHpfcEventTickets clears all "hpfc_event_tickets" edges to the HPFCEventTicket entity.

func (*UserUpdateOne) ClearHpmemberFollowing

func (uuo *UserUpdateOne) ClearHpmemberFollowing() *UserUpdateOne

ClearHpmemberFollowing clears all "hpmember_following" edges to the HPFollow entity.

func (*UserUpdateOne) ClearHpsortHistory

func (uuo *UserUpdateOne) ClearHpsortHistory() *UserUpdateOne

ClearHpsortHistory clears all "hpsort_history" edges to the HPSortHistory entity.

func (*UserUpdateOne) ClearHpviewHistory

func (uuo *UserUpdateOne) ClearHpviewHistory() *UserUpdateOne

ClearHpviewHistory clears all "hpview_history" edges to the HPViewHistory entity.

func (*UserUpdateOne) ClearNotificationSettings

func (uuo *UserUpdateOne) ClearNotificationSettings() *UserUpdateOne

ClearNotificationSettings clears all "notification_settings" edges to the UserNotificationSetting entity.

func (*UserUpdateOne) ClearUpdatedAt

func (uuo *UserUpdateOne) ClearUpdatedAt() *UserUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserUpdateOne) Exec

func (uuo *UserUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserUpdateOne) ExecX

func (uuo *UserUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdateOne) Mutation

func (uuo *UserUpdateOne) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdateOne) RemoveAuth

func (uuo *UserUpdateOne) RemoveAuth(a ...*Auth) *UserUpdateOne

RemoveAuth removes "auth" edges to Auth entities.

func (*UserUpdateOne) RemoveAuthIDs

func (uuo *UserUpdateOne) RemoveAuthIDs(ids ...int) *UserUpdateOne

RemoveAuthIDs removes the "auth" edge to Auth entities by IDs.

func (*UserUpdateOne) RemoveHpfcEventTicketIDs

func (uuo *UserUpdateOne) RemoveHpfcEventTicketIDs(ids ...int) *UserUpdateOne

RemoveHpfcEventTicketIDs removes the "hpfc_event_tickets" edge to HPFCEventTicket entities by IDs.

func (*UserUpdateOne) RemoveHpfcEventTickets

func (uuo *UserUpdateOne) RemoveHpfcEventTickets(h ...*HPFCEventTicket) *UserUpdateOne

RemoveHpfcEventTickets removes "hpfc_event_tickets" edges to HPFCEventTicket entities.

func (*UserUpdateOne) RemoveHpmemberFollowing

func (uuo *UserUpdateOne) RemoveHpmemberFollowing(h ...*HPFollow) *UserUpdateOne

RemoveHpmemberFollowing removes "hpmember_following" edges to HPFollow entities.

func (*UserUpdateOne) RemoveHpmemberFollowingIDs

func (uuo *UserUpdateOne) RemoveHpmemberFollowingIDs(ids ...int) *UserUpdateOne

RemoveHpmemberFollowingIDs removes the "hpmember_following" edge to HPFollow entities by IDs.

func (*UserUpdateOne) RemoveHpsortHistory

func (uuo *UserUpdateOne) RemoveHpsortHistory(h ...*HPSortHistory) *UserUpdateOne

RemoveHpsortHistory removes "hpsort_history" edges to HPSortHistory entities.

func (*UserUpdateOne) RemoveHpsortHistoryIDs

func (uuo *UserUpdateOne) RemoveHpsortHistoryIDs(ids ...int) *UserUpdateOne

RemoveHpsortHistoryIDs removes the "hpsort_history" edge to HPSortHistory entities by IDs.

func (*UserUpdateOne) RemoveHpviewHistory

func (uuo *UserUpdateOne) RemoveHpviewHistory(h ...*HPViewHistory) *UserUpdateOne

RemoveHpviewHistory removes "hpview_history" edges to HPViewHistory entities.

func (*UserUpdateOne) RemoveHpviewHistoryIDs

func (uuo *UserUpdateOne) RemoveHpviewHistoryIDs(ids ...int) *UserUpdateOne

RemoveHpviewHistoryIDs removes the "hpview_history" edge to HPViewHistory entities by IDs.

func (*UserUpdateOne) RemoveNotificationSettingIDs

func (uuo *UserUpdateOne) RemoveNotificationSettingIDs(ids ...int) *UserUpdateOne

RemoveNotificationSettingIDs removes the "notification_settings" edge to UserNotificationSetting entities by IDs.

func (*UserUpdateOne) RemoveNotificationSettings

func (uuo *UserUpdateOne) RemoveNotificationSettings(u ...*UserNotificationSetting) *UserUpdateOne

RemoveNotificationSettings removes "notification_settings" edges to UserNotificationSetting entities.

func (*UserUpdateOne) Save

func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)

Save executes the query and returns the updated User entity.

func (*UserUpdateOne) SaveX

func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User

SaveX is like Save, but panics if an error occurs.

func (*UserUpdateOne) Select

func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*UserUpdateOne) SetAccessToken

func (uuo *UserUpdateOne) SetAccessToken(s string) *UserUpdateOne

SetAccessToken sets the "access_token" field.

func (*UserUpdateOne) SetNillableUpdatedAt

func (uuo *UserUpdateOne) SetNillableUpdatedAt(t *time.Time) *UserUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserUpdateOne) SetUpdatedAt

func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdateOne) SetUsername

func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne

SetUsername sets the "username" field.

func (*UserUpdateOne) Where

func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne

Where appends a list predicates to the UserUpdate builder.

type UserUpsert

UserUpsert is the "OnConflict" setter.

type UserUpsert struct {
    *sql.UpdateSet
}

func (*UserUpsert) ClearUpdatedAt

func (u *UserUpsert) ClearUpdatedAt() *UserUpsert

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserUpsert) SetAccessToken

func (u *UserUpsert) SetAccessToken(v string) *UserUpsert

SetAccessToken sets the "access_token" field.

func (*UserUpsert) SetUpdatedAt

func (u *UserUpsert) SetUpdatedAt(v time.Time) *UserUpsert

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsert) SetUsername

func (u *UserUpsert) SetUsername(v string) *UserUpsert

SetUsername sets the "username" field.

func (*UserUpsert) UpdateAccessToken

func (u *UserUpsert) UpdateAccessToken() *UserUpsert

UpdateAccessToken sets the "access_token" field to the value that was provided on create.

func (*UserUpsert) UpdateUpdatedAt

func (u *UserUpsert) UpdateUpdatedAt() *UserUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*UserUpsert) UpdateUsername

func (u *UserUpsert) UpdateUsername() *UserUpsert

UpdateUsername sets the "username" field to the value that was provided on create.

type UserUpsertBulk

UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.

type UserUpsertBulk struct {
    // contains filtered or unexported fields
}

func (*UserUpsertBulk) ClearUpdatedAt

func (u *UserUpsertBulk) ClearUpdatedAt() *UserUpsertBulk

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserUpsertBulk) DoNothing

func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserUpsertBulk) Exec

func (u *UserUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpsertBulk) ExecX

func (u *UserUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpsertBulk) Ignore

func (u *UserUpsertBulk) Ignore() *UserUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.User.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*UserUpsertBulk) SetAccessToken

func (u *UserUpsertBulk) SetAccessToken(v string) *UserUpsertBulk

SetAccessToken sets the "access_token" field.

func (*UserUpsertBulk) SetUpdatedAt

func (u *UserUpsertBulk) SetUpdatedAt(v time.Time) *UserUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsertBulk) SetUsername

func (u *UserUpsertBulk) SetUsername(v string) *UserUpsertBulk

SetUsername sets the "username" field.

func (*UserUpsertBulk) Update

func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk

Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.

func (*UserUpsertBulk) UpdateAccessToken

func (u *UserUpsertBulk) UpdateAccessToken() *UserUpsertBulk

UpdateAccessToken sets the "access_token" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateNewValues

func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.User.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*UserUpsertBulk) UpdateUpdatedAt

func (u *UserUpsertBulk) UpdateUpdatedAt() *UserUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateUsername

func (u *UserUpsertBulk) UpdateUsername() *UserUpsertBulk

UpdateUsername sets the "username" field to the value that was provided on create.

type UserUpsertOne

UserUpsertOne is the builder for "upsert"-ing

one User node.
type UserUpsertOne struct {
    // contains filtered or unexported fields
}

func (*UserUpsertOne) ClearUpdatedAt

func (u *UserUpsertOne) ClearUpdatedAt() *UserUpsertOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*UserUpsertOne) DoNothing

func (u *UserUpsertOne) DoNothing() *UserUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserUpsertOne) Exec

func (u *UserUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpsertOne) ExecX

func (u *UserUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpsertOne) ID

func (u *UserUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*UserUpsertOne) IDX

func (u *UserUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*UserUpsertOne) Ignore

func (u *UserUpsertOne) Ignore() *UserUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.User.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*UserUpsertOne) SetAccessToken

func (u *UserUpsertOne) SetAccessToken(v string) *UserUpsertOne

SetAccessToken sets the "access_token" field.

func (*UserUpsertOne) SetUpdatedAt

func (u *UserUpsertOne) SetUpdatedAt(v time.Time) *UserUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsertOne) SetUsername

func (u *UserUpsertOne) SetUsername(v string) *UserUpsertOne

SetUsername sets the "username" field.

func (*UserUpsertOne) Update

func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne

Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.

func (*UserUpsertOne) UpdateAccessToken

func (u *UserUpsertOne) UpdateAccessToken() *UserUpsertOne

UpdateAccessToken sets the "access_token" field to the value that was provided on create.

func (*UserUpsertOne) UpdateNewValues

func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.User.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*UserUpsertOne) UpdateUpdatedAt

func (u *UserUpsertOne) UpdateUpdatedAt() *UserUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*UserUpsertOne) UpdateUsername

func (u *UserUpsertOne) UpdateUsername() *UserUpsertOne

UpdateUsername sets the "username" field to the value that was provided on create.

type Users

Users is a parsable slice of User.

type Users []*User

type ValidationError

ValidationError returns when validating a field or edge fails.

type ValidationError struct {
    Name string // Field or edge name.
    // contains filtered or unexported fields
}

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

ent aliases to avoid import conflicts in user's code.

type Value = ent.Value

Subdirectories